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