https://docs.aws.amazon.com/ja_jp/polly/latest/dg/getting-started-cli.html
Amazon Polly はテキストを肉声に近い音声に変換するクラウドサービスです。
-- 1. コマンド等のインストール
-- 1.1 aws cli version 2 インストール
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws --version
-- 1.2 jqインストール
sudo yum -y install jq
-- 2. サンプルテキストを音声ファイルに合成する
aws polly describe-voices
aws polly describe-voices \
--language-code en-US
aws polly describe-voices \
--language-code ja-JP
aws polly synthesize-speech \
--engine standard \
--output-format mp3 \
--voice-id Joanna \
--text 'Hello, my name is Joanna. I learned about the W3C on 10/3 of last year.' \
standard.mp3
aws polly synthesize-speech \
--engine neural \
--output-format mp3 \
--voice-id Joanna \
--text 'Hello, my name is Joanna. I learned about the W3C on 10/3 of last year.' \
neural.mp3