a short python script to get a word in terminal and download its pronunciation from Oxford Dictionary
- Create an account here to get your App ID and App Key
- Put the above items in the script
- Mark the script as executable: chmod +x pronunciation.py
- Add the dir containing it to your PATH variable: export PATH=/path/to/script:$PATH
- Finally you can call it in the terminal in this form: pronunciation.py your_word
The pronunciation of the word can be found as an mp3 file in the directory you have set in the script.
I personally use this script to create AnkiDroid flash cards that have associated sound files and I am planing to add this feature to AnkiDroid.