Table of Contents

Class InteractionTranscriptionConfig

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Speech recognition (transcription) configuration.

public sealed class InteractionTranscriptionConfig
Inheritance
InteractionTranscriptionConfig
Inherited Members
Extension Methods

Properties

AdaptationPhrases

Deprecated in the API. Phrases to bias the ASR model towards.

[JsonPropertyName("adaptation_phrases")]
public List<string>? AdaptationPhrases { get; set; }

Property Value

List<string>

CustomVocabulary

Custom vocabulary phrases to bias the speech recognition model towards.

[JsonPropertyName("custom_vocabulary")]
public List<string>? CustomVocabulary { get; set; }

Property Value

List<string>

DiarizationMode

Deprecated in the API. Speaker diarization mode (speaker).

[JsonPropertyName("diarization_mode")]
public string? DiarizationMode { get; set; }

Property Value

string

LanguageCodes

BCP-47 language codes present in the audio.

[JsonPropertyName("language_codes")]
public List<string>? LanguageCodes { get; set; }

Property Value

List<string>

LanguageHints

Deprecated in the API; use LanguageCodes.

[JsonPropertyName("language_hints")]
public List<string>? LanguageHints { get; set; }

Property Value

List<string>

Mode

The transcription mode: the string "verbatim" / "smart", or an object such as {"type":"smart","source_text":"..."} or {"type":"verbatim","diarization_mode":"speaker","timestamp_granularities":["word"]}.

[JsonPropertyName("mode")]
public JsonNode? Mode { get; set; }

Property Value

JsonNode

TimestampGranularities

Deprecated in the API. Granularity of timestamps in the transcription output.

[JsonPropertyName("timestamp_granularities")]
public List<string>? TimestampGranularities { get; set; }

Property Value

List<string>