Reputation:
I try to use this python text-to-speech converter to convert Greek into mp3. Git says utf-8 is supported but when I try to translate text like "Γεια σου" it throws an error as shown below:
What I type on cmd: gtts-cli.py "Γεια σου" -l el -o hi.mp3
What I get:
'ascii' codec can't decode byte 0xf4 in position 0: ordinal not in range(128)
Any ideas?
Update:
I added utf-8 support as shown below. I even updated to python3. Still getting a similar error...
'utf8' codec can't decode byte 0xc3 in position 0: invalid continuation byte
What I added:
text = args.text.decode('utf-8')
Any ideas?
Upvotes: 0
Views: 401
Reputation: 8284
There is related open issue in this project, please take a look.
Looks like the fix was created by the somebody already though, but it is still not merged.
Upvotes: 1