| 1 | package Google::Cloud::Dialogflow::V2beta1::AudioConfig::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'TelephonyDtmf', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'AudioEncoding', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'SpeechModelVariant', | ||
| 17 | as (Int | Str); | ||
| 18 | |||
| 19 | declare 'SsmlVoiceGender', | ||
| 20 | as (Int | Str); | ||
| 21 | |||
| 22 | declare 'OutputAudioEncoding', | ||
| 23 | as (Int | Str); | ||
| 24 | |||
| 25 | declare 'SpeechContext', | ||
| 26 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechContext']; | ||
| 27 | |||
| 28 | coerce 'SpeechContext', | ||
| 29 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechContext'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedSpeechContext', | ||
| 32 | as ArrayRef[SpeechContext()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedSpeechContext', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechContext'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringSpeechContext', | ||
| 38 | as HashRef[SpeechContext()]; | ||
| 39 | |||
| 40 | declare 'SpeechWordInfo', | ||
| 41 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechWordInfo']; | ||
| 42 | |||
| 43 | coerce 'SpeechWordInfo', | ||
| 44 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechWordInfo'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedSpeechWordInfo', | ||
| 47 | as ArrayRef[SpeechWordInfo()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedSpeechWordInfo', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechWordInfo'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringSpeechWordInfo', | ||
| 53 | as HashRef[SpeechWordInfo()]; | ||
| 54 | |||
| 55 | declare 'BargeInConfig', | ||
| 56 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::BargeInConfig']; | ||
| 57 | |||
| 58 | coerce 'BargeInConfig', | ||
| 59 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::BargeInConfig'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedBargeInConfig', | ||
| 62 | as ArrayRef[BargeInConfig()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedBargeInConfig', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::BargeInConfig'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringBargeInConfig', | ||
| 68 | as HashRef[BargeInConfig()]; | ||
| 69 | |||
| 70 | declare 'InputAudioConfig', | ||
| 71 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::InputAudioConfig']; | ||
| 72 | |||
| 73 | coerce 'InputAudioConfig', | ||
| 74 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::InputAudioConfig'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedInputAudioConfig', | ||
| 77 | as ArrayRef[InputAudioConfig()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedInputAudioConfig', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::InputAudioConfig'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringInputAudioConfig', | ||
| 83 | as HashRef[InputAudioConfig()]; | ||
| 84 | |||
| 85 | declare 'VoiceSelectionParams', | ||
| 86 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::VoiceSelectionParams']; | ||
| 87 | |||
| 88 | coerce 'VoiceSelectionParams', | ||
| 89 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::VoiceSelectionParams'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedVoiceSelectionParams', | ||
| 92 | as ArrayRef[VoiceSelectionParams()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedVoiceSelectionParams', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::VoiceSelectionParams'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringVoiceSelectionParams', | ||
| 98 | as HashRef[VoiceSelectionParams()]; | ||
| 99 | |||
| 100 | declare 'SynthesizeSpeechConfig', | ||
| 101 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::SynthesizeSpeechConfig']; | ||
| 102 | |||
| 103 | coerce 'SynthesizeSpeechConfig', | ||
| 104 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SynthesizeSpeechConfig'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedSynthesizeSpeechConfig', | ||
| 107 | as ArrayRef[SynthesizeSpeechConfig()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedSynthesizeSpeechConfig', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SynthesizeSpeechConfig'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringSynthesizeSpeechConfig', | ||
| 113 | as HashRef[SynthesizeSpeechConfig()]; | ||
| 114 | |||
| 115 | declare 'CustomPronunciationParams', | ||
| 116 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::CustomPronunciationParams']; | ||
| 117 | |||
| 118 | coerce 'CustomPronunciationParams', | ||
| 119 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::CustomPronunciationParams'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedCustomPronunciationParams', | ||
| 122 | as ArrayRef[CustomPronunciationParams()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedCustomPronunciationParams', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::CustomPronunciationParams'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringCustomPronunciationParams', | ||
| 128 | as HashRef[CustomPronunciationParams()]; | ||
| 129 | |||
| 130 | declare 'PhoneticEncoding', | ||
| 131 | as (Int | Str); | ||
| 132 | |||
| 133 | declare 'OutputAudioConfig', | ||
| 134 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::OutputAudioConfig']; | ||
| 135 | |||
| 136 | coerce 'OutputAudioConfig', | ||
| 137 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::OutputAudioConfig'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedOutputAudioConfig', | ||
| 140 | as ArrayRef[OutputAudioConfig()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedOutputAudioConfig', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::OutputAudioConfig'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringOutputAudioConfig', | ||
| 146 | as HashRef[OutputAudioConfig()]; | ||
| 147 | |||
| 148 | declare 'TelephonyDtmfEvents', | ||
| 149 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::TelephonyDtmfEvents']; | ||
| 150 | |||
| 151 | coerce 'TelephonyDtmfEvents', | ||
| 152 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::TelephonyDtmfEvents'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedTelephonyDtmfEvents', | ||
| 155 | as ArrayRef[TelephonyDtmfEvents()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedTelephonyDtmfEvents', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::TelephonyDtmfEvents'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringTelephonyDtmfEvents', | ||
| 161 | as HashRef[TelephonyDtmfEvents()]; | ||
| 162 | |||
| 163 | declare 'SpeechToTextConfig', | ||
| 164 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechToTextConfig']; | ||
| 165 | |||
| 166 | coerce 'SpeechToTextConfig', | ||
| 167 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechToTextConfig'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedSpeechToTextConfig', | ||
| 170 | as ArrayRef[SpeechToTextConfig()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedSpeechToTextConfig', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechToTextConfig'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringSpeechToTextConfig', | ||
| 176 | as HashRef[SpeechToTextConfig()]; | ||
| 177 | |||
| 178 | declare 'GeminiAsrConfig', | ||
| 179 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechToTextConfig::GeminiAsrConfig']; | ||
| 180 | |||
| 181 | coerce 'GeminiAsrConfig', | ||
| 182 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechToTextConfig::GeminiAsrConfig'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedGeminiAsrConfig', | ||
| 185 | as ArrayRef[GeminiAsrConfig()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedGeminiAsrConfig', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::AudioConfig::SpeechToTextConfig::GeminiAsrConfig'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringGeminiAsrConfig', | ||
| 191 | as HashRef[GeminiAsrConfig()]; | ||
| 192 | |||
| 193 | declare 'StartSensitivity', | ||
| 194 | as (Int | Str); | ||
| 195 | |||
| 196 | declare 'EndSensitivity', | ||
| 197 | as (Int | Str); | ||
| 198 | |||
| 199 | 1; | ||
| 200 | |||
| 201 | __END__ |