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.
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
1615syntax = "proto3" ;
1716
@@ -20,6 +19,7 @@ package google.cloud.texttospeech.v1;
2019import "google/api/annotations.proto" ;
2120import "google/api/client.proto" ;
2221import "google/api/field_behavior.proto" ;
22+ import "google/api/resource.proto" ;
2323
2424option cc_enable_arenas = true ;
2525option csharp_namespace = "Google.Cloud.TextToSpeech.V1" ;
@@ -29,6 +29,10 @@ option java_outer_classname = "TextToSpeechProto";
2929option java_package = "com.google.cloud.texttospeech.v1" ;
3030option php_namespace = "Google\\Cloud\\TextToSpeech\\V1" ;
3131option 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.
3438service 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.
0 commit comments