Class: Telnyx::Models::Calls::TranscriptionConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::Calls::TranscriptionConfig
- Defined in:
- lib/telnyx/models/calls/transcription_config.rb,
sig/telnyx/models/calls/transcription_config.rbs
Defined Under Namespace
Modules: Model
Instance Attribute Summary collapse
-
#language ⇒ String?
The language of the audio to be transcribed.
-
#model ⇒ Symbol, ...
The speech to text model to be used by the voice assistant.
Instance Method Summary collapse
-
#initialize(language: nil, model: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TranscriptionConfig for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(language: nil, model: nil) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::Calls::TranscriptionConfig for more details.
The settings associated with speech to text for the voice assistant. This is
only relevant if the assistant uses a text-to-text language model. Any assistant
using a model with native audio support (e.g. fixie-ai/ultravox-v0_4) will
ignore this field.
|
|
# File 'lib/telnyx/models/calls/transcription_config.rb', line 45
|
Instance Attribute Details
#language ⇒ String?
The language of the audio to be transcribed. If not set, or if set to auto,
supported models will automatically detect the language. Supported and
meaningful values depend on the selected transcription model. For
deepgram/flux, supported values are: auto (Telnyx language detection
controls the language hint), multi (no language hint), and language-specific
hints en, es, fr, de, hi, ru, pt, ja, it, and nl. For
soniox/stt-rt-v4, auto omits the language hint and lets Soniox auto-detect;
ISO 639-1 codes (e.g. en, es) bias detection toward that language.
18 |
# File 'lib/telnyx/models/calls/transcription_config.rb', line 18 optional :language, String |
#model ⇒ Symbol, ...
The speech to text model to be used by the voice assistant. Supported models include:
deepgram/flux(orflux) for live streaming turn-taking.deepgram/nova-3anddeepgram/nova-2for live streaming transcription.speechmatics/standardandspeechmatics/enhancedfor live streaming transcription.assemblyai/universal-streamingfor live streaming transcription.xai/grok-sttfor live streaming transcription.soniox/stt-rt-v4for live streaming multilingual transcription with automatic language detection.parakeet/tdt-0.6b-v3for multilingual transcription with automatic language detection.azure/fastandazure/realtime; Azure models requireregion, and unsupported regions requireapi_key_ref.google/latest_longfor non-streaming multilingual transcription.distil-whisper/distil-large-v2for lower-latency English-only non-streaming transcription.openai/whisper-large-v3-turbofor multilingual non-streaming transcription with automatic language detection.
43 |
# File 'lib/telnyx/models/calls/transcription_config.rb', line 43 optional :model, enum: -> { Telnyx::Calls::TranscriptionConfig::Model } |
Instance Method Details
#to_hash ⇒ {
26 |
# File 'sig/telnyx/models/calls/transcription_config.rbs', line 26
def to_hash: -> {
|