plain-hamburger-12701
11/05/2025, 10:05 AMtall-airline-16756
11/05/2025, 10:05 AMtall-airline-16756
11/05/2025, 10:06 AMplain-hamburger-12701
11/05/2025, 10:06 AMplain-hamburger-12701
11/05/2025, 10:13 AMtall-airline-16756
11/05/2025, 10:13 AMtext_type to ssml
• Send your SSML string as the input
Example structure:
• Use tags like <break time="300ms"/>, <prosody rate="90%" pitch="+2st">...</prosody>, <say-as interpret-as="characters">ABC</say-as>, or <phoneme alphabet="ipa" ph="...">word</phoneme>
If you’d like, share how you’re configuring the Polly plugin now, and I can tailor a snippet. For reference: LiveKit TTS models and the Polly plugin docs linked there.plain-hamburger-12701
11/05/2025, 10:16 AMtall-airline-16756
11/05/2025, 10:17 AMtext_type to "ssml" and pass your SSML string.
• Configure your desired voice, language, and speech_engine as needed.
For details and examples, see the Amazon Polly plugin guide: Amazon Polly TTS plugin guide | LiveKit Docs. General SSML overview: Agent speech and audio | LiveKit docs
Would you like a minimal SSML example (e.g., using <break> or <prosody>) with your chosen Polly voice?
Sources: Agent speech and audio | LiveKit docs | Amazon Polly TTS plugin guide | LiveKit Docstall-airline-16756
11/05/2025, 10:17 AMprosody tag to raise the speaking rate.
To do this via LiveKit’s Polly plugin:
1. Set text_type to ssml
2. Wrap your text in SSML and set a faster rate, e.g.:
<speak>
<prosody rate="120%">This will be spoken faster.</prosody>
</speak>
Common rate values: percentages (e.g., 110%, 130%) or keywords like `fast`/`x-fast`. Start around 115–130% and adjust to taste.
References: Agent speech and audio | Amazon Polly TTS plugin guide
Want a snippet matching your current config? Share how you’re invoking the Polly plugin now.
Sources: Speechify TTS plugin guide | LiveKit Docs | Agent speech and audio | LiveKit docs | Amazon Polly TTS plugin guide | LiveKit Docsplain-hamburger-12701
11/05/2025, 2:53 PMplain-hamburger-12701
11/05/2025, 2:55 PMtall-airline-16756
11/05/2025, 2:55 PM<speak>
<prosody rate="125%">This will be spoken faster with Amazon Polly.</prosody>
</speak>
Invoke via LiveKit Polly plugin (pseudo-API shape)
# Configure the Polly TTS model
polly_tts = PollyTTS(
voice="Joanna", # your preferred voice
speech_engine="neural", # or "standard"
text_type="ssml" # important: treat input as SSML
)
# Synthesize speech from SSML
audio = polly_tts.synthesize("""
<speak>
<prosody rate="125%">This will be spoken faster with Amazon Polly.</prosody>
</speak>
""")
# Play or stream 'audio' via your AgentSession / output pipeline
agent = AgentSession(tts=polly_tts)
agent.say_ssml("""
<speak>
<prosody rate="125%">End-to-end SSML example complete.</prosody>
</speak>
""")
Key points
• Set text_type="ssml" on the Polly TTS model.
• Wrap content in <speak>...</speak> and control speed with <prosody rate="...">.
If you share your language/runtime (Python or Node) and how you’re instantiating the agent, I can tailor this to a concrete snippet. Docs: Amazon Polly plugin | Agent speech and audio