Class: Telnyx::Models::TextToSpeechListVoicesResponse::Voice
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::TextToSpeechListVoicesResponse::Voice
- Defined in:
- lib/telnyx/models/text_to_speech_list_voices_response.rb
Instance Attribute Summary collapse
-
#gender ⇒ String?
Voice gender.
-
#language ⇒ String?
Language code.
-
#name ⇒ String?
Voice name.
-
#provider ⇒ String?
The TTS provider.
-
#voice_id ⇒ String?
Voice identifier.
Instance Method Summary collapse
-
#initialize(gender: nil, language: nil, name: nil, provider: nil, voice_id: nil) ⇒ Object
constructor
A voice available for text-to-speech synthesis.
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(gender: nil, language: nil, name: nil, provider: nil, voice_id: nil) ⇒ Object
A voice available for text-to-speech synthesis.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/telnyx/models/text_to_speech_list_voices_response.rb', line 18 class Voice < Telnyx::Internal::Type::BaseModel # @!attribute gender # Voice gender. # # @return [String, nil] optional :gender, String # @!attribute language # Language code. # # @return [String, nil] optional :language, String # @!attribute name # Voice name. # # @return [String, nil] optional :name, String # @!attribute provider # The TTS provider. # # @return [String, nil] optional :provider, String # @!attribute voice_id # Voice identifier. # # @return [String, nil] optional :voice_id, String # @!method initialize(gender: nil, language: nil, name: nil, provider: nil, voice_id: nil) # A voice available for text-to-speech synthesis. # # @param gender [String] Voice gender. # # @param language [String] Language code. # # @param name [String] Voice name. # # @param provider [String] The TTS provider. # # @param voice_id [String] Voice identifier. end |
Instance Attribute Details
#gender ⇒ String?
Voice gender.
23 |
# File 'lib/telnyx/models/text_to_speech_list_voices_response.rb', line 23 optional :gender, String |
#language ⇒ String?
Language code.
29 |
# File 'lib/telnyx/models/text_to_speech_list_voices_response.rb', line 29 optional :language, String |
#name ⇒ String?
Voice name.
35 |
# File 'lib/telnyx/models/text_to_speech_list_voices_response.rb', line 35 optional :name, String |
#provider ⇒ String?
The TTS provider.
41 |
# File 'lib/telnyx/models/text_to_speech_list_voices_response.rb', line 41 optional :provider, String |
#voice_id ⇒ String?
Voice identifier.
47 |
# File 'lib/telnyx/models/text_to_speech_list_voices_response.rb', line 47 optional :voice_id, String |