my tts doens't support streaming. How to disable t...
# ask-ai
a
my tts doens't support streaming. How to disable that
t
Thanks for reaching out, Aditya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To disable streaming for your Text-to-Speech (TTS) setup, you can configure the TTS instance by setting the
streaming
parameter to
false
. Here are two examples: • In the OpenAI plugin test file, you can explicitly set streaming to false:
await tts(new TTS(), new STT(), { streaming: false });
• In the Spitch TTS implementation, streaming is disabled by default in the constructor:
Copy code
def __init__(self, *, language: str = "en", voice: "lina"):
    super().__init__(
        capabilities=tts.TTSCapabilities(streaming=False), sample_rate=24_000, num_channels=1
    )
Let me know if you need further assistance with this! Sources: GitHub::livekit::livekit_composite | livekit/agents/livekit-plugins/livekit...
a
show me the exact code
t
Hey there! Wondering how to turn off streaming for text-to-speech? I've got you covered with a couple of super clear examples that should help you out. Example 1: OpenAI plugin test file
Copy code
await tts(new TTS(), new STT(), { streaming: false });
Example 2: Spitch TTS implementation
Copy code
def __init__(self, *, language: str = "en", voice: "lina"):
    super().__init__(
        capabilities=tts.TTSCapabilities(streaming=False), sample_rate=24_000, num_channels=1
    )
I'm happy to walk you through this or provide more details if anything isn't crystal clear. Just ask! 😊
a
where is this file localted?
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!