/speak

aws polly speak

Primary LanguageGo

Speak

Go lang console text to amazon polly speech audio

Install AWS CLI

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

https://aws.amazon.com/polly/

๐Ÿš€ Run

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="ใ“ใ‚“ใซใกใ‚"

๐Ÿ check the result inside the audio folder

.
โ””โ”€โ”€ tmp
      โ””โ”€โ”€ ใ•ใ‚ˆใชใ‚‰.mp3

cd audio/

๐Ÿš€ Run with other languages

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

๐Ÿ check the result inside the audio folder

.
โ””โ”€โ”€ tmp
      โ””โ”€โ”€ bonjour je m'appelle Celine.mp3

cd audio/

"Buy Me A Coffee"