Skip to content

Commit 4fe529d

Browse files
feat: [TextToSpeech] add Gemini TTS Multispeaker API fields (#8615)
* feat: add Gemini TTS Multispeaker API fields PiperOrigin-RevId: 809186275 Source-Link: googleapis/googleapis@b2cd70b Source-Link: googleapis/googleapis-gen@cbd7c4e Copy-Tag: eyJwIjoiVGV4dFRvU3BlZWNoLy5Pd2xCb3QueWFtbCIsImgiOiJjYmQ3YzRlYzUxZDBhZGFjNzI3ODdhYjc0Y2U0MDc4ZTdmMjdhODdhIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 700855b commit 4fe529d

7 files changed

Lines changed: 284 additions & 10 deletions
382 Bytes
Binary file not shown.

TextToSpeech/src/V1/Client/TextToSpeechClient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ final class TextToSpeechClient
8080
private const CODEGEN_NAME = 'gapic';
8181

8282
/** The default scopes required by the service. */
83-
public static $serviceScopes = [
84-
'https://www.googleapis.com/auth/cloud-platform',
85-
];
83+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8684

8785
private static function getClientDefaults()
8886
{
@@ -301,8 +299,10 @@ public function streamingSynthesize(array $callOptions = []): BidiStream
301299
*
302300
* @throws ApiException Thrown if the API call fails.
303301
*/
304-
public function synthesizeSpeech(SynthesizeSpeechRequest $request, array $callOptions = []): SynthesizeSpeechResponse
305-
{
302+
public function synthesizeSpeech(
303+
SynthesizeSpeechRequest $request,
304+
array $callOptions = []
305+
): SynthesizeSpeechResponse {
306306
return $this->startApiCall('SynthesizeSpeech', $request, $callOptions)->wait();
307307
}
308308
}

TextToSpeech/src/V1/Client/TextToSpeechLongAudioSynthesizeClient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ final class TextToSpeechLongAudioSynthesizeClient
7979
private const CODEGEN_NAME = 'gapic';
8080

8181
/** The default scopes required by the service. */
82-
public static $serviceScopes = [
83-
'https://www.googleapis.com/auth/cloud-platform',
84-
];
82+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8583

8684
private $operationsClient;
8785

@@ -91,14 +89,16 @@ private static function getClientDefaults()
9189
'serviceName' => self::SERVICE_NAME,
9290
'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
9391
'clientConfig' => __DIR__ . '/../resources/text_to_speech_long_audio_synthesize_client_config.json',
94-
'descriptorsConfigPath' => __DIR__ . '/../resources/text_to_speech_long_audio_synthesize_descriptor_config.php',
92+
'descriptorsConfigPath' =>
93+
__DIR__ . '/../resources/text_to_speech_long_audio_synthesize_descriptor_config.php',
9594
'gcpApiConfigPath' => __DIR__ . '/../resources/text_to_speech_long_audio_synthesize_grpc_config.json',
9695
'credentialsConfig' => [
9796
'defaultScopes' => self::$serviceScopes,
9897
],
9998
'transportConfig' => [
10099
'rest' => [
101-
'restClientConfigPath' => __DIR__ . '/../resources/text_to_speech_long_audio_synthesize_rest_client_config.php',
100+
'restClientConfigPath' =>
101+
__DIR__ . '/../resources/text_to_speech_long_audio_synthesize_rest_client_config.php',
102102
],
103103
],
104104
];

TextToSpeech/src/V1/MultiSpeakerVoiceConfig.php

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TextToSpeech/src/V1/MultispeakerPrebuiltVoice.php

Lines changed: 114 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TextToSpeech/src/V1/StreamingSynthesisInput.php

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TextToSpeech/src/V1/VoiceSelectionParams.php

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)