interrupt without stopping the text
# ask-ai
g
interrupt without stopping the text
t
Thanks for reaching out, Khant. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for your question. Based on the available information, LiveKit provides methods to interrupt speech, such as the
PlayoutHandle
class's
interrupt()
method and the voice assistant's
interrupt()
method, which can interrupt the current speech with options to handle pending speech. However, there isn't specific information about interrupting text without stopping it. If you could clarify your use case or provide additional details, I would be happy to assist further. Sources: PlayoutHandle | LiveKit Agents | livekit.agents.voice_assistant API documentation
g
so the current agent stream both voice and text in parallel, I want this logic: if the user interrupted, the voice need to be stop and transcription should render the rest.
t
Thank you for providing more details. Unfortunately, I couldn't find specific information in the available resources about implementing a logic where voice stops upon user interruption while text transcription continues rendering the rest. This might require custom implementation. If you have any further details or specific requirements, feel free to share, and I will do my best to assist you.