Skip to content

Commit

Permalink
feat: adds support for MULAW and ALAW audio encoding (#565)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 22, 2021
1 parent 7e9e1f7 commit aeb138c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

Expand All @@ -20,6 +19,7 @@ package google.cloud.texttospeech.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";

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

// Service that implements Google Cloud Text-to-Speech API.
service TextToSpeech {
Expand Down Expand Up @@ -83,7 +87,7 @@ enum SsmlVoiceGender {
// A female voice.
FEMALE = 2;

// A gender-neutral voice.
// A gender-neutral voice. This voice is not yet supported.
NEUTRAL = 3;
}

Expand All @@ -105,6 +109,14 @@ enum AudioEncoding {
// Chrome and Firefox). The quality of the encoding is considerably higher
// than MP3 while using approximately the same bitrate.
OGG_OPUS = 3;

// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
// Audio content returned as MULAW also contains a WAV header.
MULAW = 5;

// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
// Audio content returned as ALAW also contains a WAV header.
ALAW = 6;
}

// The message returned to the client by the `ListVoices` method.
Expand Down
4 changes: 3 additions & 1 deletion packages/google-cloud-texttospeech/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions packages/google-cloud-texttospeech/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions packages/google-cloud-texttospeech/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
},
"methods": {
"ListVoices": {
"timeout_millis": 600000,
"timeout_millis": 300000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
"SynthesizeSpeech": {
"timeout_millis": 600000,
"timeout_millis": 300000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
}
Expand Down

0 comments on commit aeb138c

Please sign in to comment.