class

OpenAI::CreateTranslationResponseVerboseJson

Inherits JSON::Serializable < Reference < Object

Constructors

new(language : String = "", duration : Float64 = 0.0, text : String = "", segments : Array(TranscriptionSegment) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

duration

The duration of the input audio.

Source
duration=(duration : Float64)

The duration of the input audio.

Source
language

The language of the output translation (always english).

Source
language=(language : String)

The language of the output translation (always english).

Source
segments

Segments of the translated text and their corresponding details.

Source
segments=(segments : Array(TranscriptionSegment) | Nil)

Segments of the translated text and their corresponding details.

Source
text

The translated text.

Source
text=(text : String)

The translated text.

Source