You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I use kokoro-onnx package, that further uses phonemizer, I get below error from this line in phonemizer To debug, I printed print(f"data_path: {data_path}, ENV ESPEAK_DATA_PATH: {os.getenv('ESPEAK_DATA_PATH')}") just before the line, you can see its in output below.
❯ python test_tts.py
data_path: b'/Users/gauravdhiman/projects/python/ai/phidata-projects/social-media-agents/.venv-social-media-agents/lib/python3.12/site-packages/espeakng_loader/espeak-ng-data', ENV ESPEAK_DATA_PATH: None
Error processing file '/Users/runner/work/espeakng-loader/espeakng-loader/espeak-ng/_dynamic/share/espeak-ng-data/phontab': No such file or directory.
From whee is this /Users/runner/work/espeakng-loader/.... path coming ? There is no runner folder under Users folder on my machine. Is it hard-coded somewhere ?
kokoro-onnx version used: v0.2.9
Here is the test script:
"""
pip install kokoro-onnx soundfile
wget https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files/kokoro-v0_19.onnx
wget https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files/voices.json
python test_tts.py
"""
import os
print(os.environ)
import soundfile as sf
from kokoro_onnx import Kokoro
kokoro = Kokoro("kokoro-v0_19.onnx", "voices.json")
charcters = [
"af_bella"
]
for character in charcters:
samples, sample_rate = kokoro.create(
"Hello. This audio generated by kokoro!", voice=character, speed=1.0, lang="en-us"
)
sf.write(f"{character}_voice.wav", samples, sample_rate)
print(f"Created {character}_voice.wav")
print("Created all voices")
Phonemizer version
phonemizer-fork v3.3.1
System
Macbook (iOS)
To reproduce
Shared above
Expected behavior
Should create the audio file in .wav format, but fails with error shared above (not able to find phontab file.
Additional context
Here is the ful tree of packages installed
Describe the bug
When I use
kokoro-onnx
package, that further usesphonemizer
, I get below error from this line inphonemizer
To debug, I printedprint(f"data_path: {data_path}, ENV ESPEAK_DATA_PATH: {os.getenv('ESPEAK_DATA_PATH')}")
just before the line, you can see its in output below.From whee is this
/Users/runner/work/espeakng-loader/....
path coming ? There is norunner
folder underUsers
folder on my machine. Is it hard-coded somewhere ?kokoro-onnx version used: v0.2.9
Here is the test script:
Phonemizer version
phonemizer-fork v3.3.1
System
Macbook (iOS)
To reproduce
Shared above
Expected behavior
Should create the audio file in .wav format, but fails with error shared above (not able to find phontab file.
Additional context
Here is the ful tree of packages installed
output of
uv pip tree
The text was updated successfully, but these errors were encountered: