Skip to content

Commit c22f408

Browse files
Google APIscopybara-github
authored andcommitted
fix: correct long audio synthesis HTTP binding
docs: Deprecate the custom voice usage field PiperOrigin-RevId: 595119987
1 parent 75c4411 commit c22f408

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

google/cloud/texttospeech/v1/cloud_tts.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -266,9 +266,8 @@ message AudioConfig {
266266

267267
// Description of the custom voice to be synthesized.
268268
message CustomVoiceParams {
269-
// The usage of the synthesized audio. You must report your honest and
270-
// correct usage of the service as it's regulated by contract and will cause
271-
// significant difference in billing.
269+
// Deprecated. The usage of the synthesized audio. Usage does not affect
270+
// billing.
272271
enum ReportedUsage {
273272
// Request with reported usage unspecified will be rejected.
274273
REPORTED_USAGE_UNSPECIFIED = 0;
@@ -289,8 +288,9 @@ message CustomVoiceParams {
289288
(google.api.resource_reference) = { type: "automl.googleapis.com/Model" }
290289
];
291290

292-
// Optional. The usage of the synthesized audio to be reported.
293-
ReportedUsage reported_usage = 3 [(google.api.field_behavior) = OPTIONAL];
291+
// Optional. Deprecated. The usage of the synthesized audio to be reported.
292+
ReportedUsage reported_usage = 3
293+
[deprecated = true, (google.api.field_behavior) = OPTIONAL];
294294
}
295295

296296
// The message returned to the client by the `SynthesizeSpeech` method.

google/cloud/texttospeech/v1/cloud_tts_lrs.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -42,12 +42,12 @@ service TextToSpeechLongAudioSynthesize {
4242
rpc SynthesizeLongAudio(SynthesizeLongAudioRequest)
4343
returns (google.longrunning.Operation) {
4444
option (google.api.http) = {
45-
post: "/v1/{parent=projects/*/locations/*/voices/*}:SynthesizeLongAudio"
45+
post: "/v1/{parent=projects/*/locations/*}:synthesizeLongAudio"
4646
body: "*"
4747
};
4848
option (google.longrunning.operation_info) = {
49-
response_type: "SynthesizeLongAudioResponse"
50-
metadata_type: "SynthesizeLongAudioMetadata"
49+
response_type: "google.cloud.texttospeech.v1.SynthesizeLongAudioResponse"
50+
metadata_type: "google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata"
5151
};
5252
}
5353
}
@@ -83,8 +83,8 @@ message SynthesizeLongAudioMetadata {
8383
// Time when the request was received.
8484
google.protobuf.Timestamp start_time = 1;
8585

86-
// Time of the most recent processing update.
87-
google.protobuf.Timestamp last_update_time = 2;
86+
// Deprecated. Do not use.
87+
google.protobuf.Timestamp last_update_time = 2 [deprecated = true];
8888

8989
// The progress of the most recent processing update in percentage, ie. 70.0%.
9090
double progress_percentage = 3;

google/cloud/texttospeech/v1/texttospeech_v1.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ apis:
88
- name: google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize
99
- name: google.longrunning.Operations
1010

11+
types:
12+
- name: google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata
13+
1114
documentation:
1215
summary: |-
1316
Synthesizes natural-sounding speech by applying powerful neural network
@@ -17,6 +20,13 @@ documentation:
1720
1821
Google Cloud Text-to-Speech API provides speech synthesis as a service.
1922
23+
http:
24+
rules:
25+
- selector: google.longrunning.Operations.GetOperation
26+
get: '/v1/{name=projects/*/locations/*/operations/*}'
27+
- selector: google.longrunning.Operations.ListOperations
28+
get: '/v1/{name=projects/*/locations/*}/operations'
29+
2030
authentication:
2131
rules:
2232
- selector: google.cloud.texttospeech.v1.TextToSpeech.ListVoices

0 commit comments

Comments
 (0)