public sealed class StreamingAudioConfig : IMessage<StreamingAudioConfig>, IEquatable<StreamingAudioConfig>, IDeepCloneable<StreamingAudioConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Text-to-Speech v1 API class StreamingAudioConfig.
Description of the desired output audio data.
Implements
IMessageStreamingAudioConfig, IEquatableStreamingAudioConfig, IDeepCloneableStreamingAudioConfig, IBufferMessage, IMessageNamespace
Google.Cloud.TextToSpeech.V1Assembly
Google.Cloud.TextToSpeech.V1.dll
Constructors
StreamingAudioConfig()
public StreamingAudioConfig()
StreamingAudioConfig(StreamingAudioConfig)
public StreamingAudioConfig(StreamingAudioConfig other)
Parameter | |
---|---|
Name | Description |
other |
StreamingAudioConfig |
Properties
AudioEncoding
public AudioEncoding AudioEncoding { get; set; }
Required. The format of the audio byte stream. Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings return an error.
Property Value | |
---|---|
Type | Description |
AudioEncoding |
SampleRateHertz
public int SampleRateHertz { get; set; }
Optional. The synthesis sample rate (in hertz) for this audio.
Property Value | |
---|---|
Type | Description |
int |
SpeakingRate
public double SpeakingRate { get; set; }
Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values < 0.25 or > 2.0 will return an error.
Property Value | |
---|---|
Type | Description |
double |