Skip to content

Commit aeb138c

Browse files
feat: adds support for MULAW and ALAW audio encoding (#565)
PiperOrigin-RevId: 410256789 Source-Link: googleapis/googleapis@b3ff183 Source-Link: googleapis/googleapis-gen@488fbdc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDg4ZmJkYzQ2OTYyZDhiMGM3N2FmNzA2ZmFhNTUyYjlmYjVhNzFiOCJ9 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 7e9e1f7 commit aeb138c

File tree

5 files changed

+40
-8
lines changed

5 files changed

+40
-8
lines changed

packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts.proto

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2021 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.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

@@ -20,6 +19,7 @@ package google.cloud.texttospeech.v1;
2019
import "google/api/annotations.proto";
2120
import "google/api/client.proto";
2221
import "google/api/field_behavior.proto";
22+
import "google/api/resource.proto";
2323

2424
option cc_enable_arenas = true;
2525
option csharp_namespace = "Google.Cloud.TextToSpeech.V1";
@@ -29,6 +29,10 @@ option java_outer_classname = "TextToSpeechProto";
2929
option java_package = "com.google.cloud.texttospeech.v1";
3030
option php_namespace = "Google\\Cloud\\TextToSpeech\\V1";
3131
option ruby_package = "Google::Cloud::TextToSpeech::V1";
32+
option (google.api.resource_definition) = {
33+
type: "automl.googleapis.com/Model"
34+
pattern: "projects/{project}/locations/{location}/models/{model}"
35+
};
3236

3337
// Service that implements Google Cloud Text-to-Speech API.
3438
service TextToSpeech {
@@ -83,7 +87,7 @@ enum SsmlVoiceGender {
8387
// A female voice.
8488
FEMALE = 2;
8589

86-
// A gender-neutral voice.
90+
// A gender-neutral voice. This voice is not yet supported.
8791
NEUTRAL = 3;
8892
}
8993

@@ -105,6 +109,14 @@ enum AudioEncoding {
105109
// Chrome and Firefox). The quality of the encoding is considerably higher
106110
// than MP3 while using approximately the same bitrate.
107111
OGG_OPUS = 3;
112+
113+
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
114+
// Audio content returned as MULAW also contains a WAV header.
115+
MULAW = 5;
116+
117+
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
118+
// Audio content returned as ALAW also contains a WAV header.
119+
ALAW = 6;
108120
}
109121

110122
// The message returned to the client by the `ListVoices` method.

packages/google-cloud-texttospeech/protos/protos.d.ts

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-texttospeech/protos/protos.js

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-texttospeech/protos/protos.json

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-texttospeech/src/v1/text_to_speech_client_config.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
},
2222
"methods": {
2323
"ListVoices": {
24-
"timeout_millis": 600000,
24+
"timeout_millis": 300000,
2525
"retry_codes_name": "idempotent",
2626
"retry_params_name": "default"
2727
},
2828
"SynthesizeSpeech": {
29-
"timeout_millis": 600000,
29+
"timeout_millis": 300000,
3030
"retry_codes_name": "idempotent",
3131
"retry_params_name": "default"
3232
}

0 commit comments

Comments
 (0)