Memrise Audio Uploader

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

< Feedback on Memrise Audio Uploader

Review: Good - script works

§
Posted: 25-11-2020

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-mtAuthor
§
Posted: 25-11-2020

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.

§
Posted: 26-11-2020

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.

§
Posted: 01-12-2020
Edited: 01-12-2020

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-mtAuthor
§
Posted: 01-12-2020

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)

Post reply

Sign in to post a reply.