1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/dialogflow/v2beta1/audio_config.proto 3 4package dialogflow 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 duration "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_80617ff5f6b0e1c6, []int{0} 98} 99 100// Variant of the specified [Speech model][google.cloud.dialogflow.v2beta1.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.v2beta1.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_80617ff5f6b0e1c6, []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_80617ff5f6b0e1c6, []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_80617ff5f6b0e1c6, []int{3} 240} 241 242// Information for a word recognized by the speech recognizer. 243type SpeechWordInfo struct { 244 // The word this info is for. 245 Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` 246 // Time offset relative to the beginning of the audio that corresponds to the 247 // start of the spoken word. This is an experimental feature and the accuracy 248 // of the time offset can vary. 249 StartOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` 250 // Time offset relative to the beginning of the audio that corresponds to the 251 // end of the spoken word. This is an experimental feature and the accuracy of 252 // the time offset can vary. 253 EndOffset *duration.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` 254 // The Speech confidence between 0.0 and 1.0 for this word. A higher number 255 // indicates an estimated greater likelihood that the recognized word is 256 // correct. The default of 0.0 is a sentinel value indicating that confidence 257 // was not set. 258 // 259 // This field is not guaranteed to be fully stable over time for the same 260 // audio input. Users should also not rely on it to always be provided. 261 Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` 262 XXX_NoUnkeyedLiteral struct{} `json:"-"` 263 XXX_unrecognized []byte `json:"-"` 264 XXX_sizecache int32 `json:"-"` 265} 266 267func (m *SpeechWordInfo) Reset() { *m = SpeechWordInfo{} } 268func (m *SpeechWordInfo) String() string { return proto.CompactTextString(m) } 269func (*SpeechWordInfo) ProtoMessage() {} 270func (*SpeechWordInfo) Descriptor() ([]byte, []int) { 271 return fileDescriptor_80617ff5f6b0e1c6, []int{0} 272} 273 274func (m *SpeechWordInfo) XXX_Unmarshal(b []byte) error { 275 return xxx_messageInfo_SpeechWordInfo.Unmarshal(m, b) 276} 277func (m *SpeechWordInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 278 return xxx_messageInfo_SpeechWordInfo.Marshal(b, m, deterministic) 279} 280func (m *SpeechWordInfo) XXX_Merge(src proto.Message) { 281 xxx_messageInfo_SpeechWordInfo.Merge(m, src) 282} 283func (m *SpeechWordInfo) XXX_Size() int { 284 return xxx_messageInfo_SpeechWordInfo.Size(m) 285} 286func (m *SpeechWordInfo) XXX_DiscardUnknown() { 287 xxx_messageInfo_SpeechWordInfo.DiscardUnknown(m) 288} 289 290var xxx_messageInfo_SpeechWordInfo proto.InternalMessageInfo 291 292func (m *SpeechWordInfo) GetWord() string { 293 if m != nil { 294 return m.Word 295 } 296 return "" 297} 298 299func (m *SpeechWordInfo) GetStartOffset() *duration.Duration { 300 if m != nil { 301 return m.StartOffset 302 } 303 return nil 304} 305 306func (m *SpeechWordInfo) GetEndOffset() *duration.Duration { 307 if m != nil { 308 return m.EndOffset 309 } 310 return nil 311} 312 313func (m *SpeechWordInfo) GetConfidence() float32 { 314 if m != nil { 315 return m.Confidence 316 } 317 return 0 318} 319 320// Instructs the speech recognizer on how to process the audio content. 321type InputAudioConfig struct { 322 // Required. Audio encoding of the audio content to process. 323 AudioEncoding AudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.dialogflow.v2beta1.AudioEncoding" json:"audio_encoding,omitempty"` 324 // Required. Sample rate (in Hertz) of the audio content sent in the query. 325 // Refer to 326 // [Cloud Speech API 327 // documentation](https://cloud.google.com/speech-to-text/docs/basics) for 328 // more details. 329 SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` 330 // Required. The language of the supplied audio. Dialogflow does not do 331 // translations. See [Language 332 // Support](https://cloud.google.com/dialogflow/docs/reference/language) 333 // for a list of the currently supported language codes. Note that queries in 334 // the same session do not necessarily need to specify the same language. 335 LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 336 // Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2beta1.SpeechWordInfo] in 337 // [StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult] with information about the recognized speech 338 // words, e.g. start and end time offsets. If false or unspecified, Speech 339 // doesn't return any word-level information. 340 EnableWordInfo bool `protobuf:"varint,13,opt,name=enable_word_info,json=enableWordInfo,proto3" json:"enable_word_info,omitempty"` 341 // Optional. A list of strings containing words and phrases that the speech 342 // recognizer should recognize with higher likelihood. 343 // 344 // See [the Cloud Speech 345 // documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) 346 // for more details. 347 PhraseHints []string `protobuf:"bytes,4,rep,name=phrase_hints,json=phraseHints,proto3" json:"phrase_hints,omitempty"` 348 // Optional. Which Speech model to select for the given request. Select the 349 // model best suited to your domain to get best results. If a model is not 350 // explicitly specified, then we auto-select a model based on the parameters 351 // in the InputAudioConfig. 352 // If enhanced speech model is enabled for the agent and an enhanced 353 // version of the specified model for the language does not exist, then the 354 // speech is recognized using the standard version of the specified model. 355 // Refer to 356 // [Cloud Speech API 357 // documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) 358 // for more details. 359 Model string `protobuf:"bytes,7,opt,name=model,proto3" json:"model,omitempty"` 360 // Optional. Which variant of the [Speech model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use. 361 ModelVariant SpeechModelVariant `protobuf:"varint,10,opt,name=model_variant,json=modelVariant,proto3,enum=google.cloud.dialogflow.v2beta1.SpeechModelVariant" json:"model_variant,omitempty"` 362 XXX_NoUnkeyedLiteral struct{} `json:"-"` 363 XXX_unrecognized []byte `json:"-"` 364 XXX_sizecache int32 `json:"-"` 365} 366 367func (m *InputAudioConfig) Reset() { *m = InputAudioConfig{} } 368func (m *InputAudioConfig) String() string { return proto.CompactTextString(m) } 369func (*InputAudioConfig) ProtoMessage() {} 370func (*InputAudioConfig) Descriptor() ([]byte, []int) { 371 return fileDescriptor_80617ff5f6b0e1c6, []int{1} 372} 373 374func (m *InputAudioConfig) XXX_Unmarshal(b []byte) error { 375 return xxx_messageInfo_InputAudioConfig.Unmarshal(m, b) 376} 377func (m *InputAudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 378 return xxx_messageInfo_InputAudioConfig.Marshal(b, m, deterministic) 379} 380func (m *InputAudioConfig) XXX_Merge(src proto.Message) { 381 xxx_messageInfo_InputAudioConfig.Merge(m, src) 382} 383func (m *InputAudioConfig) XXX_Size() int { 384 return xxx_messageInfo_InputAudioConfig.Size(m) 385} 386func (m *InputAudioConfig) XXX_DiscardUnknown() { 387 xxx_messageInfo_InputAudioConfig.DiscardUnknown(m) 388} 389 390var xxx_messageInfo_InputAudioConfig proto.InternalMessageInfo 391 392func (m *InputAudioConfig) GetAudioEncoding() AudioEncoding { 393 if m != nil { 394 return m.AudioEncoding 395 } 396 return AudioEncoding_AUDIO_ENCODING_UNSPECIFIED 397} 398 399func (m *InputAudioConfig) GetSampleRateHertz() int32 { 400 if m != nil { 401 return m.SampleRateHertz 402 } 403 return 0 404} 405 406func (m *InputAudioConfig) GetLanguageCode() string { 407 if m != nil { 408 return m.LanguageCode 409 } 410 return "" 411} 412 413func (m *InputAudioConfig) GetEnableWordInfo() bool { 414 if m != nil { 415 return m.EnableWordInfo 416 } 417 return false 418} 419 420func (m *InputAudioConfig) GetPhraseHints() []string { 421 if m != nil { 422 return m.PhraseHints 423 } 424 return nil 425} 426 427func (m *InputAudioConfig) GetModel() string { 428 if m != nil { 429 return m.Model 430 } 431 return "" 432} 433 434func (m *InputAudioConfig) GetModelVariant() SpeechModelVariant { 435 if m != nil { 436 return m.ModelVariant 437 } 438 return SpeechModelVariant_SPEECH_MODEL_VARIANT_UNSPECIFIED 439} 440 441// Description of which voice to use for speech synthesis. 442type VoiceSelectionParams struct { 443 // Optional. The name of the voice. If not set, the service will choose a 444 // voice based on the other parameters such as language_code and gender. 445 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 446 // Optional. The preferred gender of the voice. If not set, the service will 447 // choose a voice based on the other parameters such as language_code and 448 // name. Note that this is only a preference, not requirement. If a 449 // voice of the appropriate gender is not available, the synthesizer should 450 // substitute a voice with a different gender rather than failing the request. 451 SsmlGender SsmlVoiceGender `protobuf:"varint,2,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.dialogflow.v2beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"` 452 XXX_NoUnkeyedLiteral struct{} `json:"-"` 453 XXX_unrecognized []byte `json:"-"` 454 XXX_sizecache int32 `json:"-"` 455} 456 457func (m *VoiceSelectionParams) Reset() { *m = VoiceSelectionParams{} } 458func (m *VoiceSelectionParams) String() string { return proto.CompactTextString(m) } 459func (*VoiceSelectionParams) ProtoMessage() {} 460func (*VoiceSelectionParams) Descriptor() ([]byte, []int) { 461 return fileDescriptor_80617ff5f6b0e1c6, []int{2} 462} 463 464func (m *VoiceSelectionParams) XXX_Unmarshal(b []byte) error { 465 return xxx_messageInfo_VoiceSelectionParams.Unmarshal(m, b) 466} 467func (m *VoiceSelectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 468 return xxx_messageInfo_VoiceSelectionParams.Marshal(b, m, deterministic) 469} 470func (m *VoiceSelectionParams) XXX_Merge(src proto.Message) { 471 xxx_messageInfo_VoiceSelectionParams.Merge(m, src) 472} 473func (m *VoiceSelectionParams) XXX_Size() int { 474 return xxx_messageInfo_VoiceSelectionParams.Size(m) 475} 476func (m *VoiceSelectionParams) XXX_DiscardUnknown() { 477 xxx_messageInfo_VoiceSelectionParams.DiscardUnknown(m) 478} 479 480var xxx_messageInfo_VoiceSelectionParams proto.InternalMessageInfo 481 482func (m *VoiceSelectionParams) GetName() string { 483 if m != nil { 484 return m.Name 485 } 486 return "" 487} 488 489func (m *VoiceSelectionParams) GetSsmlGender() SsmlVoiceGender { 490 if m != nil { 491 return m.SsmlGender 492 } 493 return SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED 494} 495 496// Configuration of how speech should be synthesized. 497type SynthesizeSpeechConfig struct { 498 // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal 499 // native speed supported by the specific voice. 2.0 is twice as fast, and 500 // 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any 501 // other values < 0.25 or > 4.0 will return an error. 502 SpeakingRate float64 `protobuf:"fixed64,1,opt,name=speaking_rate,json=speakingRate,proto3" json:"speaking_rate,omitempty"` 503 // Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 504 // semitones from the original pitch. -20 means decrease 20 semitones from the 505 // original pitch. 506 Pitch float64 `protobuf:"fixed64,2,opt,name=pitch,proto3" json:"pitch,omitempty"` 507 // Optional. Volume gain (in dB) of the normal native volume supported by the 508 // specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 509 // 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) 510 // will play at approximately half the amplitude of the normal native signal 511 // amplitude. A value of +6.0 (dB) will play at approximately twice the 512 // amplitude of the normal native signal amplitude. We strongly recommend not 513 // to exceed +10 (dB) as there's usually no effective increase in loudness for 514 // any value greater than that. 515 VolumeGainDb float64 `protobuf:"fixed64,3,opt,name=volume_gain_db,json=volumeGainDb,proto3" json:"volume_gain_db,omitempty"` 516 // Optional. An identifier which selects 'audio effects' profiles that are 517 // applied on (post synthesized) text to speech. Effects are applied on top of 518 // each other in the order they are given. 519 EffectsProfileId []string `protobuf:"bytes,5,rep,name=effects_profile_id,json=effectsProfileId,proto3" json:"effects_profile_id,omitempty"` 520 // Optional. The desired voice of the synthesized audio. 521 Voice *VoiceSelectionParams `protobuf:"bytes,4,opt,name=voice,proto3" json:"voice,omitempty"` 522 XXX_NoUnkeyedLiteral struct{} `json:"-"` 523 XXX_unrecognized []byte `json:"-"` 524 XXX_sizecache int32 `json:"-"` 525} 526 527func (m *SynthesizeSpeechConfig) Reset() { *m = SynthesizeSpeechConfig{} } 528func (m *SynthesizeSpeechConfig) String() string { return proto.CompactTextString(m) } 529func (*SynthesizeSpeechConfig) ProtoMessage() {} 530func (*SynthesizeSpeechConfig) Descriptor() ([]byte, []int) { 531 return fileDescriptor_80617ff5f6b0e1c6, []int{3} 532} 533 534func (m *SynthesizeSpeechConfig) XXX_Unmarshal(b []byte) error { 535 return xxx_messageInfo_SynthesizeSpeechConfig.Unmarshal(m, b) 536} 537func (m *SynthesizeSpeechConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 538 return xxx_messageInfo_SynthesizeSpeechConfig.Marshal(b, m, deterministic) 539} 540func (m *SynthesizeSpeechConfig) XXX_Merge(src proto.Message) { 541 xxx_messageInfo_SynthesizeSpeechConfig.Merge(m, src) 542} 543func (m *SynthesizeSpeechConfig) XXX_Size() int { 544 return xxx_messageInfo_SynthesizeSpeechConfig.Size(m) 545} 546func (m *SynthesizeSpeechConfig) XXX_DiscardUnknown() { 547 xxx_messageInfo_SynthesizeSpeechConfig.DiscardUnknown(m) 548} 549 550var xxx_messageInfo_SynthesizeSpeechConfig proto.InternalMessageInfo 551 552func (m *SynthesizeSpeechConfig) GetSpeakingRate() float64 { 553 if m != nil { 554 return m.SpeakingRate 555 } 556 return 0 557} 558 559func (m *SynthesizeSpeechConfig) GetPitch() float64 { 560 if m != nil { 561 return m.Pitch 562 } 563 return 0 564} 565 566func (m *SynthesizeSpeechConfig) GetVolumeGainDb() float64 { 567 if m != nil { 568 return m.VolumeGainDb 569 } 570 return 0 571} 572 573func (m *SynthesizeSpeechConfig) GetEffectsProfileId() []string { 574 if m != nil { 575 return m.EffectsProfileId 576 } 577 return nil 578} 579 580func (m *SynthesizeSpeechConfig) GetVoice() *VoiceSelectionParams { 581 if m != nil { 582 return m.Voice 583 } 584 return nil 585} 586 587// Instructs the speech synthesizer how to generate the output audio content. 588type OutputAudioConfig struct { 589 // Required. Audio encoding of the synthesized audio content. 590 AudioEncoding OutputAudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.dialogflow.v2beta1.OutputAudioEncoding" json:"audio_encoding,omitempty"` 591 // Optional. The synthesis sample rate (in hertz) for this audio. If not 592 // provided, then the synthesizer will use the default sample rate based on 593 // the audio encoding. If this is different from the voice's natural sample 594 // rate, then the synthesizer will honor this request by converting to the 595 // desired sample rate (which might result in worse audio quality). 596 SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` 597 // Optional. Configuration of how speech should be synthesized. 598 SynthesizeSpeechConfig *SynthesizeSpeechConfig `protobuf:"bytes,3,opt,name=synthesize_speech_config,json=synthesizeSpeechConfig,proto3" json:"synthesize_speech_config,omitempty"` 599 XXX_NoUnkeyedLiteral struct{} `json:"-"` 600 XXX_unrecognized []byte `json:"-"` 601 XXX_sizecache int32 `json:"-"` 602} 603 604func (m *OutputAudioConfig) Reset() { *m = OutputAudioConfig{} } 605func (m *OutputAudioConfig) String() string { return proto.CompactTextString(m) } 606func (*OutputAudioConfig) ProtoMessage() {} 607func (*OutputAudioConfig) Descriptor() ([]byte, []int) { 608 return fileDescriptor_80617ff5f6b0e1c6, []int{4} 609} 610 611func (m *OutputAudioConfig) XXX_Unmarshal(b []byte) error { 612 return xxx_messageInfo_OutputAudioConfig.Unmarshal(m, b) 613} 614func (m *OutputAudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 615 return xxx_messageInfo_OutputAudioConfig.Marshal(b, m, deterministic) 616} 617func (m *OutputAudioConfig) XXX_Merge(src proto.Message) { 618 xxx_messageInfo_OutputAudioConfig.Merge(m, src) 619} 620func (m *OutputAudioConfig) XXX_Size() int { 621 return xxx_messageInfo_OutputAudioConfig.Size(m) 622} 623func (m *OutputAudioConfig) XXX_DiscardUnknown() { 624 xxx_messageInfo_OutputAudioConfig.DiscardUnknown(m) 625} 626 627var xxx_messageInfo_OutputAudioConfig proto.InternalMessageInfo 628 629func (m *OutputAudioConfig) GetAudioEncoding() OutputAudioEncoding { 630 if m != nil { 631 return m.AudioEncoding 632 } 633 return OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_UNSPECIFIED 634} 635 636func (m *OutputAudioConfig) GetSampleRateHertz() int32 { 637 if m != nil { 638 return m.SampleRateHertz 639 } 640 return 0 641} 642 643func (m *OutputAudioConfig) GetSynthesizeSpeechConfig() *SynthesizeSpeechConfig { 644 if m != nil { 645 return m.SynthesizeSpeechConfig 646 } 647 return nil 648} 649 650func init() { 651 proto.RegisterEnum("google.cloud.dialogflow.v2beta1.AudioEncoding", AudioEncoding_name, AudioEncoding_value) 652 proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SpeechModelVariant", SpeechModelVariant_name, SpeechModelVariant_value) 653 proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value) 654 proto.RegisterEnum("google.cloud.dialogflow.v2beta1.OutputAudioEncoding", OutputAudioEncoding_name, OutputAudioEncoding_value) 655 proto.RegisterType((*SpeechWordInfo)(nil), "google.cloud.dialogflow.v2beta1.SpeechWordInfo") 656 proto.RegisterType((*InputAudioConfig)(nil), "google.cloud.dialogflow.v2beta1.InputAudioConfig") 657 proto.RegisterType((*VoiceSelectionParams)(nil), "google.cloud.dialogflow.v2beta1.VoiceSelectionParams") 658 proto.RegisterType((*SynthesizeSpeechConfig)(nil), "google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig") 659 proto.RegisterType((*OutputAudioConfig)(nil), "google.cloud.dialogflow.v2beta1.OutputAudioConfig") 660} 661 662func init() { 663 proto.RegisterFile("google/cloud/dialogflow/v2beta1/audio_config.proto", fileDescriptor_80617ff5f6b0e1c6) 664} 665 666var fileDescriptor_80617ff5f6b0e1c6 = []byte{ 667 // 1040 bytes of a gzipped FileDescriptorProto 668 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5d, 0x6f, 0xe3, 0x44, 669 0x17, 0x7e, 0x9d, 0xb4, 0xbb, 0x6f, 0x4f, 0x3e, 0xd6, 0x3b, 0x5b, 0xba, 0x6e, 0xe9, 0x47, 0x9a, 670 0xee, 0x4a, 0xa1, 0x42, 0x09, 0x9b, 0xf2, 0x25, 0xc1, 0x8d, 0x13, 0xbb, 0x89, 0x45, 0xbe, 0x70, 671 0x3e, 0xba, 0xc0, 0xc5, 0x68, 0x62, 0x4f, 0x1c, 0x0b, 0x67, 0x26, 0xd8, 0x4e, 0x57, 0xac, 0xc4, 672 0x4f, 0x40, 0xfc, 0x07, 0xc4, 0x15, 0x17, 0xfc, 0x02, 0x7e, 0x16, 0x12, 0x48, 0xdc, 0x20, 0x8f, 673 0xdd, 0x36, 0x9b, 0x66, 0xc9, 0x0d, 0x77, 0x33, 0xcf, 0x33, 0xcf, 0x39, 0xc7, 0xcf, 0x39, 0x93, 674 0x09, 0x54, 0x1d, 0xce, 0x1d, 0x8f, 0x56, 0x2c, 0x8f, 0x2f, 0xec, 0x8a, 0xed, 0x12, 0x8f, 0x3b, 675 0x13, 0x8f, 0xbf, 0xaa, 0x5c, 0x57, 0xc7, 0x34, 0x24, 0x2f, 0x2a, 0x64, 0x61, 0xbb, 0x1c, 0x5b, 676 0x9c, 0x4d, 0x5c, 0xa7, 0x3c, 0xf7, 0x79, 0xc8, 0xd1, 0x49, 0xac, 0x29, 0x0b, 0x4d, 0xf9, 0x4e, 677 0x53, 0x4e, 0x34, 0x07, 0xc7, 0x49, 0x50, 0x71, 0x7c, 0xbc, 0x98, 0x54, 0xec, 0x85, 0x4f, 0x42, 678 0x97, 0xb3, 0x38, 0xc0, 0xc1, 0x61, 0xc2, 0x93, 0xb9, 0x5b, 0x21, 0x8c, 0xf1, 0x50, 0x90, 0x41, 679 0xcc, 0x16, 0x7f, 0x97, 0x20, 0xdf, 0x9f, 0x53, 0x6a, 0x4d, 0xaf, 0xb8, 0x6f, 0x1b, 0x6c, 0xc2, 680 0x11, 0x82, 0xad, 0x57, 0xdc, 0xb7, 0x95, 0x74, 0x41, 0x2a, 0xed, 0x98, 0x62, 0x8d, 0x3e, 0x87, 681 0x6c, 0x10, 0x12, 0x3f, 0xc4, 0x7c, 0x32, 0x09, 0x68, 0xa8, 0x48, 0x05, 0xa9, 0x94, 0xa9, 0xee, 682 0x97, 0x93, 0xe2, 0x6e, 0x72, 0x97, 0xb5, 0x24, 0xb7, 0x99, 0x11, 0xc7, 0xbb, 0xe2, 0x34, 0xfa, 683 0x14, 0x80, 0x32, 0xfb, 0x46, 0x9b, 0xda, 0xa4, 0xdd, 0xa1, 0xcc, 0x4e, 0x94, 0xc7, 0x00, 0xc2, 684 0x0d, 0x9b, 0x32, 0x8b, 0x2a, 0x5b, 0x05, 0xa9, 0x94, 0x32, 0x97, 0x90, 0xe2, 0x9f, 0x29, 0x90, 685 0x0d, 0x36, 0x5f, 0x84, 0x6a, 0xe4, 0x5c, 0x5d, 0x18, 0x87, 0x86, 0x90, 0x8f, 0x8d, 0xa4, 0xcc, 686 0xe2, 0xb6, 0xcb, 0x1c, 0x51, 0x6e, 0xbe, 0x5a, 0x2e, 0x6f, 0xf0, 0xb2, 0x2c, 0xa2, 0xe8, 0x89, 687 0xca, 0xcc, 0x91, 0xe5, 0x2d, 0x3a, 0x87, 0xc7, 0x01, 0x99, 0xcd, 0x3d, 0x8a, 0x7d, 0x12, 0x52, 688 0x3c, 0xa5, 0x7e, 0xf8, 0x5a, 0x7c, 0xcc, 0xb6, 0xf9, 0x28, 0x26, 0x4c, 0x12, 0xd2, 0x66, 0x04, 689 0xa3, 0x33, 0xc8, 0x79, 0x84, 0x39, 0x0b, 0xe2, 0x50, 0x6c, 0x71, 0x9b, 0x26, 0x66, 0x66, 0x6f, 690 0xc0, 0x3a, 0xb7, 0x29, 0x2a, 0x81, 0x4c, 0x19, 0x19, 0x7b, 0x14, 0x47, 0x1e, 0x63, 0x97, 0x4d, 691 0xb8, 0x92, 0x2b, 0x48, 0xa5, 0xff, 0x9b, 0xf9, 0x18, 0xbf, 0x6d, 0xc9, 0x29, 0x64, 0xe7, 0x53, 692 0x9f, 0x04, 0x14, 0x4f, 0x5d, 0x16, 0x06, 0xca, 0x56, 0x21, 0x5d, 0xda, 0x31, 0x33, 0x31, 0xd6, 693 0x8c, 0x20, 0xb4, 0x0b, 0xdb, 0x33, 0x6e, 0x53, 0x4f, 0x79, 0x28, 0x32, 0xc5, 0x1b, 0xf4, 0x12, 694 0x72, 0x62, 0x81, 0xaf, 0x89, 0xef, 0x12, 0x16, 0x2a, 0x20, 0x9c, 0xb8, 0xd8, 0xe8, 0x44, 0x3c, 695 0x13, 0x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x6d, 0x24, 0x22, 729 0x87, 0x47, 0x8f, 0x48, 0x99, 0xfb, 0x4e, 0xc5, 0xa1, 0x4c, 0xbc, 0x9e, 0x95, 0x98, 0x22, 0x73, 730 0x37, 0x78, 0xeb, 0x7f, 0x8b, 0xcf, 0xee, 0xa0, 0xbf, 0x24, 0xe9, 0xe7, 0x54, 0x4a, 0xbb, 0xfc, 731 0x35, 0x75, 0xd2, 0x88, 0x63, 0xd6, 0x45, 0x21, 0xda, 0x5d, 0x21, 0xa3, 0x58, 0x34, 0x7e, 0x20, 732 0xe2, 0x5f, 0xfc, 0x13, 0x00, 0x00, 0xff, 0xff, 0xd8, 0xf2, 0x38, 0xff, 0xba, 0x08, 0x00, 0x00, 733} 734