A simple ruby script to convert a text to audio using the Google service: Text-to-speech.
- Create an
.env
file and set a value forGOOGLE_API_KEY
.
docker build . -t text-to-speech
docker run -it -v $PWD:/app --env-file .env text-to-speech \
--input-file=input.ssml --output-file=output.mp3