Skip to content

Commit

Permalink
Use sentence speech mark types to reduce search space for timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad-Edwards committed May 30, 2024
1 parent 665f6e5 commit 118b354
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def create_audio(
OutputFormat="mp3",
OutputS3BucketName=config[DATA_BUCKET],
OutputS3KeyPrefix=filename,
SpeechMarkTypes=["ssml"],
SpeechMarkTypes=["sentence"],
Text=script_text,
TextType="ssml",
VoiceId="Matthew",
Expand Down Expand Up @@ -357,7 +357,7 @@ def create_speech_marks(
OutputFormat="json",
OutputS3BucketName=config[DATA_BUCKET],
OutputS3KeyPrefix=filename,
SpeechMarkTypes=["ssml"],
SpeechMarkTypes=["sentence"],
Text=script_text,
TextType="ssml",
VoiceId="Matthew",
Expand Down

0 comments on commit 118b354

Please sign in to comment.