Memrise Audio Uploader

Automatically generates and uploads Audio from Google TTS (for the first column)

< 脚本Memrise Audio Uploader的反馈

评价:好评 - 脚本运行良好

§
发表于:2020-11-25

Hello, thanks a lot for providing this extension! :-) It has been working great for several months but I got some invalid audio files in the last couple of days.

The https://google-tts-api.herokuapp.com/ URL now often returns get key failed from google, leading to empty audio files. (I assume the service is used to get around the cors limitation of https://translate.google.com). I am not sure if you are the owner of this herokuapp. But if so, maybe you could take a look...

On a side note: Would it be possible to add some if (res.ok) { res.blob() } else /* throw error */ part to the fetch? Otherwise it shows 1 file in Memrise, but the audio is empty and does not work. Which I usually only realize once I actually want to learn the word...

a-mt作者
§
发表于:2020-11-25

I'm very sorry about that, I just updated the app so it shouldn't happen again — but I did add a test in the userscript, not to upload a file if the request fails, just in case something similar happen again in the future.

§
发表于:2020-11-26

Awesome, that was fast! Thanks a lot! :-)

The script works flawlessly now. I even encountered one 500 "get token key failed from google" while refreshing the audio files for around 100 words and the script did not add an empty file with the latest version. Clicking the Generate audio button again got the correct audio.

§
发表于:2020-12-01
编辑于:2020-12-01

It seems like the 500 "get token key failed from google" error is back in general. I've tried to receive audio for 5 words today but without success. Maybe you could take a look again?

a-mt作者
§
发表于:2020-12-01

Not sure if this will work for long, but I changed the app again (use a completely random token instead of trying to get it from google)

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址