Amazon Polly gives you high quality Text-to-Speech which allows you create content or augment existing products. You can use Amazon Polly to process 5 million characters per month at no charge. After that, you pay $0.000004 per character, or about $0.004 per minute of generated audio.
- Install AWS Cli
- With homebrew it is a simple
brew install awscli
aws configureand fillt it out with access keys from your credentials
1 2 3 4
aws polly synthesize-speech \ --output-format mp3 --voice-id Brian \ --text "Hello my name is Brian." \ brian.mp3
You can send a maximum of 6000 characters at once.
Custom text-to-speech service for OS X
- Open automator
- Create new service
Add “Run Shell Script”, with pass input as argument
1 2 3 4 5
/usr/local/bin/aws polly synthesize-speech --output-format mp3 --voice-id Brian --text "$@" ~/brian.mp3;afplay ~/brian.mp3; rm ~/brian.mp3
If it runs amok you can stop it with