Go lang console text to amazon polly speech audio
You need AWS CLI on your computer and access to polly by default Im running polly in us-east-1
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
By default im using the voiceId Takumi to translate to japanese but it can be changed to other languages keep reading to learn how
go run speak.go -say ใใใซใกใ
or
go run speak.go -say="ใใใซใกใ"
.
โโโ tmp
โโโ ใใใชใ.mp3
cd audio/
check https://docs.aws.amazon.com/polly/latest/dg/voicelist.html for more voiceIds
go run speak.go -say="bonjour je m'appelle Celine" -voiceId Celine
.
โโโ tmp
โโโ bonjour je m'appelle Celine.mp3
cd audio/