Gemini.Types.Live.Transcription (GeminiEx v0.11.0)

Copy Markdown View Source

Transcription of audio (input or output) in Live API sessions.

Represents the text transcription of audio content. Transcriptions are sent independently of other server messages and there is no guaranteed ordering.

Fields

  • text - The transcription text

Example

%Transcription{text: "Hello, how can I help you today?"}

Summary

Functions

Parses from API response.

Creates a new Transcription.

Converts to API format (camelCase).

Types

t()

@type t() :: %Gemini.Types.Live.Transcription{text: String.t() | nil}

Functions

from_api(data)

@spec from_api(map() | nil) :: t() | nil

Parses from API response.

new(opts \\ [])

@spec new(keyword()) :: t()

Creates a new Transcription.

to_api(value)

@spec to_api(t() | nil) :: map() | nil

Converts to API format (camelCase).