Reference documentation and code samples for the Cloud Text-to-Speech V1beta1 API class Google::Cloud::TextToSpeech::V1beta1::StreamingAudioConfig.
Description of the desired output audio data.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio_encoding
def audio_encoding() -> ::Google::Cloud::TextToSpeech::V1beta1::AudioEncoding
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::AudioEncoding) — Required. The format of the audio byte stream. For now, streaming only supports PCM and OGG_OPUS. All other encodings will return an error.
#audio_encoding=
def audio_encoding=(value) -> ::Google::Cloud::TextToSpeech::V1beta1::AudioEncoding
Parameter
- value (::Google::Cloud::TextToSpeech::V1beta1::AudioEncoding) — Required. The format of the audio byte stream. For now, streaming only supports PCM and OGG_OPUS. All other encodings will return an error.
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::AudioEncoding) — Required. The format of the audio byte stream. For now, streaming only supports PCM and OGG_OPUS. All other encodings will return an error.
#sample_rate_hertz
def sample_rate_hertz() -> ::Integer
Returns
- (::Integer) — Optional. The synthesis sample rate (in hertz) for this audio.
#sample_rate_hertz=
def sample_rate_hertz=(value) -> ::Integer
Parameter
- value (::Integer) — Optional. The synthesis sample rate (in hertz) for this audio.
Returns
- (::Integer) — Optional. The synthesis sample rate (in hertz) for this audio.