Result Utils
Utilities for converting between transcript lists and TextResult.
resolve_audio_transcripts(result)
Normalize converter output to a list of AudioTranscript segments.
Supports both the legacy list return type and the unified TextResult format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
TextResult | list[AudioTranscript]
|
Converter output. |
required |
Returns:
| Type | Description |
|---|---|
list[AudioTranscript]
|
list[AudioTranscript]: Transcript segments extracted from the result. |
transcripts_to_text_result(transcripts)
Wrap transcript segments in a TextResult.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transcripts
|
list[AudioTranscript]
|
Timestamped transcript segments. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TextResult |
TextResult
|
Combined text with structured segment metadata. |