| 1 | package Google::Cloud::Speech::V1::CloudSpeech::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 'RecognizeRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::RecognizeRequest']; | ||
| 12 | |||
| 13 | coerce 'RecognizeRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::RecognizeRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedRecognizeRequest', | ||
| 17 | as ArrayRef[RecognizeRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedRecognizeRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::RecognizeRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringRecognizeRequest', | ||
| 23 | as HashRef[RecognizeRequest()]; | ||
| 24 | |||
| 25 | declare 'LongRunningRecognizeRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeRequest']; | ||
| 27 | |||
| 28 | coerce 'LongRunningRecognizeRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedLongRunningRecognizeRequest', | ||
| 32 | as ArrayRef[LongRunningRecognizeRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedLongRunningRecognizeRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringLongRunningRecognizeRequest', | ||
| 38 | as HashRef[LongRunningRecognizeRequest()]; | ||
| 39 | |||
| 40 | declare 'TranscriptOutputConfig', | ||
| 41 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::TranscriptOutputConfig']; | ||
| 42 | |||
| 43 | coerce 'TranscriptOutputConfig', | ||
| 44 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::TranscriptOutputConfig'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTranscriptOutputConfig', | ||
| 47 | as ArrayRef[TranscriptOutputConfig()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTranscriptOutputConfig', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::TranscriptOutputConfig'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTranscriptOutputConfig', | ||
| 53 | as HashRef[TranscriptOutputConfig()]; | ||
| 54 | |||
| 55 | declare 'StreamingRecognizeRequest', | ||
| 56 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognizeRequest']; | ||
| 57 | |||
| 58 | coerce 'StreamingRecognizeRequest', | ||
| 59 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognizeRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedStreamingRecognizeRequest', | ||
| 62 | as ArrayRef[StreamingRecognizeRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedStreamingRecognizeRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognizeRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringStreamingRecognizeRequest', | ||
| 68 | as HashRef[StreamingRecognizeRequest()]; | ||
| 69 | |||
| 70 | declare 'StreamingRecognitionConfig', | ||
| 71 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionConfig']; | ||
| 72 | |||
| 73 | coerce 'StreamingRecognitionConfig', | ||
| 74 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionConfig'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedStreamingRecognitionConfig', | ||
| 77 | as ArrayRef[StreamingRecognitionConfig()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedStreamingRecognitionConfig', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionConfig'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringStreamingRecognitionConfig', | ||
| 83 | as HashRef[StreamingRecognitionConfig()]; | ||
| 84 | |||
| 85 | declare 'VoiceActivityTimeout', | ||
| 86 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionConfig::VoiceActivityTimeout']; | ||
| 87 | |||
| 88 | coerce 'VoiceActivityTimeout', | ||
| 89 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionConfig::VoiceActivityTimeout'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedVoiceActivityTimeout', | ||
| 92 | as ArrayRef[VoiceActivityTimeout()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedVoiceActivityTimeout', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionConfig::VoiceActivityTimeout'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringVoiceActivityTimeout', | ||
| 98 | as HashRef[VoiceActivityTimeout()]; | ||
| 99 | |||
| 100 | declare 'RecognitionConfig', | ||
| 101 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::RecognitionConfig']; | ||
| 102 | |||
| 103 | coerce 'RecognitionConfig', | ||
| 104 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::RecognitionConfig'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedRecognitionConfig', | ||
| 107 | as ArrayRef[RecognitionConfig()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedRecognitionConfig', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::RecognitionConfig'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringRecognitionConfig', | ||
| 113 | as HashRef[RecognitionConfig()]; | ||
| 114 | |||
| 115 | declare 'AudioEncoding', | ||
| 116 | as (Int | Str); | ||
| 117 | |||
| 118 | declare 'SpeakerDiarizationConfig', | ||
| 119 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::SpeakerDiarizationConfig']; | ||
| 120 | |||
| 121 | coerce 'SpeakerDiarizationConfig', | ||
| 122 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::SpeakerDiarizationConfig'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedSpeakerDiarizationConfig', | ||
| 125 | as ArrayRef[SpeakerDiarizationConfig()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedSpeakerDiarizationConfig', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::SpeakerDiarizationConfig'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringSpeakerDiarizationConfig', | ||
| 131 | as HashRef[SpeakerDiarizationConfig()]; | ||
| 132 | |||
| 133 | declare 'RecognitionMetadata', | ||
| 134 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::RecognitionMetadata']; | ||
| 135 | |||
| 136 | coerce 'RecognitionMetadata', | ||
| 137 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::RecognitionMetadata'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedRecognitionMetadata', | ||
| 140 | as ArrayRef[RecognitionMetadata()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedRecognitionMetadata', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::RecognitionMetadata'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringRecognitionMetadata', | ||
| 146 | as HashRef[RecognitionMetadata()]; | ||
| 147 | |||
| 148 | declare 'InteractionType', | ||
| 149 | as (Int | Str); | ||
| 150 | |||
| 151 | declare 'MicrophoneDistance', | ||
| 152 | as (Int | Str); | ||
| 153 | |||
| 154 | declare 'OriginalMediaType', | ||
| 155 | as (Int | Str); | ||
| 156 | |||
| 157 | declare 'RecordingDeviceType', | ||
| 158 | as (Int | Str); | ||
| 159 | |||
| 160 | declare 'SpeechContext', | ||
| 161 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::SpeechContext']; | ||
| 162 | |||
| 163 | coerce 'SpeechContext', | ||
| 164 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::SpeechContext'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedSpeechContext', | ||
| 167 | as ArrayRef[SpeechContext()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedSpeechContext', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::SpeechContext'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringSpeechContext', | ||
| 173 | as HashRef[SpeechContext()]; | ||
| 174 | |||
| 175 | declare 'RecognitionAudio', | ||
| 176 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::RecognitionAudio']; | ||
| 177 | |||
| 178 | coerce 'RecognitionAudio', | ||
| 179 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::RecognitionAudio'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedRecognitionAudio', | ||
| 182 | as ArrayRef[RecognitionAudio()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedRecognitionAudio', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::RecognitionAudio'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringRecognitionAudio', | ||
| 188 | as HashRef[RecognitionAudio()]; | ||
| 189 | |||
| 190 | declare 'RecognizeResponse', | ||
| 191 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::RecognizeResponse']; | ||
| 192 | |||
| 193 | coerce 'RecognizeResponse', | ||
| 194 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::RecognizeResponse'->new($_) }; | ||
| 195 | |||
| 196 | declare 'RepeatedRecognizeResponse', | ||
| 197 | as ArrayRef[RecognizeResponse()]; | ||
| 198 | |||
| 199 | coerce 'RepeatedRecognizeResponse', | ||
| 200 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::RecognizeResponse'->new($_) } @$_ ] }; | ||
| 201 | |||
| 202 | declare 'MapStringRecognizeResponse', | ||
| 203 | as HashRef[RecognizeResponse()]; | ||
| 204 | |||
| 205 | declare 'LongRunningRecognizeResponse', | ||
| 206 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeResponse']; | ||
| 207 | |||
| 208 | coerce 'LongRunningRecognizeResponse', | ||
| 209 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeResponse'->new($_) }; | ||
| 210 | |||
| 211 | declare 'RepeatedLongRunningRecognizeResponse', | ||
| 212 | as ArrayRef[LongRunningRecognizeResponse()]; | ||
| 213 | |||
| 214 | coerce 'RepeatedLongRunningRecognizeResponse', | ||
| 215 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeResponse'->new($_) } @$_ ] }; | ||
| 216 | |||
| 217 | declare 'MapStringLongRunningRecognizeResponse', | ||
| 218 | as HashRef[LongRunningRecognizeResponse()]; | ||
| 219 | |||
| 220 | declare 'LongRunningRecognizeMetadata', | ||
| 221 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeMetadata']; | ||
| 222 | |||
| 223 | coerce 'LongRunningRecognizeMetadata', | ||
| 224 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeMetadata'->new($_) }; | ||
| 225 | |||
| 226 | declare 'RepeatedLongRunningRecognizeMetadata', | ||
| 227 | as ArrayRef[LongRunningRecognizeMetadata()]; | ||
| 228 | |||
| 229 | coerce 'RepeatedLongRunningRecognizeMetadata', | ||
| 230 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::LongRunningRecognizeMetadata'->new($_) } @$_ ] }; | ||
| 231 | |||
| 232 | declare 'MapStringLongRunningRecognizeMetadata', | ||
| 233 | as HashRef[LongRunningRecognizeMetadata()]; | ||
| 234 | |||
| 235 | declare 'StreamingRecognizeResponse', | ||
| 236 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognizeResponse']; | ||
| 237 | |||
| 238 | coerce 'StreamingRecognizeResponse', | ||
| 239 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognizeResponse'->new($_) }; | ||
| 240 | |||
| 241 | declare 'RepeatedStreamingRecognizeResponse', | ||
| 242 | as ArrayRef[StreamingRecognizeResponse()]; | ||
| 243 | |||
| 244 | coerce 'RepeatedStreamingRecognizeResponse', | ||
| 245 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognizeResponse'->new($_) } @$_ ] }; | ||
| 246 | |||
| 247 | declare 'MapStringStreamingRecognizeResponse', | ||
| 248 | as HashRef[StreamingRecognizeResponse()]; | ||
| 249 | |||
| 250 | declare 'SpeechEventType', | ||
| 251 | as (Int | Str); | ||
| 252 | |||
| 253 | declare 'StreamingRecognitionResult', | ||
| 254 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionResult']; | ||
| 255 | |||
| 256 | coerce 'StreamingRecognitionResult', | ||
| 257 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionResult'->new($_) }; | ||
| 258 | |||
| 259 | declare 'RepeatedStreamingRecognitionResult', | ||
| 260 | as ArrayRef[StreamingRecognitionResult()]; | ||
| 261 | |||
| 262 | coerce 'RepeatedStreamingRecognitionResult', | ||
| 263 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::StreamingRecognitionResult'->new($_) } @$_ ] }; | ||
| 264 | |||
| 265 | declare 'MapStringStreamingRecognitionResult', | ||
| 266 | as HashRef[StreamingRecognitionResult()]; | ||
| 267 | |||
| 268 | declare 'SpeechRecognitionResult', | ||
| 269 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::SpeechRecognitionResult']; | ||
| 270 | |||
| 271 | coerce 'SpeechRecognitionResult', | ||
| 272 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::SpeechRecognitionResult'->new($_) }; | ||
| 273 | |||
| 274 | declare 'RepeatedSpeechRecognitionResult', | ||
| 275 | as ArrayRef[SpeechRecognitionResult()]; | ||
| 276 | |||
| 277 | coerce 'RepeatedSpeechRecognitionResult', | ||
| 278 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::SpeechRecognitionResult'->new($_) } @$_ ] }; | ||
| 279 | |||
| 280 | declare 'MapStringSpeechRecognitionResult', | ||
| 281 | as HashRef[SpeechRecognitionResult()]; | ||
| 282 | |||
| 283 | declare 'SpeechRecognitionAlternative', | ||
| 284 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::SpeechRecognitionAlternative']; | ||
| 285 | |||
| 286 | coerce 'SpeechRecognitionAlternative', | ||
| 287 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::SpeechRecognitionAlternative'->new($_) }; | ||
| 288 | |||
| 289 | declare 'RepeatedSpeechRecognitionAlternative', | ||
| 290 | as ArrayRef[SpeechRecognitionAlternative()]; | ||
| 291 | |||
| 292 | coerce 'RepeatedSpeechRecognitionAlternative', | ||
| 293 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::SpeechRecognitionAlternative'->new($_) } @$_ ] }; | ||
| 294 | |||
| 295 | declare 'MapStringSpeechRecognitionAlternative', | ||
| 296 | as HashRef[SpeechRecognitionAlternative()]; | ||
| 297 | |||
| 298 | declare 'WordInfo', | ||
| 299 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::WordInfo']; | ||
| 300 | |||
| 301 | coerce 'WordInfo', | ||
| 302 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::WordInfo'->new($_) }; | ||
| 303 | |||
| 304 | declare 'RepeatedWordInfo', | ||
| 305 | as ArrayRef[WordInfo()]; | ||
| 306 | |||
| 307 | coerce 'RepeatedWordInfo', | ||
| 308 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::WordInfo'->new($_) } @$_ ] }; | ||
| 309 | |||
| 310 | declare 'MapStringWordInfo', | ||
| 311 | as HashRef[WordInfo()]; | ||
| 312 | |||
| 313 | declare 'SpeechAdaptationInfo', | ||
| 314 | as InstanceOf['Google::Cloud::Speech::V1::CloudSpeech::SpeechAdaptationInfo']; | ||
| 315 | |||
| 316 | coerce 'SpeechAdaptationInfo', | ||
| 317 | from HashRef, via { 'Google::Cloud::Speech::V1::CloudSpeech::SpeechAdaptationInfo'->new($_) }; | ||
| 318 | |||
| 319 | declare 'RepeatedSpeechAdaptationInfo', | ||
| 320 | as ArrayRef[SpeechAdaptationInfo()]; | ||
| 321 | |||
| 322 | coerce 'RepeatedSpeechAdaptationInfo', | ||
| 323 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Speech::V1::CloudSpeech::SpeechAdaptationInfo'->new($_) } @$_ ] }; | ||
| 324 | |||
| 325 | declare 'MapStringSpeechAdaptationInfo', | ||
| 326 | as HashRef[SpeechAdaptationInfo()]; | ||
| 327 | |||
| 328 | 1; | ||
| 329 | |||
| 330 | __END__ |