scottgigante / korean-support

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

Naver Papago is not working #19

Closed thamfpt closed 3 years ago

thamfpt commented 3 years ago

Hello. Thank you for creating this addon. But I encountered a problem. My Naver Papago audio does not work. Although I chose Naver Papago. Audio files only work with Google TTS, but I don't like this voice very much. Hope you read this comment and help me solve it. Thanks 1 2

cereska commented 3 years ago

I have been also experiencing the same. Naver Papago has stopped working entirely, it can no longer download sounds. Only Google TTS works, but I don't like it and it would love to see this issue fixed. Below is the error message while in Debug mode, hope this helps: image

Propably Naver has updated their API...

ghost commented 3 years ago

I think the API url has changed https://apidocs.ncloud.com/en/ai-naver/clova_voice/tts-basic/ @scottgigante Did the previous end point require an API key? If we are able to use the old key we should be able to update the URL rather easily.

scottgigante commented 3 years ago

The API has indeed changed. The new API requires an API key, which appears to be free but somewhat involved. This is something I plan to get to eventually, but frankly is pretty low on my priority list. If somebody wants to contribute a PR to https://github.com/scottgigante/NaverTTS to adopt the new API, I would gladly review and merge it.

ghost commented 3 years ago

@scottgigante Cool ill see what i can do. I'm not too familiar with python but I can give it a go.

scottgigante commented 3 years ago

Hardest thing will be getting access to the API. If you can find me the format for the POST request and an API key, I am happy to do the rest.

Sleeping-Donut commented 3 years ago

I think you can just use this from naver dictionary right?

https://dict.naver.com/api/nvoice?service=dictionary&speech_fmt=mp3&text=TEXT&speaker=SPEAKER

with the speakers being listed here: https://apidocs.ncloud.com/en/ai-naver/clova_voice/tts-basic/

scottgigante commented 3 years ago

Brilliant! I'll give this a go.

scottgigante commented 3 years ago

This should be fixed and the change uploaded to ankiweb. Please let me know if it works for you!