20.9 azspeech translate

20220314

The translate command can listen for an utterance from the computer microphone for up to 15 seconds and then translate it to other language. It has the option to save the output audio (wav) file. The default input language is English, users can choose a different language as they prefer.

ml translate azspeech --target fr
ml translate azspeech --original zh-CN --target fr
ml translate azspeech --original zh-CN --target fr --output out.wav

Note that the language code in –original should be chosen from the Locales listed in the Azure Docs, while –target should be chosen from the Language Code in Text



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0