Skip to content

Commit 60688dc

Browse files
Google APIscopybara-github
authored andcommitted
feat: add brand voice lite, which lets you clone a voice with just 10 seconds of audio
PiperOrigin-RevId: 688491221
1 parent beea48a commit 60688dc

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

google/cloud/texttospeech/v1/cloud_tts.proto

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323

24-
option cc_enable_arenas = true;
2524
option csharp_namespace = "Google.Cloud.TextToSpeech.V1";
2625
option go_package = "cloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb";
2726
option java_multiple_files = true;
@@ -273,6 +272,11 @@ message VoiceSelectionParams {
273272
// the service will choose the custom voice matching the specified
274273
// configuration.
275274
CustomVoiceParams custom_voice = 4;
275+
276+
// Optional. The configuration for a voice clone. If
277+
// [VoiceCloneParams.voice_clone_key] is set, the service will choose the
278+
// voice clone matching the specified configuration.
279+
VoiceCloneParams voice_clone = 5 [(google.api.field_behavior) = OPTIONAL];
276280
}
277281

278282
// Description of audio data to be synthesized.
@@ -360,6 +364,12 @@ message CustomVoiceParams {
360364
[deprecated = true, (google.api.field_behavior) = OPTIONAL];
361365
}
362366

367+
// The configuration of Voice Clone feature.
368+
message VoiceCloneParams {
369+
// Required. Created by GenerateVoiceCloningKey.
370+
string voice_cloning_key = 1 [(google.api.field_behavior) = REQUIRED];
371+
}
372+
363373
// The message returned to the client by the `SynthesizeSpeech` method.
364374
message SynthesizeSpeechResponse {
365375
// The audio data bytes encoded as specified in the request, including the

google/cloud/texttospeech/v1/cloud_tts_lrs.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import "google/cloud/texttospeech/v1/cloud_tts.proto";
2323
import "google/longrunning/operations.proto";
2424
import "google/protobuf/timestamp.proto";
2525

26-
option cc_enable_arenas = true;
2726
option csharp_namespace = "Google.Cloud.TextToSpeech.V1";
2827
option go_package = "cloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb";
2928
option java_multiple_files = true;

0 commit comments

Comments
 (0)