I got this in my livekit playground: ignoring inco...
# ask-ai
h
I got this in my livekit playground: ignoring incoming text stream due to no handler for topic lk.transcription
t
Thanks for reaching out, YUNYI. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The message "ignoring incoming text stream due to no handler for topic lk.transcription" indicates that a text stream with the topic "lk.transcription" was received, but no handler was registered to process it. This behavior is consistent across different SDKs (JavaScript, Flutter, Android), where the system logs this message and ignores the incoming stream if no handler is set up for the specific topic. To resolve this, you would need to register an appropriate handler for the topic "lk.transcription" in your implementation. If you need further guidance on how to set up a handler, feel free to let me know! Sources: GitHub::livekit::livekit_composite | livekit/client-sdk-android/livekit-and...
h
how to register that handler, I use the livekit playground
t
Hey there! Want to learn how to register a handler for the "lk.transcription" topic in the LiveKit playground? I've got a super friendly walkthrough for you using the
registerTextStreamHandler
method.
Copy code
room.registerTextStreamHandler('lk.transcription', async (reader, participantInfo) => {
  const message = await reader.readAll();
  if (reader.info.attributes['lk.transcribed_track_id']) {
    console.log(`New transcription from ${participantInfo.identity}: ${message}`);
  } else {
    console.log(`New message from ${participantInfo.identity}: ${message}`);
  }
});
Here's the scoop: this code sets up a handler that can process both transcriptions and regular text messages. It's pretty clever – it checks for a
lk.transcribed_track_id
attribute to figure out if something's a transcription or just a regular chat message. Got questions or need a bit more help? I'm totally here for you – just ask! Sources: Text and transcriptions | LiveKit Docs
m
@handsome-easter-5670 did you find why it happen
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!
p
Did anyone find out the answer to this?
@alert-easter-19258 What do you think?