Last active
August 11, 2020 21:17
-
-
Save garystafford/315e4cdf19cf743d2d2e499f42786e2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEXT_FILE_CONTENTS=$(cat path/to/my/blog_text_file.txt) | |
OUTPUT_BUCKET=my_bucket_name | |
TOPIC=blog | |
aws polly put-lexicon \ | |
--name blogvocab \ | |
--content file://path/to/my/blogvocab.pls | |
aws polly put-lexicon \ | |
--name techterms \ | |
--content file://path/to/my/techterms.pls | |
aws polly start-speech-synthesis-task \ | |
--engine neural \ | |
--language-code en-US \ | |
--lexicon-names blogvocab techterms \ | |
--output-format mp3 \ | |
--output-s3-bucket-name ${OUTPUT_BUCKET} \ | |
--output-s3-key-prefix ${TOPIC} \ | |
--text ${TEXT_FILE_CONTENTS} \ | |
--text-type text \ | |
--voice-id Joanna |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment