This is a command line project to help study the International Phonetic Alphabet. It uses audio files from wikipedia to randomly play audio of vowels or consonants. After pressing it will display the correct annotations. For vowels this is backness
, open-ness
and roundness
. The wikipedia sounds do not include information on tenseness
so that is not included at this time. For consonants this includes manner and place of articulation (e.g. Voiced velar plosive).
![image](https://private-user-images.githubusercontent.com/11002/304169997-1579eb87-28de-448a-8f7a-3159226e0880.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MDcyMzksIm5iZiI6MTcyMTQwNjkzOSwicGF0aCI6Ii8xMTAwMi8zMDQxNjk5OTctMTU3OWViODctMjhkZS00NDhhLThmN2EtMzE1OTIyNmUwODgwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE2MzUzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZmODNjZDk3ZjZiNzlmZWEyNjg2M2I5MjhmYzVhZjg1NWNmNDgyMDRlZDY3NjFjODE4YTRmNWQxNTYwZTg0MWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iV0UyQX2Gz8Aa-jttIP524xsmtGlXNWWf_Z3PUR_GBA)
![image](https://private-user-images.githubusercontent.com/11002/304170074-d118eb37-9d51-4916-a641-fd92c20fad5a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MDcyMzksIm5iZiI6MTcyMTQwNjkzOSwicGF0aCI6Ii8xMTAwMi8zMDQxNzAwNzQtZDExOGViMzctOWQ1MS00OTE2LWE2NDEtZmQ5MmMyMGZhZDVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE2MzUzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiODZkMzJmYTc1M2JkYTVmYTA2N2NkZWM5NjlmOWY0YTZjMTc2MzkxOTA1ZmQzNjViNTY5OWQ4OTE0ZWIzNmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.bGrC8f_IBiJVOQubaaAFDs3fHldvHlrwdAz-mM0fnWw)
This has only been tested on a mac and requires that the machine have afplay
for playing audio. You can install it if you have homebrew installed with the command brew install afplay
.
Displaying strings and reading input is done with the curses library to make the experience a bit more game like.
Make sure to chmod u+x quiz.py
and then you can run with:
./quiz.py
Or if you prefer, don't chmod
it and just:
python quiz.py
The files were downloaded from wikipedia with their original filenames which include their annotations. The IPA symbol for each phoneme was added manually to the filenames for classification purposes. The script that downloaded those files is ripper.py
. Perhaps it will come in useful in the future.
The filenames are read by the script to display the annotations.
Audio files included in this project are from the Wikipedia articles:
IPA consonant chart with audio
Creative Commons Attribution-Share-Alike License 3.0