Skip to content

Commit

Permalink
set trailing silence to be as low as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 committed Aug 3, 2023
1 parent af8b7b0 commit e1a4605
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vocode/streaming/synthesizer/azure_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ def create_ssml(
"styledegree", str(bot_sentiment.degree * 2)
) # Azure specific, it's a scale of 0-2
voice_root = styled
silence = ElementTree.SubElement(
voice_root, "{%s}silence" % NAMESPACES.get("mstts")
)
silence.set("value", "500ms")
silence.set("type", "Tailing-exact")
prosody = ElementTree.SubElement(voice_root, "prosody")
prosody.set("pitch", f"{self.pitch}%")
prosody.set("rate", f"{self.rate}%")
Expand Down

0 comments on commit e1a4605

Please sign in to comment.