Skip to content

Commit

Permalink
add param for file
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDuvall committed Sep 3, 2018
1 parent a606424 commit 7c6966b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion labs/polly/pipeline.yml
Expand Up @@ -30,6 +30,10 @@ Parameters:
Type: String
Default: "aws/codebuild/ubuntu-base:14.04"
Description: The build image to use for building the app
TextFileLocation:
Type: String
Description: Location of Text File
Default: "./labs/polly/blog.txt"
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
Expand Down Expand Up @@ -152,7 +156,7 @@ Resources:
post_build:
commands:
- aws --version
- testvar=$(cat ./labs/polly/blog.txt)
- testvar=$(cat ${TextFileLocation})
- aws polly start-speech-synthesis-task --output-format mp3 --output-s3-bucket-name ${PollyRecordingsBucket} --text "$testvar" --voice-id Joanna
- pollyObjectId=$(aws polly list-speech-synthesis-tasks --max-results 1 --query 'SynthesisTasks[].TaskId' --output text)
- pollyObjectTaskId=$(echo $pollyObjectId.mp3)
Expand Down

0 comments on commit 7c6966b

Please sign in to comment.