Module: OpenAI::Models::Chat::ChatCompletionAudioParam::Voice

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/chat/chat_completion_audio_param.rb

Overview

The voice the model uses to respond. Supported voices are ‘alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, and `shimmer`.

See Also:

collapse

ALLOY =
:alloy
ASH =
:ash
BALLAD =
:ballad
CORAL =
:coral
ECHO =
:echo
FABLE =
:fable
ONYX =
:onyx
NOVA =
:nova
SAGE =
:sage
SHIMMER =
:shimmer
VERSE =
:verse

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Class Method Details

.variantsArray(String, Symbol)

Returns:

  • (Array(String, Symbol))


85
86
87
# File 'lib/openai/models/chat/chat_completion_audio_param.rb', line 85

define_sorbet_constant!(:Variants) do
  T.type_alias { T.any(String, OpenAI::Chat::ChatCompletionAudioParam::Voice::TaggedSymbol) }
end