17.6 azspeech transcribe pipelines

20210607 We can pipe the output from transcribe to other tools, so to, for example, analyse the sentiment of the spoken word. In the first instance you might say happy days and in the second say sad days.

$ ml transcribe azspeech | ml sentiment aztext

$ ml transcribe azspeech | ml sentiment aztext

Pipelines can become quite powerful. Indeed, a pipeline can exhibit AI that might appear to be more than just the sum of its parts. Here, it transcribes the audio from the microphone, which for me would be English, translates it to French, cuts the actual text, and synthesizes it in a French voice.

$ ml transcribe azspeech |
  ml translate aztranslate --to=fr |
  cut -d',' -f4- |
  ml synthesize azspeech --voice=fr-FR-DeniseNeural


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-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.