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

Problem with voice generator #334

Open
rufik opened this issue Feb 6, 2023 · 0 comments
Open

Problem with voice generator #334

rufik opened this issue Feb 6, 2023 · 0 comments

Comments

@rufik
Copy link

rufik commented Feb 6, 2023

I'm trying to generate audio (voicepack) for my converted Viomi SE (which is the same as CRL-200S). I use Ubuntu 20.04 on WSL2, python 3.8.10. But when running generate_audio.py it throws error ValueError: Unable to find token seed! Did https://translate.google.com change? :/
It's about some google translate token?

Package                           Version
--------------------------------- -------------
gTTS                              2.0.3
gTTS-token                        1.1.3
$ /usr/bin/python3 ./generate_audio.py
Available localized audio instructions:
1. language/audio_ca.csv
2. language/audio_cs.csv
3. language/audio_de.csv
4. language/audio_en.csv
5. language/audio_es.csv
6. language/audio_fi.csv
7. language/audio_fr.csv
8. language/audio_it.csv
9. language/audio_nl.csv
10. language/audio_no.csv
11. language/audio_pl.csv
12. language/audio_ru.csv
13. language/audio_se.csv
14. language/audio_tr.csv
15. language/audio_uk.csv
Please select option by typing number (1-15): 11
Available TTS engines:
1. gtts
Please select option by typing number (1-1): 1
back_dock_failed.wav
Traceback (most recent call last):
  File "./generate_audio.py", line 93, in <module>
    tts.save("{}.mp3".format(path))
  File "/usr/lib/python3/dist-packages/gtts/tts.py", line 249, in save
    self.write_to_fp(f)
  File "/usr/lib/python3/dist-packages/gtts/tts.py", line 189, in write_to_fp
    part_tk = self.token.calculate_token(part)
  File "/usr/lib/python3/dist-packages/gtts_token/gtts_token.py", line 28, in calculate_token
    seed = self._get_token_key()
  File "/usr/lib/python3/dist-packages/gtts_token/gtts_token.py", line 58, in _get_token_key
    raise ValueError(
ValueError: Unable to find token seed! Did https://translate.google.com change?
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