Skip to content

a short python script to get a word in terminal and download its pronunciation from Oxford Dictionary

Notifications You must be signed in to change notification settings

bahmangm/get-pronunciation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

get-pronunciation

a short python script to get a word in terminal and download its pronunciation from Oxford Dictionary

How to use it

  1. Create an account here to get your App ID and App Key
  2. Put the above items in the script
  3. Mark the script as executable: chmod +x pronunciation.py
  4. Add the dir containing it to your PATH variable: export PATH=/path/to/script:$PATH
  5. 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.

About

a short python script to get a word in terminal and download its pronunciation from Oxford Dictionary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages