is `segments` in TranscriptionEvent always a list ...
# ask-ai
n
is
segments
in TranscriptionEvent always a list of 1 element?
g
It seems likely that the
segments
in a
TranscriptionEvent
can contain multiple elements. According to the LiveKit Python SDK documentation, the
Transcription
class includes a
segments
attribute, which is a list of
TranscriptionSegment
objects. This suggests that multiple segments can be included in a single transcription event. Would you like more detail on how these segments are typically used or processed? Sources: - LiveKit Python SDK documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
n
@millions-hair-24956 I know it's a list, but in my all experiments, it's always a list with single element
g
It seems likely that while the
segments
attribute is designed to hold multiple
TranscriptionSegment
objects, in practice, you might often encounter it as a list with a single element. This could be due to the way transcription data is processed or emitted in your specific setup or use case. Would you like more detail on potential reasons or configurations that might affect this behavior? Sources: - https://docs.livekit.io/client-sdk-android/livekit-android-sdk/io.livekit.android.events/-room-event/-transcription-received/transcription-segments.html#livekit-android-sdk-nav-submenu-10-14-2-4 Note: I wasn’t able to find highly relevant data sources, but above are a few potentially relevant links. 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.