diff --git a/apis/Google.Cloud.TextToSpeech.V1Beta1/Google.Cloud.TextToSpeech.V1Beta1/CloudTts.g.cs b/apis/Google.Cloud.TextToSpeech.V1Beta1/Google.Cloud.TextToSpeech.V1Beta1/CloudTts.g.cs
index 7f3bd20d46cf..0c2fc5ee2c42 100644
--- a/apis/Google.Cloud.TextToSpeech.V1Beta1/Google.Cloud.TextToSpeech.V1Beta1/CloudTts.g.cs
+++ b/apis/Google.Cloud.TextToSpeech.V1Beta1/Google.Cloud.TextToSpeech.V1Beta1/CloudTts.g.cs
@@ -92,43 +92,48 @@ static CloudTtsReflection() {
"ZXh0dG9zcGVlY2gudjFiZXRhMS5UaW1lcG9pbnQSRAoMYXVkaW9fY29uZmln",
"GAQgASgLMi4uZ29vZ2xlLmNsb3VkLnRleHR0b3NwZWVjaC52MWJldGExLkF1",
"ZGlvQ29uZmlnIjQKCVRpbWVwb2ludBIRCgltYXJrX25hbWUYBCABKAkSFAoM",
- "dGltZV9zZWNvbmRzGAMgASgBImgKGVN0cmVhbWluZ1N5bnRoZXNpemVDb25m",
- "aWcSSwoFdm9pY2UYASABKAsyNy5nb29nbGUuY2xvdWQudGV4dHRvc3BlZWNo",
- "LnYxYmV0YTEuVm9pY2VTZWxlY3Rpb25QYXJhbXNCA+BBAiI5ChdTdHJlYW1p",
- "bmdTeW50aGVzaXNJbnB1dBIOCgR0ZXh0GAEgASgJSABCDgoMaW5wdXRfc291",
- "cmNlItgBChpTdHJlYW1pbmdTeW50aGVzaXplUmVxdWVzdBJYChBzdHJlYW1p",
- "bmdfY29uZmlnGAEgASgLMjwuZ29vZ2xlLmNsb3VkLnRleHR0b3NwZWVjaC52",
- "MWJldGExLlN0cmVhbWluZ1N5bnRoZXNpemVDb25maWdIABJLCgVpbnB1dBgC",
- "IAEoCzI6Lmdvb2dsZS5jbG91ZC50ZXh0dG9zcGVlY2gudjFiZXRhMS5TdHJl",
- "YW1pbmdTeW50aGVzaXNJbnB1dEgAQhMKEXN0cmVhbWluZ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 "VjFCZXRhMcoCIUdvb2dsZVxDbG91ZFxUZXh0VG9TcGVlY2hcVjFiZXRhMeoC",
+ "JEdvb2dsZTo6Q2xvdWQ6OlRleHRUb1NwZWVjaDo6VjFiZXRhMepBVQobYXV0",
+ "b21sLmdvb2dsZWFwaXMuY29tL01vZGVsEjZwcm9qZWN0cy97cHJvamVjdH0v",
+ "bG9jYXRpb25zL3tsb2NhdGlvbn0vbW9kZWxzL3ttb2RlbH1iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.TextToSpeech.V1Beta1.SsmlVoiceGender), typeof(global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding), }, null, new pbr::GeneratedClrTypeInfo[] {
@@ -147,7 +152,8 @@ static CloudTtsReflection() {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.VoiceCloneParams), global::Google.Cloud.TextToSpeech.V1Beta1.VoiceCloneParams.Parser, new[]{ "VoiceCloningKey" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.SynthesizeSpeechResponse), global::Google.Cloud.TextToSpeech.V1Beta1.SynthesizeSpeechResponse.Parser, new[]{ "AudioContent", "Timepoints", "AudioConfig" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.Timepoint), global::Google.Cloud.TextToSpeech.V1Beta1.Timepoint.Parser, new[]{ "MarkName", "TimeSeconds" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesizeConfig), global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesizeConfig.Parser, new[]{ "Voice" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.StreamingAudioConfig), global::Google.Cloud.TextToSpeech.V1Beta1.StreamingAudioConfig.Parser, new[]{ "AudioEncoding", "SampleRateHertz" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesizeConfig), global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesizeConfig.Parser, new[]{ "Voice", "StreamingAudioConfig" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesisInput), global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesisInput.Parser, new[]{ "Text" }, new[]{ "InputSource" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesizeRequest), global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesizeRequest.Parser, new[]{ "StreamingConfig", "Input" }, new[]{ "StreamingRequest" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesizeResponse), global::Google.Cloud.TextToSpeech.V1Beta1.StreamingSynthesizeResponse.Parser, new[]{ "AudioContent" }, null, null, null, null)
@@ -224,6 +230,12 @@ public enum AudioEncoding {
/// Audio content returned as ALAW also contains a WAV header.
///
[pbr::OriginalName("ALAW")] Alaw = 6,
+ ///
+ /// Uncompressed 16-bit signed little-endian samples (Linear PCM).
+ /// Note that as opposed to LINEAR16, audio will not be wrapped in a WAV (or
+ /// any other) header.
+ ///
+ [pbr::OriginalName("PCM")] Pcm = 7,
}
#endregion
@@ -4712,6 +4724,244 @@ public void MergeFrom(pb::CodedInputStream input) {
}
+ ///
+ /// Description of the desired output audio data.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class StreamingAudioConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamingAudioConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Google.Cloud.TextToSpeech.V1Beta1.CloudTtsReflection.Descriptor.MessageTypes[15]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamingAudioConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamingAudioConfig(StreamingAudioConfig other) : this() {
+ audioEncoding_ = other.audioEncoding_;
+ sampleRateHertz_ = other.sampleRateHertz_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamingAudioConfig Clone() {
+ return new StreamingAudioConfig(this);
+ }
+
+ /// Field number for the "audio_encoding" field.
+ public const int AudioEncodingFieldNumber = 1;
+ private global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding audioEncoding_ = global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding.Unspecified;
+ ///
+ /// Required. The format of the audio byte stream.
+ /// For now, streaming only supports PCM and OGG_OPUS. All other encodings
+ /// will return an error.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding AudioEncoding {
+ get { return audioEncoding_; }
+ set {
+ audioEncoding_ = value;
+ }
+ }
+
+ /// Field number for the "sample_rate_hertz" field.
+ public const int SampleRateHertzFieldNumber = 2;
+ private int sampleRateHertz_;
+ ///
+ /// Optional. The synthesis sample rate (in hertz) for this audio.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int SampleRateHertz {
+ get { return sampleRateHertz_; }
+ set {
+ sampleRateHertz_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as StreamingAudioConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(StreamingAudioConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (AudioEncoding != other.AudioEncoding) return false;
+ if (SampleRateHertz != other.SampleRateHertz) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (AudioEncoding != global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding.Unspecified) hash ^= AudioEncoding.GetHashCode();
+ if (SampleRateHertz != 0) hash ^= SampleRateHertz.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (AudioEncoding != global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding.Unspecified) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) AudioEncoding);
+ }
+ if (SampleRateHertz != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(SampleRateHertz);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (AudioEncoding != global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding.Unspecified) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) AudioEncoding);
+ }
+ if (SampleRateHertz != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(SampleRateHertz);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (AudioEncoding != global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding.Unspecified) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AudioEncoding);
+ }
+ if (SampleRateHertz != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(SampleRateHertz);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(StreamingAudioConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.AudioEncoding != global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding.Unspecified) {
+ AudioEncoding = other.AudioEncoding;
+ }
+ if (other.SampleRateHertz != 0) {
+ SampleRateHertz = other.SampleRateHertz;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ AudioEncoding = (global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ SampleRateHertz = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ AudioEncoding = (global::Google.Cloud.TextToSpeech.V1Beta1.AudioEncoding) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ SampleRateHertz = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
///
/// Provides configuration information for the StreamingSynthesize request.
///
@@ -4730,7 +4980,7 @@ public sealed partial class StreamingSynthesizeConfig : pb::IMessageField number for the "streaming_audio_config" field.
+ public const int StreamingAudioConfigFieldNumber = 4;
+ private global::Google.Cloud.TextToSpeech.V1Beta1.StreamingAudioConfig streamingAudioConfig_;
+ ///
+ /// Optional. The configuration of the synthesized audio.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Cloud.TextToSpeech.V1Beta1.StreamingAudioConfig StreamingAudioConfig {
+ get { return streamingAudioConfig_; }
+ set {
+ streamingAudioConfig_ = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@@ -4791,6 +5057,7 @@ public bool Equals(StreamingSynthesizeConfig other) {
return true;
}
if (!object.Equals(Voice, other.Voice)) return false;
+ if (!object.Equals(StreamingAudioConfig, other.StreamingAudioConfig)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -4799,6 +5066,7 @@ public bool Equals(StreamingSynthesizeConfig other) {
public override int GetHashCode() {
int hash = 1;
if (voice_ != null) hash ^= Voice.GetHashCode();
+ if (streamingAudioConfig_ != null) hash ^= StreamingAudioConfig.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -4821,6 +5089,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(10);
output.WriteMessage(Voice);
}
+ if (streamingAudioConfig_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(StreamingAudioConfig);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -4835,6 +5107,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(10);
output.WriteMessage(Voice);
}
+ if (streamingAudioConfig_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(StreamingAudioConfig);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -4848,6 +5124,9 @@ public int CalculateSize() {
if (voice_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Voice);
}
+ if (streamingAudioConfig_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(StreamingAudioConfig);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -4866,6 +5145,12 @@ public void MergeFrom(StreamingSynthesizeConfig other) {
}
Voice.MergeFrom(other.Voice);
}
+ if (other.streamingAudioConfig_ != null) {
+ if (streamingAudioConfig_ == null) {
+ StreamingAudioConfig = new global::Google.Cloud.TextToSpeech.V1Beta1.StreamingAudioConfig();
+ }
+ StreamingAudioConfig.MergeFrom(other.StreamingAudioConfig);
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -4888,6 +5173,13 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Voice);
break;
}
+ case 34: {
+ if (streamingAudioConfig_ == null) {
+ StreamingAudioConfig = new global::Google.Cloud.TextToSpeech.V1Beta1.StreamingAudioConfig();
+ }
+ input.ReadMessage(StreamingAudioConfig);
+ break;
+ }
}
}
#endif
@@ -4910,6 +5202,13 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Voice);
break;
}
+ case 34: {
+ if (streamingAudioConfig_ == null) {
+ StreamingAudioConfig = new global::Google.Cloud.TextToSpeech.V1Beta1.StreamingAudioConfig();
+ }
+ input.ReadMessage(StreamingAudioConfig);
+ break;
+ }
}
}
}
@@ -4935,7 +5234,7 @@ public sealed partial class StreamingSynthesisInput : pb::IMessage