Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tts error: 'utf-8' codec can't decode byte 0x80 #762

Open
hejinlong opened this issue Mar 31, 2023 · 0 comments
Open

Run tts error: 'utf-8' codec can't decode byte 0x80 #762

hejinlong opened this issue Mar 31, 2023 · 0 comments

Comments

@hejinlong
Copy link

Run tts error: 'utf-8' codec can't decode byte 0x80. How to fix that? Thank you for your help!

(py38) long@long-System-Product-Name:~/mozilla_tts$ tts --text "Hello TTS!" --model_name "tts_models/en/ljspeech/glow-tts" --vocoder_name "vocoder_models/universal/libri-tts/wavegrad" --out_path output

2023-03-31 10:44:44.613812: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2023-03-31 10:44:44.613839: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
 > tts_models/en/ljspeech/glow-tts is already downloaded.
 > vocoder_models/universal/libri-tts/wavegrad is already downloaded.
Traceback (most recent call last):
  File "/home/long/yes/envs/py38/bin/tts", line 8, in <module>
    sys.exit(main())
  File "/home/long/mozilla_tts/TTS/bin/synthesize.py", line 177, in main
    synthesizer = Synthesizer(model_path, config_path, vocoder_path, vocoder_config_path, args.use_cuda)
  File "/home/long/mozilla_tts/TTS/utils/synthesizer.py", line 46, in __init__
    self.load_tts(tts_checkpoint, tts_config,
  File "/home/long/mozilla_tts/TTS/utils/synthesizer.py", line 80, in load_tts
    self.tts_config = load_config(tts_config)
  File "/home/long/mozilla_tts/TTS/utils/io.py", line 46, in load_config
    data = read_json_with_comments(config_path)
  File "/home/long/mozilla_tts/TTS/utils/io.py", line 26, in read_json_with_comments
    input_str = f.read()
  File "/home/long/yes/envs/py38/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 64: invalid start byte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant