Dart Flutter Command Line Google Text To Speech API Tutorial

Jeff McMorris
3 min readFeb 14, 2020

In this tutorial, I created a simple command line app in dart. It converts text to speech using the google text to speech api and saves the file as an mp3. I reviewed another command line tutorial here which was quite helpful. I also used some code from this great flutter package

Full code for this app can be found here.

So first steps, you need to install dart and stagehand. Stagehand is a dart project generator for command line apps. Stagehand is installed with this command.

--

--