Skip to content

Commit 8ec5a94

Browse files
feat: Automated regeneration of TextToSpeech client (googleapis#12422)
Auto-created at 2024-10-28 13:12:30 +0000 using the toys pull request generator.
1 parent d96e294 commit 8ec5a94

18 files changed

+305
-10
lines changed

clients/text_to_speech/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_text_to_speech, "~> 0.19"}]
14+
[{:google_api_text_to_speech, "~> 0.20"}]
1515
end
1616
```
1717

clients/text_to_speech/lib/google_api/text_to_speech/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.TextToSpeech.V1 do
2020
API client metadata for GoogleApi.TextToSpeech.V1.
2121
"""
2222

23-
@discovery_revision "20241008"
23+
@discovery_revision "20241026"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/text_to_speech/lib/google_api/text_to_speech/v1/model/advanced_voice_options.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.TextToSpeech.V1.Model.AdvancedVoiceOptions do
2121
2222
## Attributes
2323
24-
* `lowLatencyJourneySynthesis` (*type:* `boolean()`, *default:* `nil`) - Only for Jounrney voices. If false, the synthesis will be context aware and have higher latency.
24+
* `lowLatencyJourneySynthesis` (*type:* `boolean()`, *default:* `nil`) - Only for Journey voices. If false, the synthesis will be context aware and have higher latency.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.TextToSpeech.V1.Model.MultiSpeakerMarkup do
19+
@moduledoc """
20+
A collection of turns for multi-speaker synthesis.
21+
22+
## Attributes
23+
24+
* `turns` (*type:* `list(GoogleApi.TextToSpeech.V1.Model.Turn.t)`, *default:* `nil`) - Required. Speaker turns.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:turns => list(GoogleApi.TextToSpeech.V1.Model.Turn.t()) | nil
31+
}
32+
33+
field(:turns, as: GoogleApi.TextToSpeech.V1.Model.Turn, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.TextToSpeech.V1.Model.MultiSpeakerMarkup do
37+
def decode(value, options) do
38+
GoogleApi.TextToSpeech.V1.Model.MultiSpeakerMarkup.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.TextToSpeech.V1.Model.MultiSpeakerMarkup do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/text_to_speech/lib/google_api/text_to_speech/v1/model/synthesis_input.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.TextToSpeech.V1.Model.SynthesisInput do
2222
## Attributes
2323
2424
* `customPronunciations` (*type:* `GoogleApi.TextToSpeech.V1.Model.CustomPronunciations.t`, *default:* `nil`) - 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).
25+
* `multiSpeakerMarkup` (*type:* `GoogleApi.TextToSpeech.V1.Model.MultiSpeakerMarkup.t`, *default:* `nil`) - The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.
2526
* `ssml` (*type:* `String.t`, *default:* `nil`) - The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
2627
* `text` (*type:* `String.t`, *default:* `nil`) - The raw text to be synthesized.
2728
"""
@@ -30,11 +31,13 @@ defmodule GoogleApi.TextToSpeech.V1.Model.SynthesisInput do
3031

3132
@type t :: %__MODULE__{
3233
:customPronunciations => GoogleApi.TextToSpeech.V1.Model.CustomPronunciations.t() | nil,
34+
:multiSpeakerMarkup => GoogleApi.TextToSpeech.V1.Model.MultiSpeakerMarkup.t() | nil,
3335
:ssml => String.t() | nil,
3436
:text => String.t() | nil
3537
}
3638

3739
field(:customPronunciations, as: GoogleApi.TextToSpeech.V1.Model.CustomPronunciations)
40+
field(:multiSpeakerMarkup, as: GoogleApi.TextToSpeech.V1.Model.MultiSpeakerMarkup)
3841
field(:ssml)
3942
field(:text)
4043
end

clients/text_to_speech/lib/google_api/text_to_speech/v1/model/synthesize_speech_request.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.TextToSpeech.V1.Model.SynthesizeSpeechRequest do
2121
2222
## Attributes
2323
24-
* `advancedVoiceOptions` (*type:* `GoogleApi.TextToSpeech.V1.Model.AdvancedVoiceOptions.t`, *default:* `nil`) - Adnanced voice options.
24+
* `advancedVoiceOptions` (*type:* `GoogleApi.TextToSpeech.V1.Model.AdvancedVoiceOptions.t`, *default:* `nil`) - Advanced voice options.
2525
* `audioConfig` (*type:* `GoogleApi.TextToSpeech.V1.Model.AudioConfig.t`, *default:* `nil`) - Required. The configuration of the synthesized audio.
2626
* `input` (*type:* `GoogleApi.TextToSpeech.V1.Model.SynthesisInput.t`, *default:* `nil`) - Required. The Synthesizer requires either plain text or SSML as input.
2727
* `voice` (*type:* `GoogleApi.TextToSpeech.V1.Model.VoiceSelectionParams.t`, *default:* `nil`) - Required. The desired voice of the synthesized audio.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.TextToSpeech.V1.Model.Turn do
19+
@moduledoc """
20+
A Multi-speaker turn.
21+
22+
## Attributes
23+
24+
* `speaker` (*type:* `String.t`, *default:* `nil`) - Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.
25+
* `text` (*type:* `String.t`, *default:* `nil`) - Required. The text to speak.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:speaker => String.t() | nil,
32+
:text => String.t() | nil
33+
}
34+
35+
field(:speaker)
36+
field(:text)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.TextToSpeech.V1.Model.Turn do
40+
def decode(value, options) do
41+
GoogleApi.TextToSpeech.V1.Model.Turn.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.TextToSpeech.V1.Model.Turn do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.TextToSpeech.V1.Model.VoiceCloneParams do
19+
@moduledoc """
20+
The configuration of Voice Clone feature.
21+
22+
## Attributes
23+
24+
* `voiceCloningKey` (*type:* `String.t`, *default:* `nil`) - Required. Created by GenerateVoiceCloningKey.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:voiceCloningKey => String.t() | nil
31+
}
32+
33+
field(:voiceCloningKey)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.TextToSpeech.V1.Model.VoiceCloneParams do
37+
def decode(value, options) do
38+
GoogleApi.TextToSpeech.V1.Model.VoiceCloneParams.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.TextToSpeech.V1.Model.VoiceCloneParams do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/text_to_speech/lib/google_api/text_to_speech/v1/model/voice_selection_params.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.TextToSpeech.V1.Model.VoiceSelectionParams do
2525
* `languageCode` (*type:* `String.t`, *default:* `nil`) - Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. "en-US". This should not include a script tag (e.g. use "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using "nb" (Norwegian Bokmal) instead of "no" (Norwegian)".
2626
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as language_code.
2727
* `ssmlGender` (*type:* `String.t`, *default:* `nil`) - The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement; if a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request.
28+
* `voiceClone` (*type:* `GoogleApi.TextToSpeech.V1.Model.VoiceCloneParams.t`, *default:* `nil`) - Optional. The configuration for a voice clone. If [VoiceCloneParams.voice_clone_key] is set, the service will choose the voice clone matching the specified configuration.
2829
"""
2930

3031
use GoogleApi.Gax.ModelBase
@@ -33,13 +34,15 @@ defmodule GoogleApi.TextToSpeech.V1.Model.VoiceSelectionParams do
3334
:customVoice => GoogleApi.TextToSpeech.V1.Model.CustomVoiceParams.t() | nil,
3435
:languageCode => String.t() | nil,
3536
:name => String.t() | nil,
36-
:ssmlGender => String.t() | nil
37+
:ssmlGender => String.t() | nil,
38+
:voiceClone => GoogleApi.TextToSpeech.V1.Model.VoiceCloneParams.t() | nil
3739
}
3840

3941
field(:customVoice, as: GoogleApi.TextToSpeech.V1.Model.CustomVoiceParams)
4042
field(:languageCode)
4143
field(:name)
4244
field(:ssmlGender)
45+
field(:voiceClone, as: GoogleApi.TextToSpeech.V1.Model.VoiceCloneParams)
4346
end
4447

4548
defimpl Poison.Decoder, for: GoogleApi.TextToSpeech.V1.Model.VoiceSelectionParams do

clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.TextToSpeech.V1beta1 do
2020
API client metadata for GoogleApi.TextToSpeech.V1beta1.
2121
"""
2222

23-
@discovery_revision "20241008"
23+
@discovery_revision "20241026"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

0 commit comments

Comments
 (0)