what does this log mean - ```ignoring text stream ...
# ask-ai
b
what does this log mean -
Copy code
ignoring text stream with topic 'lk.transcription', no callback attached
t
Thanks for reaching out, Harsh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! That log message
ignoring text stream with topic 'lk.transcription', no callback attached
pops up when a text stream comes in but there’s no handler set up to deal with it. Don’t worry, this is totally normal in LiveKit—it just means the system is politely skipping over the stream since nothing’s been assigned to process it. If you want to handle the incoming transcription stream and stop seeing that log, you can register a text stream handler for the
lk.transcription
topic. Here’s a quick example in JavaScript:
Copy code
room.registerTextStreamHandler('lk.transcription', async (reader, participantInfo) => {
  const message = await reader.readAll();
  console.log(`New transcription from ${participantInfo.identity}: ${message}`);
});
But if you don’t need to process the
lk.transcription
stream, it’s totally fine to just ignore the log—it’s harmless. If you want a hand setting this up or have any other questions, just let me know!
b
Am I receiving this stream from my STT model?
t
Hey there! To figure out if the
lk.transcription
stream is coming from your custom STT model, you can take a quick look at the stream's attributes and see if
lk.transcribed_track_id
is present. If you don’t see this attribute, that’s a good sign the stream is from your custom STT model. Here’s a little snippet in JavaScript to help you check:
Copy code
room.registerTextStreamHandler('lk.transcription', async (reader, participantInfo) => {
    const message = await reader.readAll();
    if (reader.info.attributes['lk.transcribed_track_id']) {
        console.log('Transcription from default STT');
    } else {
        console.log('Transcription from custom STT');
    }
});
If you have any questions or want me to walk you through it, just let me know—I’m here to help!