Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

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] committed Nov 22, 2021
1 parent baea3a0 commit cf7cb74
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
18 changes: 15 additions & 3 deletions protos/google/cloud/texttospeech/v1/cloud_tts.proto
@@ -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 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 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 protos/protos.json

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

4 changes: 2 additions & 2 deletions src/v1/text_to_speech_client_config.json
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 cf7cb74

Please sign in to comment.