kokoro-onnx: not running

What happened?

C:\Users\Soul Breacher\Documents\work\kokoro tts>uv run hello.py Hello from kokoro-tts! Traceback (most recent call last): File “C:\Users\Soul Breacher\Documents\work\kokoro tts\hello.py”, line 18, in <module> kokoro = Kokoro(“kokoro-v0_19.onnx”, “voices.npz”) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:\Users\Soul Breacher\Documents\work\kokoro tts.venv\Lib\site-packages\kokoro_onnx_init_.py”, line 58, in init self.voices: list[str] = self.config.get_voice_names() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:\Users\Soul Breacher\Documents\work\kokoro tts.venv\Lib\site-packages\kokoro_onnx\config.py”, line 56, in get_voice_names voices = json.load(f) ^^^^^^^^^^^^ File “C:\Users\Soul Breacher\AppData\Local\Programs\Python\Python312\Lib\json_init_.py”, line 293, in load return loads(fp.read(), ^^^^^^^^^ File “C:\Users\Soul Breacher\AppData\Local\Programs\Python\Python312\Lib\encodings\cp1252.py”, line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x8f in position 216: character maps to <undefined>

Steps to reproduce

paste text from save.py

run with “uv run hello.py”

error

What OS are you seeing the problem on?

Window

Relevant log output


About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Ok

This one working now

And quite slow…probably using a low thread count