able-jackal-84140
06/25/2025, 10:52 AMtall-airline-16756
06/25/2025, 10:52 AMtall-airline-16756
06/25/2025, 10:52 AMsynthesize()
method when you have a complete text to convert to audio at once. It requires input_text
at initialization and is not tracked in a collection of streams.
• SynthesizeStream: This is used with the stream()
method for ongoing or real-time text-to-speech conversion. It does not require input_text
at initialization, is added to a collection of streams, and includes a _segments_ch
attribute for word streams.
Both classes handle text-to-speech conversion but are designed for different use cases in the API.
Sources: GitHub::livekit::agents | livekit-plugins/livekit-plugins-playai/livekit/pl...able-jackal-84140
06/25/2025, 10:56 AMtall-airline-16756
06/25/2025, 10:56 AM