Instructions for using transcription on the front page.
To get an IPA transcription enter the word on the front page or use the API following the simple rules below:
- 1. Enter a Russian word in Russian letters. The web-site supports the transcription of only one word at a time. The web-site doesn't support any transliteration at the moment.
-
2. Vowel stress position is crucial for transcription of Russian vowels, so the stress must be present in the word.
The symbol ' should be used for primary stress immediately after the stressed vowel.
The symbol `should be used for secondary stress immediately after the vowel.
Remember that in a word with a secondary stress there must be a primary stress.
For your convenience stress symbols are mentioned on the front page, so you can copy-paste them if needed.
Stress is added automatically and therefore can be omitted for words with a single vowel. Also, stress is added automatically for any occurrence of the vowel 'ё', since it is always stressed in Russian.
Instructions for using the web-site API.
There is an API available for this web-site. To use it, you should
- Create an account and log in.
- Go to your Profile and get your personal access token there.
-
Use your personal access token to send a GET request to the following URL
https://russianphonetics.com/api/
Your request should contain a parameter word. It should be a string with a single russian word that follows the rules described for the front page usage. The response contains a sting transcription with the transcription of the requested word.
import requests
For example, a code written in Python using requests library can look like that
BASE_URL = 'https://russianphonetics.com/api/'
token = "YOUR_ACCESS_TOKEN_HERE"
params = {'word': "со'лнце"}
headers = {'Authorization': "Token {}".format(token)}
auth_response = requests.get(BASE_URL, headers=headers, params=params)
print(auth_response.json()['transcription'])