Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Oct 10, 2024
1 parent 24450a4 commit dd85eb6
Show file tree
Hide file tree
Showing 70 changed files with 93 additions and 9,249 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def list_voices request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
#
# @overload synthesize_speech(input: nil, voice: nil, audio_config: nil)
# @overload synthesize_speech(input: nil, voice: nil, audio_config: nil, advanced_voice_options: nil)
# Pass arguments to `synthesize_speech` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
Expand All @@ -278,6 +278,8 @@ def list_voices request, options = nil
# Required. The desired voice of the synthesized audio.
# @param audio_config [::Google::Cloud::TextToSpeech::V1::AudioConfig, ::Hash]
# Required. The configuration of the synthesized audio.
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions, ::Hash]
# Advanced voice options.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def list_voices request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
#
# @overload synthesize_speech(input: nil, voice: nil, audio_config: nil)
# @overload synthesize_speech(input: nil, voice: nil, audio_config: nil, advanced_voice_options: nil)
# Pass arguments to `synthesize_speech` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
Expand All @@ -272,6 +272,8 @@ def list_voices request, options = nil
# Required. The desired voice of the synthesized audio.
# @param audio_config [::Google::Cloud::TextToSpeech::V1::AudioConfig, ::Hash]
# Required. The configuration of the synthesized audio.
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions, ::Hash]
# Advanced voice options.
# @yield [result, operation] Access the result along with the TransportOperation object
# @yieldparam result [::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse]
# @yieldparam operation [::Gapic::Rest::TransportOperation]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ class Voice
extend ::Google::Protobuf::MessageExts::ClassMethods
end

# Used for advanced voice options.
# @!attribute [rw] low_latency_journey_synthesis
# @return [::Boolean]
# Only for Journey voices. If false, the synthesis will be context aware
# and have higher latency.
class AdvancedVoiceOptions
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end

# The top-level message sent by the client for the `SynthesizeSpeech` method.
# @!attribute [rw] input
# @return [::Google::Cloud::TextToSpeech::V1::SynthesisInput]
Expand All @@ -76,11 +86,55 @@ class Voice
# @!attribute [rw] audio_config
# @return [::Google::Cloud::TextToSpeech::V1::AudioConfig]
# Required. The configuration of the synthesized audio.
# @!attribute [rw] advanced_voice_options
# @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions]
# Advanced voice options.
class SynthesizeSpeechRequest
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end

# Pronunciation customization for a phrase.
# @!attribute [rw] phrase
# @return [::String]
# The phrase to which the customization will be applied.
# The phrase can be multiple words (in the case of proper nouns etc), but
# should not span to a whole sentence.
# @!attribute [rw] phonetic_encoding
# @return [::Google::Cloud::TextToSpeech::V1::CustomPronunciationParams::PhoneticEncoding]
# The phonetic encoding of the phrase.
# @!attribute [rw] pronunciation
# @return [::String]
# The pronunciation of the phrase. This must be in the phonetic encoding
# specified above.
class CustomPronunciationParams
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods

# The phonetic encoding of the phrase.
module PhoneticEncoding
# Not specified.
PHONETIC_ENCODING_UNSPECIFIED = 0

# IPA. (e.g. apple -> ˈæpəl )
# https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
PHONETIC_ENCODING_IPA = 1

# X-SAMPA (e.g. apple -> "{p@l" )
# https://en.wikipedia.org/wiki/X-SAMPA
PHONETIC_ENCODING_X_SAMPA = 2
end
end

# A collection of pronunciation customizations.
# @!attribute [rw] pronunciations
# @return [::Array<::Google::Cloud::TextToSpeech::V1::CustomPronunciationParams>]
# The pronunciation customizations to be applied.
class CustomPronunciations
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end

# Contains text input to be synthesized. Either `text` or `ssml` must be
# supplied. Supplying both or neither returns
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. The
Expand All @@ -95,6 +149,20 @@ class SynthesizeSpeechRequest
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
# more information, see
# [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
# @!attribute [rw] custom_pronunciations
# @return [::Google::Cloud::TextToSpeech::V1::CustomPronunciations]
# Optional. The pronunciation customizations to be applied to the input. If
# this is set, the input will be synthesized using the given pronunciation
# customizations.
#
# The initial support will be for EFIGS (English, French,
# Italian, German, Spanish) languages, as provided in
# VoiceSelectionParams. Journey and Instant Clone voices are
# not supported yet.
#
# In order to customize the pronunciation of a phrase, there must be an exact
# match of the phrase in the input types. If using SSML, the phrase must not
# be inside a phoneme tag (entirely or partially).
class SynthesisInput
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
Expand Down
Loading

0 comments on commit dd85eb6

Please sign in to comment.