scottgigante / korean-support

Anki add-on providing support for Korean study
https://ankiweb.net/shared/info/1336389630
GNU General Public License v3.0
19 stars 5 forks source link

Doesn't download voice when Google TTS engine is selected #6

Closed diruoling closed 4 years ago

diruoling commented 4 years ago

It fills the "Sound" fields nice when Naver Papago voice is selected. But when I choose Google TTS in settings and click "Fill missing sounds", it shows the error that download is failed every time.

20200413-02

Windows 10 1903 (x64), Anki Version 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1

scottgigante commented 4 years ago

Hi @Emariel , I'm having trouble tracing the source of this error. I've modified the package to improve error tracing within TTS -- any chance you can extract the contents of this new package to C:\Users\Emma\AppData\Roaming\Anki2\addons21\1336389630\, try again, and show me the new error?

korean.zip

diruoling commented 4 years ago

20200414-04

By the way, I've found another solution. As I wanted male voice for my cards, I found out how to make it download male voice from NAVER Papago (by default it takes female voice). I located 2 files in the folder ...Anki2\addons21\1336389630\lib\navertts - constants.py and tts.py. In both files in the line "gender" I just changed the letter "f" to "m". Now it works as I wanted. So, I have a suggestion for the future updates: to add an ability to switch Naver voice gender in the Preferences menu. Thank you for help anyway.

scottgigante commented 4 years ago

Thanks for the updated error message and the suggestion! I'll add that ability in the next update.

scottgigante commented 4 years ago

@Emariel you can now select gender and speed within the TTS menu. Enjoy!

diruoling commented 4 years ago

Thank you very much!