1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/dialogflow/v2/audio_config.proto 3 4package dialogflow 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 _ "github.com/golang/protobuf/ptypes/duration" 12 _ "google.golang.org/genproto/googleapis/api/annotations" 13) 14 15// Reference imports to suppress errors if they are not otherwise used. 16var _ = proto.Marshal 17var _ = fmt.Errorf 18var _ = math.Inf 19 20// This is a compile-time assertion to ensure that this generated file 21// is compatible with the proto package it is being compiled against. 22// A compilation error at this line likely means your copy of the 23// proto package needs to be updated. 24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 25 26// Audio encoding of the audio content sent in the conversational query request. 27// Refer to the 28// [Cloud Speech API 29// documentation](https://cloud.google.com/speech-to-text/docs/basics) for more 30// details. 31type AudioEncoding int32 32 33const ( 34 // Not specified. 35 AudioEncoding_AUDIO_ENCODING_UNSPECIFIED AudioEncoding = 0 36 // Uncompressed 16-bit signed little-endian samples (Linear PCM). 37 AudioEncoding_AUDIO_ENCODING_LINEAR_16 AudioEncoding = 1 38 // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio 39 // Codec) is the recommended encoding because it is lossless (therefore 40 // recognition is not compromised) and requires only about half the 41 // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and 42 // 24-bit samples, however, not all fields in `STREAMINFO` are supported. 43 AudioEncoding_AUDIO_ENCODING_FLAC AudioEncoding = 2 44 // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. 45 AudioEncoding_AUDIO_ENCODING_MULAW AudioEncoding = 3 46 // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. 47 AudioEncoding_AUDIO_ENCODING_AMR AudioEncoding = 4 48 // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. 49 AudioEncoding_AUDIO_ENCODING_AMR_WB AudioEncoding = 5 50 // Opus encoded audio frames in Ogg container 51 // ([OggOpus](https://wiki.xiph.org/OggOpus)). 52 // `sample_rate_hertz` must be 16000. 53 AudioEncoding_AUDIO_ENCODING_OGG_OPUS AudioEncoding = 6 54 // Although the use of lossy encodings is not recommended, if a very low 55 // bitrate encoding is required, `OGG_OPUS` is highly preferred over 56 // Speex encoding. The [Speex](https://speex.org/) encoding supported by 57 // Dialogflow API has a header byte in each block, as in MIME type 58 // `audio/x-speex-with-header-byte`. 59 // It is a variant of the RTP Speex encoding defined in 60 // [RFC 5574](https://tools.ietf.org/html/rfc5574). 61 // The stream is a sequence of blocks, one block per RTP packet. Each block 62 // starts with a byte containing the length of the block, in bytes, followed 63 // by one or more frames of Speex data, padded to an integral number of 64 // bytes (octets) as specified in RFC 5574. In other words, each RTP header 65 // is replaced with a single byte containing the block length. Only Speex 66 // wideband is supported. `sample_rate_hertz` must be 16000. 67 AudioEncoding_AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE AudioEncoding = 7 68) 69 70var AudioEncoding_name = map[int32]string{ 71 0: "AUDIO_ENCODING_UNSPECIFIED", 72 1: "AUDIO_ENCODING_LINEAR_16", 73 2: "AUDIO_ENCODING_FLAC", 74 3: "AUDIO_ENCODING_MULAW", 75 4: "AUDIO_ENCODING_AMR", 76 5: "AUDIO_ENCODING_AMR_WB", 77 6: "AUDIO_ENCODING_OGG_OPUS", 78 7: "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", 79} 80 81var AudioEncoding_value = map[string]int32{ 82 "AUDIO_ENCODING_UNSPECIFIED": 0, 83 "AUDIO_ENCODING_LINEAR_16": 1, 84 "AUDIO_ENCODING_FLAC": 2, 85 "AUDIO_ENCODING_MULAW": 3, 86 "AUDIO_ENCODING_AMR": 4, 87 "AUDIO_ENCODING_AMR_WB": 5, 88 "AUDIO_ENCODING_OGG_OPUS": 6, 89 "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": 7, 90} 91 92func (x AudioEncoding) String() string { 93 return proto.EnumName(AudioEncoding_name, int32(x)) 94} 95 96func (AudioEncoding) EnumDescriptor() ([]byte, []int) { 97 return fileDescriptor_3ff9be2146363af6, []int{0} 98} 99 100// Variant of the specified [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. 101// 102// See the [Cloud Speech 103// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) 104// for which models have different variants. For example, the "phone_call" model 105// has both a standard and an enhanced variant. When you use an enhanced model, 106// you will generally receive higher quality results than for a standard model. 107type SpeechModelVariant int32 108 109const ( 110 // No model variant specified. In this case Dialogflow defaults to 111 // USE_BEST_AVAILABLE. 112 SpeechModelVariant_SPEECH_MODEL_VARIANT_UNSPECIFIED SpeechModelVariant = 0 113 // Use the best available variant of the [Speech 114 // model][InputAudioConfig.model] that the caller is eligible for. 115 // 116 // Please see the [Dialogflow 117 // docs](https://cloud.google.com/dialogflow/docs/data-logging) for 118 // how to make your project eligible for enhanced models. 119 SpeechModelVariant_USE_BEST_AVAILABLE SpeechModelVariant = 1 120 // Use standard model variant even if an enhanced model is available. See the 121 // [Cloud Speech 122 // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) 123 // for details about enhanced models. 124 SpeechModelVariant_USE_STANDARD SpeechModelVariant = 2 125 // Use an enhanced model variant: 126 // 127 // * If an enhanced variant does not exist for the given 128 // [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request language, Dialogflow falls 129 // back to the standard variant. 130 // 131 // The [Cloud Speech 132 // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) 133 // describes which models have enhanced variants. 134 // 135 // * If the API caller isn't eligible for enhanced models, Dialogflow returns 136 // an error. Please see the [Dialogflow 137 // docs](https://cloud.google.com/dialogflow/docs/data-logging) 138 // for how to make your project eligible. 139 SpeechModelVariant_USE_ENHANCED SpeechModelVariant = 3 140) 141 142var SpeechModelVariant_name = map[int32]string{ 143 0: "SPEECH_MODEL_VARIANT_UNSPECIFIED", 144 1: "USE_BEST_AVAILABLE", 145 2: "USE_STANDARD", 146 3: "USE_ENHANCED", 147} 148 149var SpeechModelVariant_value = map[string]int32{ 150 "SPEECH_MODEL_VARIANT_UNSPECIFIED": 0, 151 "USE_BEST_AVAILABLE": 1, 152 "USE_STANDARD": 2, 153 "USE_ENHANCED": 3, 154} 155 156func (x SpeechModelVariant) String() string { 157 return proto.EnumName(SpeechModelVariant_name, int32(x)) 158} 159 160func (SpeechModelVariant) EnumDescriptor() ([]byte, []int) { 161 return fileDescriptor_3ff9be2146363af6, []int{1} 162} 163 164// Gender of the voice as described in 165// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). 166type SsmlVoiceGender int32 167 168const ( 169 // An unspecified gender, which means that the client doesn't care which 170 // gender the selected voice will have. 171 SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED SsmlVoiceGender = 0 172 // A male voice. 173 SsmlVoiceGender_SSML_VOICE_GENDER_MALE SsmlVoiceGender = 1 174 // A female voice. 175 SsmlVoiceGender_SSML_VOICE_GENDER_FEMALE SsmlVoiceGender = 2 176 // A gender-neutral voice. 177 SsmlVoiceGender_SSML_VOICE_GENDER_NEUTRAL SsmlVoiceGender = 3 178) 179 180var SsmlVoiceGender_name = map[int32]string{ 181 0: "SSML_VOICE_GENDER_UNSPECIFIED", 182 1: "SSML_VOICE_GENDER_MALE", 183 2: "SSML_VOICE_GENDER_FEMALE", 184 3: "SSML_VOICE_GENDER_NEUTRAL", 185} 186 187var SsmlVoiceGender_value = map[string]int32{ 188 "SSML_VOICE_GENDER_UNSPECIFIED": 0, 189 "SSML_VOICE_GENDER_MALE": 1, 190 "SSML_VOICE_GENDER_FEMALE": 2, 191 "SSML_VOICE_GENDER_NEUTRAL": 3, 192} 193 194func (x SsmlVoiceGender) String() string { 195 return proto.EnumName(SsmlVoiceGender_name, int32(x)) 196} 197 198func (SsmlVoiceGender) EnumDescriptor() ([]byte, []int) { 199 return fileDescriptor_3ff9be2146363af6, []int{2} 200} 201 202// Audio encoding of the output audio format in Text-To-Speech. 203type OutputAudioEncoding int32 204 205const ( 206 // Not specified. 207 OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_UNSPECIFIED OutputAudioEncoding = 0 208 // Uncompressed 16-bit signed little-endian samples (Linear PCM). 209 // Audio content returned as LINEAR16 also contains a WAV header. 210 OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_LINEAR_16 OutputAudioEncoding = 1 211 // MP3 audio. 212 OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_MP3 OutputAudioEncoding = 2 213 // Opus encoded audio wrapped in an ogg container. The result will be a 214 // file which can be played natively on Android, and in browsers (at least 215 // Chrome and Firefox). The quality of the encoding is considerably higher 216 // than MP3 while using approximately the same bitrate. 217 OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_OGG_OPUS OutputAudioEncoding = 3 218) 219 220var OutputAudioEncoding_name = map[int32]string{ 221 0: "OUTPUT_AUDIO_ENCODING_UNSPECIFIED", 222 1: "OUTPUT_AUDIO_ENCODING_LINEAR_16", 223 2: "OUTPUT_AUDIO_ENCODING_MP3", 224 3: "OUTPUT_AUDIO_ENCODING_OGG_OPUS", 225} 226 227var OutputAudioEncoding_value = map[string]int32{ 228 "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": 0, 229 "OUTPUT_AUDIO_ENCODING_LINEAR_16": 1, 230 "OUTPUT_AUDIO_ENCODING_MP3": 2, 231 "OUTPUT_AUDIO_ENCODING_OGG_OPUS": 3, 232} 233 234func (x OutputAudioEncoding) String() string { 235 return proto.EnumName(OutputAudioEncoding_name, int32(x)) 236} 237 238func (OutputAudioEncoding) EnumDescriptor() ([]byte, []int) { 239 return fileDescriptor_3ff9be2146363af6, []int{3} 240} 241 242// Instructs the speech recognizer how to process the audio content. 243type InputAudioConfig struct { 244 // Required. Audio encoding of the audio content to process. 245 AudioEncoding AudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.dialogflow.v2.AudioEncoding" json:"audio_encoding,omitempty"` 246 // Required. Sample rate (in Hertz) of the audio content sent in the query. 247 // Refer to 248 // [Cloud Speech API 249 // documentation](https://cloud.google.com/speech-to-text/docs/basics) for 250 // more details. 251 SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` 252 // Required. The language of the supplied audio. Dialogflow does not do 253 // translations. See [Language 254 // Support](https://cloud.google.com/dialogflow/docs/reference/language) 255 // for a list of the currently supported language codes. Note that queries in 256 // the same session do not necessarily need to specify the same language. 257 LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 258 // Optional. A list of strings containing words and phrases that the speech 259 // recognizer should recognize with higher likelihood. 260 // 261 // See [the Cloud Speech 262 // documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) 263 // for more details. 264 PhraseHints []string `protobuf:"bytes,4,rep,name=phrase_hints,json=phraseHints,proto3" json:"phrase_hints,omitempty"` 265 // Optional. Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. 266 ModelVariant SpeechModelVariant `protobuf:"varint,10,opt,name=model_variant,json=modelVariant,proto3,enum=google.cloud.dialogflow.v2.SpeechModelVariant" json:"model_variant,omitempty"` 267 // Optional. If `false` (default), recognition does not cease until the 268 // client closes the stream. 269 // If `true`, the recognizer will detect a single spoken utterance in input 270 // audio. Recognition ceases when it detects the audio's voice has 271 // stopped or paused. In this case, once a detected intent is received, the 272 // client should close the stream and start a new request with a new stream as 273 // needed. 274 // Note: This setting is relevant only for streaming methods. 275 // Note: When specified, InputAudioConfig.single_utterance takes precedence 276 // over StreamingDetectIntentRequest.single_utterance. 277 SingleUtterance bool `protobuf:"varint,8,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"` 278 XXX_NoUnkeyedLiteral struct{} `json:"-"` 279 XXX_unrecognized []byte `json:"-"` 280 XXX_sizecache int32 `json:"-"` 281} 282 283func (m *InputAudioConfig) Reset() { *m = InputAudioConfig{} } 284func (m *InputAudioConfig) String() string { return proto.CompactTextString(m) } 285func (*InputAudioConfig) ProtoMessage() {} 286func (*InputAudioConfig) Descriptor() ([]byte, []int) { 287 return fileDescriptor_3ff9be2146363af6, []int{0} 288} 289 290func (m *InputAudioConfig) XXX_Unmarshal(b []byte) error { 291 return xxx_messageInfo_InputAudioConfig.Unmarshal(m, b) 292} 293func (m *InputAudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 294 return xxx_messageInfo_InputAudioConfig.Marshal(b, m, deterministic) 295} 296func (m *InputAudioConfig) XXX_Merge(src proto.Message) { 297 xxx_messageInfo_InputAudioConfig.Merge(m, src) 298} 299func (m *InputAudioConfig) XXX_Size() int { 300 return xxx_messageInfo_InputAudioConfig.Size(m) 301} 302func (m *InputAudioConfig) XXX_DiscardUnknown() { 303 xxx_messageInfo_InputAudioConfig.DiscardUnknown(m) 304} 305 306var xxx_messageInfo_InputAudioConfig proto.InternalMessageInfo 307 308func (m *InputAudioConfig) GetAudioEncoding() AudioEncoding { 309 if m != nil { 310 return m.AudioEncoding 311 } 312 return AudioEncoding_AUDIO_ENCODING_UNSPECIFIED 313} 314 315func (m *InputAudioConfig) GetSampleRateHertz() int32 { 316 if m != nil { 317 return m.SampleRateHertz 318 } 319 return 0 320} 321 322func (m *InputAudioConfig) GetLanguageCode() string { 323 if m != nil { 324 return m.LanguageCode 325 } 326 return "" 327} 328 329func (m *InputAudioConfig) GetPhraseHints() []string { 330 if m != nil { 331 return m.PhraseHints 332 } 333 return nil 334} 335 336func (m *InputAudioConfig) GetModelVariant() SpeechModelVariant { 337 if m != nil { 338 return m.ModelVariant 339 } 340 return SpeechModelVariant_SPEECH_MODEL_VARIANT_UNSPECIFIED 341} 342 343func (m *InputAudioConfig) GetSingleUtterance() bool { 344 if m != nil { 345 return m.SingleUtterance 346 } 347 return false 348} 349 350// Description of which voice to use for speech synthesis. 351type VoiceSelectionParams struct { 352 // Optional. The name of the voice. If not set, the service will choose a 353 // voice based on the other parameters such as language_code and gender. 354 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 355 // Optional. The preferred gender of the voice. If not set, the service will 356 // choose a voice based on the other parameters such as language_code and 357 // name. Note that this is only a preference, not requirement. If a 358 // voice of the appropriate gender is not available, the synthesizer should 359 // substitute a voice with a different gender rather than failing the request. 360 SsmlGender SsmlVoiceGender `protobuf:"varint,2,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.dialogflow.v2.SsmlVoiceGender" json:"ssml_gender,omitempty"` 361 XXX_NoUnkeyedLiteral struct{} `json:"-"` 362 XXX_unrecognized []byte `json:"-"` 363 XXX_sizecache int32 `json:"-"` 364} 365 366func (m *VoiceSelectionParams) Reset() { *m = VoiceSelectionParams{} } 367func (m *VoiceSelectionParams) String() string { return proto.CompactTextString(m) } 368func (*VoiceSelectionParams) ProtoMessage() {} 369func (*VoiceSelectionParams) Descriptor() ([]byte, []int) { 370 return fileDescriptor_3ff9be2146363af6, []int{1} 371} 372 373func (m *VoiceSelectionParams) XXX_Unmarshal(b []byte) error { 374 return xxx_messageInfo_VoiceSelectionParams.Unmarshal(m, b) 375} 376func (m *VoiceSelectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 377 return xxx_messageInfo_VoiceSelectionParams.Marshal(b, m, deterministic) 378} 379func (m *VoiceSelectionParams) XXX_Merge(src proto.Message) { 380 xxx_messageInfo_VoiceSelectionParams.Merge(m, src) 381} 382func (m *VoiceSelectionParams) XXX_Size() int { 383 return xxx_messageInfo_VoiceSelectionParams.Size(m) 384} 385func (m *VoiceSelectionParams) XXX_DiscardUnknown() { 386 xxx_messageInfo_VoiceSelectionParams.DiscardUnknown(m) 387} 388 389var xxx_messageInfo_VoiceSelectionParams proto.InternalMessageInfo 390 391func (m *VoiceSelectionParams) GetName() string { 392 if m != nil { 393 return m.Name 394 } 395 return "" 396} 397 398func (m *VoiceSelectionParams) GetSsmlGender() SsmlVoiceGender { 399 if m != nil { 400 return m.SsmlGender 401 } 402 return SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED 403} 404 405// Configuration of how speech should be synthesized. 406type SynthesizeSpeechConfig struct { 407 // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal 408 // native speed supported by the specific voice. 2.0 is twice as fast, and 409 // 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any 410 // other values < 0.25 or > 4.0 will return an error. 411 SpeakingRate float64 `protobuf:"fixed64,1,opt,name=speaking_rate,json=speakingRate,proto3" json:"speaking_rate,omitempty"` 412 // Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 413 // semitones from the original pitch. -20 means decrease 20 semitones from the 414 // original pitch. 415 Pitch float64 `protobuf:"fixed64,2,opt,name=pitch,proto3" json:"pitch,omitempty"` 416 // Optional. Volume gain (in dB) of the normal native volume supported by the 417 // specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 418 // 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) 419 // will play at approximately half the amplitude of the normal native signal 420 // amplitude. A value of +6.0 (dB) will play at approximately twice the 421 // amplitude of the normal native signal amplitude. We strongly recommend not 422 // to exceed +10 (dB) as there's usually no effective increase in loudness for 423 // any value greater than that. 424 VolumeGainDb float64 `protobuf:"fixed64,3,opt,name=volume_gain_db,json=volumeGainDb,proto3" json:"volume_gain_db,omitempty"` 425 // Optional. An identifier which selects 'audio effects' profiles that are 426 // applied on (post synthesized) text to speech. Effects are applied on top of 427 // each other in the order they are given. 428 EffectsProfileId []string `protobuf:"bytes,5,rep,name=effects_profile_id,json=effectsProfileId,proto3" json:"effects_profile_id,omitempty"` 429 // Optional. The desired voice of the synthesized audio. 430 Voice *VoiceSelectionParams `protobuf:"bytes,4,opt,name=voice,proto3" json:"voice,omitempty"` 431 XXX_NoUnkeyedLiteral struct{} `json:"-"` 432 XXX_unrecognized []byte `json:"-"` 433 XXX_sizecache int32 `json:"-"` 434} 435 436func (m *SynthesizeSpeechConfig) Reset() { *m = SynthesizeSpeechConfig{} } 437func (m *SynthesizeSpeechConfig) String() string { return proto.CompactTextString(m) } 438func (*SynthesizeSpeechConfig) ProtoMessage() {} 439func (*SynthesizeSpeechConfig) Descriptor() ([]byte, []int) { 440 return fileDescriptor_3ff9be2146363af6, []int{2} 441} 442 443func (m *SynthesizeSpeechConfig) XXX_Unmarshal(b []byte) error { 444 return xxx_messageInfo_SynthesizeSpeechConfig.Unmarshal(m, b) 445} 446func (m *SynthesizeSpeechConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 447 return xxx_messageInfo_SynthesizeSpeechConfig.Marshal(b, m, deterministic) 448} 449func (m *SynthesizeSpeechConfig) XXX_Merge(src proto.Message) { 450 xxx_messageInfo_SynthesizeSpeechConfig.Merge(m, src) 451} 452func (m *SynthesizeSpeechConfig) XXX_Size() int { 453 return xxx_messageInfo_SynthesizeSpeechConfig.Size(m) 454} 455func (m *SynthesizeSpeechConfig) XXX_DiscardUnknown() { 456 xxx_messageInfo_SynthesizeSpeechConfig.DiscardUnknown(m) 457} 458 459var xxx_messageInfo_SynthesizeSpeechConfig proto.InternalMessageInfo 460 461func (m *SynthesizeSpeechConfig) GetSpeakingRate() float64 { 462 if m != nil { 463 return m.SpeakingRate 464 } 465 return 0 466} 467 468func (m *SynthesizeSpeechConfig) GetPitch() float64 { 469 if m != nil { 470 return m.Pitch 471 } 472 return 0 473} 474 475func (m *SynthesizeSpeechConfig) GetVolumeGainDb() float64 { 476 if m != nil { 477 return m.VolumeGainDb 478 } 479 return 0 480} 481 482func (m *SynthesizeSpeechConfig) GetEffectsProfileId() []string { 483 if m != nil { 484 return m.EffectsProfileId 485 } 486 return nil 487} 488 489func (m *SynthesizeSpeechConfig) GetVoice() *VoiceSelectionParams { 490 if m != nil { 491 return m.Voice 492 } 493 return nil 494} 495 496// Instructs the speech synthesizer on how to generate the output audio content. 497type OutputAudioConfig struct { 498 // Required. Audio encoding of the synthesized audio content. 499 AudioEncoding OutputAudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.dialogflow.v2.OutputAudioEncoding" json:"audio_encoding,omitempty"` 500 // Optional. The synthesis sample rate (in hertz) for this audio. If not 501 // provided, then the synthesizer will use the default sample rate based on 502 // the audio encoding. If this is different from the voice's natural sample 503 // rate, then the synthesizer will honor this request by converting to the 504 // desired sample rate (which might result in worse audio quality). 505 SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` 506 // Optional. Configuration of how speech should be synthesized. 507 SynthesizeSpeechConfig *SynthesizeSpeechConfig `protobuf:"bytes,3,opt,name=synthesize_speech_config,json=synthesizeSpeechConfig,proto3" json:"synthesize_speech_config,omitempty"` 508 XXX_NoUnkeyedLiteral struct{} `json:"-"` 509 XXX_unrecognized []byte `json:"-"` 510 XXX_sizecache int32 `json:"-"` 511} 512 513func (m *OutputAudioConfig) Reset() { *m = OutputAudioConfig{} } 514func (m *OutputAudioConfig) String() string { return proto.CompactTextString(m) } 515func (*OutputAudioConfig) ProtoMessage() {} 516func (*OutputAudioConfig) Descriptor() ([]byte, []int) { 517 return fileDescriptor_3ff9be2146363af6, []int{3} 518} 519 520func (m *OutputAudioConfig) XXX_Unmarshal(b []byte) error { 521 return xxx_messageInfo_OutputAudioConfig.Unmarshal(m, b) 522} 523func (m *OutputAudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 524 return xxx_messageInfo_OutputAudioConfig.Marshal(b, m, deterministic) 525} 526func (m *OutputAudioConfig) XXX_Merge(src proto.Message) { 527 xxx_messageInfo_OutputAudioConfig.Merge(m, src) 528} 529func (m *OutputAudioConfig) XXX_Size() int { 530 return xxx_messageInfo_OutputAudioConfig.Size(m) 531} 532func (m *OutputAudioConfig) XXX_DiscardUnknown() { 533 xxx_messageInfo_OutputAudioConfig.DiscardUnknown(m) 534} 535 536var xxx_messageInfo_OutputAudioConfig proto.InternalMessageInfo 537 538func (m *OutputAudioConfig) GetAudioEncoding() OutputAudioEncoding { 539 if m != nil { 540 return m.AudioEncoding 541 } 542 return OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_UNSPECIFIED 543} 544 545func (m *OutputAudioConfig) GetSampleRateHertz() int32 { 546 if m != nil { 547 return m.SampleRateHertz 548 } 549 return 0 550} 551 552func (m *OutputAudioConfig) GetSynthesizeSpeechConfig() *SynthesizeSpeechConfig { 553 if m != nil { 554 return m.SynthesizeSpeechConfig 555 } 556 return nil 557} 558 559func init() { 560 proto.RegisterEnum("google.cloud.dialogflow.v2.AudioEncoding", AudioEncoding_name, AudioEncoding_value) 561 proto.RegisterEnum("google.cloud.dialogflow.v2.SpeechModelVariant", SpeechModelVariant_name, SpeechModelVariant_value) 562 proto.RegisterEnum("google.cloud.dialogflow.v2.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value) 563 proto.RegisterEnum("google.cloud.dialogflow.v2.OutputAudioEncoding", OutputAudioEncoding_name, OutputAudioEncoding_value) 564 proto.RegisterType((*InputAudioConfig)(nil), "google.cloud.dialogflow.v2.InputAudioConfig") 565 proto.RegisterType((*VoiceSelectionParams)(nil), "google.cloud.dialogflow.v2.VoiceSelectionParams") 566 proto.RegisterType((*SynthesizeSpeechConfig)(nil), "google.cloud.dialogflow.v2.SynthesizeSpeechConfig") 567 proto.RegisterType((*OutputAudioConfig)(nil), "google.cloud.dialogflow.v2.OutputAudioConfig") 568} 569 570func init() { 571 proto.RegisterFile("google/cloud/dialogflow/v2/audio_config.proto", fileDescriptor_3ff9be2146363af6) 572} 573 574var fileDescriptor_3ff9be2146363af6 = []byte{ 575 // 938 bytes of a gzipped FileDescriptorProto 576 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x6f, 0xe3, 0x44, 577 0x18, 0xc6, 0x49, 0xbb, 0x6c, 0xdf, 0xa6, 0xad, 0x77, 0xb6, 0x74, 0xdd, 0xd0, 0x96, 0xb4, 0xdd, 578 0x95, 0xd2, 0x02, 0x09, 0x64, 0x25, 0x2e, 0x9c, 0x9c, 0x78, 0x9a, 0x58, 0xca, 0x97, 0xc6, 0x49, 579 0x0a, 0x5c, 0x46, 0x53, 0x7b, 0xe2, 0x58, 0x38, 0x1e, 0xcb, 0x76, 0x02, 0xec, 0x9d, 0x23, 0xbf, 580 0x01, 0x09, 0x71, 0xe2, 0x17, 0xf1, 0x2f, 0xb8, 0x22, 0x71, 0x41, 0x1e, 0xa7, 0xdb, 0x6e, 0x92, 581 0xcd, 0x69, 0x6f, 0x33, 0xcf, 0xf3, 0x7e, 0x3f, 0xef, 0x68, 0xe0, 0x4b, 0x57, 0x08, 0xd7, 0xe7, 582 0x55, 0xdb, 0x17, 0x33, 0xa7, 0xea, 0x78, 0xcc, 0x17, 0xee, 0xd8, 0x17, 0x3f, 0x55, 0xe7, 0xb5, 583 0x2a, 0x9b, 0x39, 0x9e, 0xa0, 0xb6, 0x08, 0xc6, 0x9e, 0x5b, 0x09, 0x23, 0x91, 0x08, 0x54, 0xcc, 584 0xcc, 0x2b, 0xd2, 0xbc, 0xf2, 0x60, 0x5e, 0x99, 0xd7, 0x8a, 0x67, 0x8b, 0x50, 0xd2, 0xf2, 0x6e, 585 0x36, 0xae, 0x3a, 0xb3, 0x88, 0x25, 0x9e, 0x08, 0x32, 0xdf, 0xe2, 0xc9, 0x82, 0x67, 0xa1, 0x57, 586 0x65, 0x41, 0x20, 0x12, 0x49, 0xc6, 0x19, 0x7b, 0xf1, 0x77, 0x0e, 0x54, 0x33, 0x08, 0x67, 0x89, 587 0x9e, 0x66, 0x6d, 0xc8, 0xa4, 0xa8, 0x0f, 0xfb, 0x59, 0x11, 0x3c, 0xb0, 0x85, 0xe3, 0x05, 0xae, 588 0xa6, 0x94, 0x94, 0xf2, 0x7e, 0xed, 0xaa, 0xf2, 0xfe, 0x3a, 0x2a, 0x32, 0x00, 0x5e, 0x38, 0x90, 589 0x3d, 0xf6, 0xf8, 0x8a,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