Videos
Translating a word from the alphabet of one language to another(get the pronuntiation), is named transliteration and it is not supported by Cloud Translate API yet.
However, there is a feature request filed for the same. You can vote for this feature by clicking "+1" and "STAR" mark to recieve updates on it.
I was also looking for the same answer. I haven't found a way to get Pronuntiation with the Google Translate API yet. However, I found a way to get it through the Python library. You can use the Python googletrans library. The code is as follows.
You must use googletrans library 3.1.0a0 to avoid errors.
# pip install googletrans==3.1.0a0
from googletrans import Translator
translator = Translator()
SENTENSE = "안녕하세요. 반갑습니다."
LANGUAGE_CODE = translator.detect(SENTENSE).lang
k = translator.translate(SENTENSE, dest=LANGUAGE_CODE)
print(k)
print(k.text)
print(k.pronunciation)
Output:
Translated(src=ko, dest=ko, text=안녕하세요. 반갑습니다., pronunciation=annyeonghaseyo. bangabseubnida., extra_data="{'translat...")
안녕하세요. 반갑습니다.
annyeonghaseyo. bangabseubnida.
^ Give other websites if you guys have any thanks.
Right click the page and select "Inspect Element", then go to the network tab. Now, refresh the page with the network panel still open. Wait until nothing is showing up there anymore. While waiting, make sure not to get your mouse near the Listen button. Once nothing is showing up in the network panel, hover and click the listen button. As soon as you hover the listen button, an entry will appear that says "batchexecute". Find this entry. It should be above entries that say log?format=json&hasfast=….
Click on that and then on the right select the "Response" tab. There should be a bunch of random characters that go off the screen very far to the right
Select just that text and copy it. The easiest way to do this is to scroll all the way to the right first and then click and hold to the right of the ending quotation mark, then move your mouse up to the line above, then move your mouse down to reach the starting quotation mark, holding the mouse the whole time.
Go to the console tab and type v= then paste then press enter. Then, paste this into the console and press enter
{
const a = document.createElement("a");
a.href = "data:audio/mp3;base64,"+JSON.parse(v)[0];
a.download = "file.mp3";
a.click();
}
The mp3 file will download.
- Google search the word of which you want to download pronunciation by entering the query :"*How to pronounce *word**"
- Right-click the page and click View page source.
- Search for Mp3. screenshot
- click the mp3 link.
- Click the 3 dots and click Download.
Sometimes I have the same problem.
In the Target Language side, mouse over the bottom of the text box. You may see icons you did not see before. There are 5 icons. The third and middle icon looks like an A with two dots on top.
Click the third and middle icon (that looks like an A with two dots on top).
Now you see the phonetic version of the translation below the target language box.
]1
Look the symbol with the red around it on the right side. That is the icon button you need to click on if the phonetic translation is not being displayed automatically.
you can change to another chrome extension. Google translate extension cannot do this
Do you guys check up with the Google Translate (voice input) to see if your pronunciation is allright ? I nail it often but sometime it seems that my phone doesn't catch what I say at all.
ex: I was trying เกลียด earlier and it gave me:
เรียบ
เบียร์
เรียก
Even if my "ก" is good in other words, so I'm wondering if it's just maybe the application that is somewhat a bit capricious with thai ? Do you guys nail it 100% of the time with every words ?