The following instructions are a manual process to add audio from Google Translate, but you can also accomplish the same automatically for multiple cards at the same time using AwesomeTTS.
So I've been dabbling in Korean a bit and stumbled across a helpful suggestion on How to Study Korean: if you want to hear a word in your target language pronounced, you can go to Google Translate, copy and paste the word in, make sure your target language is selected, and then press the listen button to hear it.
While that has its uses, what I really wanted was a way to get an MP3 of that audio so I could add it to Anki for the Korean flashcards I'm making. Sure enough, there's a way to do that too.
With a little help from StackOverflow, it wasn't very hard to figure out how to pull this off. This was tested in Chrome, so your mileage in other browsers may vary.
- Copy and paste this into your browser's URL field:
- Replace XX with the two-letter ISO 639-1 code for your target language, which can be found here. Some common ones are "de" for German, "en" for English, "es" for Spanish, "fr" for French, "it" for Italian, "ja" for Japanese, "ko" for Korean, "pt" for Portuguese, and "zh" for Chinese.
- Replace TEXT with whatever text you want to hear.
- Press return. You should now be able to play the audio in the browser window. A couple examples:
- Right click in browser window and select "Save As…".
- Save your MP3 file wherever you like.
Although it's also not that hard to get audio files from RhinoSpike, using Google Translate has the benefit of immediate gratification (no need to wait for someone to record something for you, or needing to make recordings yourself to get to the front of the recording queue). On the other hand, it's a computer voice, so while it works pretty well for short words or phrases, intonation and pacing will be a bit weird for longer selections of text.