npm i
- Create a folder named
credential
at the root. - Place the GCP service credential JSON file in the
credential
folder. - Edit line 1 of
app.js
to set the path to your GCP service credential JSON file.
node app.js
- The
input.txt
file is where you enter the text. - The
output.mp3
file is the converted speech audio.