OpenAI::TranscriptTextSegmentEvent
Inherits JSON::Serializable < Reference < Object
Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you create a transcription with stream set to true and response_format set to diarized_json.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : TranscriptTextSegmentEventType = TranscriptTextSegmentEventType::TranscriptTextSegment, id : String = "", start : Float32 = 0.0, end_value : Float32 = 0.0, text : String = "", speaker : String = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
type_value=(type_value : TranscriptTextSegmentEventType)
The type of the event. Always transcript.text.segment.