22.2 azspeech quick start

20211219

Below we share some examples, showing the various commands supported by the package.

Let’s generate some audio from text that is supplied on the command line:

ml synthesize azspeech Welcome my friend, welcome to the machine.

The text may also be from a text file:

ml synthesize azspeech --input=short.txt

Convert audio recorded from the computer’s microphone to text:

ml transcribe azspeech

Next, download a sample audio file to try out the transcribe command.

wget https://github.com/realpython/python-speech-recognition/raw/master/audio_files/harvard.wav
ml transcribe azspeech harvard.wav

Here’s an example of audio in Indonesian, specifically identified as such to improved the transcription.

ml transcribe azspeech --lang=id-ID indonews.wav


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