1 // Copyright 2022 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by aliasgen. DO NOT EDIT. 16 17 // Package texttospeech aliases all exported identifiers in package 18 // "cloud.google.com/go/texttospeech/apiv1/texttospeechpb". 19 // 20 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb. 21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md 22 // for more details. 23 package texttospeech 24 25 import ( 26 src "cloud.google.com/go/texttospeech/apiv1/texttospeechpb" 27 grpc "google.golang.org/grpc" 28 ) 29 30 // Deprecated: Please use consts in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 31 const ( 32 AudioEncoding_ALAW = src.AudioEncoding_ALAW 33 AudioEncoding_AUDIO_ENCODING_UNSPECIFIED = src.AudioEncoding_AUDIO_ENCODING_UNSPECIFIED 34 AudioEncoding_LINEAR16 = src.AudioEncoding_LINEAR16 35 AudioEncoding_MP3 = src.AudioEncoding_MP3 36 AudioEncoding_MULAW = src.AudioEncoding_MULAW 37 AudioEncoding_OGG_OPUS = src.AudioEncoding_OGG_OPUS 38 CustomVoiceParams_OFFLINE = src.CustomVoiceParams_OFFLINE 39 CustomVoiceParams_REALTIME = src.CustomVoiceParams_REALTIME 40 CustomVoiceParams_REPORTED_USAGE_UNSPECIFIED = src.CustomVoiceParams_REPORTED_USAGE_UNSPECIFIED 41 SsmlVoiceGender_FEMALE = src.SsmlVoiceGender_FEMALE 42 SsmlVoiceGender_MALE = src.SsmlVoiceGender_MALE 43 SsmlVoiceGender_NEUTRAL = src.SsmlVoiceGender_NEUTRAL 44 SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED = src.SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED 45 ) 46 47 // Deprecated: Please use vars in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 48 var ( 49 AudioEncoding_name = src.AudioEncoding_name 50 AudioEncoding_value = src.AudioEncoding_value 51 CustomVoiceParams_ReportedUsage_name = src.CustomVoiceParams_ReportedUsage_name 52 CustomVoiceParams_ReportedUsage_value = src.CustomVoiceParams_ReportedUsage_value 53 File_google_cloud_texttospeech_v1_cloud_tts_proto = src.File_google_cloud_texttospeech_v1_cloud_tts_proto 54 SsmlVoiceGender_name = src.SsmlVoiceGender_name 55 SsmlVoiceGender_value = src.SsmlVoiceGender_value 56 ) 57 58 // Description of audio data to be synthesized. 59 // 60 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 61 type AudioConfig = src.AudioConfig 62 63 // Configuration to set up audio encoder. The encoding determines the output 64 // audio format that we'd like. 65 // 66 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 67 type AudioEncoding = src.AudioEncoding 68 69 // Description of the custom voice to be synthesized. 70 // 71 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 72 type CustomVoiceParams = src.CustomVoiceParams 73 74 // The usage of the synthesized audio. You must report your honest and correct 75 // usage of the service as it's regulated by contract and will cause 76 // significant difference in billing. 77 // 78 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 79 type CustomVoiceParams_ReportedUsage = src.CustomVoiceParams_ReportedUsage 80 81 // The top-level message sent by the client for the `ListVoices` method. 82 // 83 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 84 type ListVoicesRequest = src.ListVoicesRequest 85 86 // The message returned to the client by the `ListVoices` method. 87 // 88 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 89 type ListVoicesResponse = src.ListVoicesResponse 90 91 // Gender of the voice as described in [SSML voice 92 // element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). 93 // 94 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 95 type SsmlVoiceGender = src.SsmlVoiceGender 96 97 // Contains text input to be synthesized. Either `text` or `ssml` must be 98 // supplied. Supplying both or neither returns 99 // [google.rpc.Code.INVALID_ARGUMENT][]. The input size is limited to 5000 100 // characters. 101 // 102 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 103 type SynthesisInput = src.SynthesisInput 104 type SynthesisInput_Ssml = src.SynthesisInput_Ssml 105 type SynthesisInput_Text = src.SynthesisInput_Text 106 107 // The top-level message sent by the client for the `SynthesizeSpeech` method. 108 // 109 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 110 type SynthesizeSpeechRequest = src.SynthesizeSpeechRequest 111 112 // The message returned to the client by the `SynthesizeSpeech` method. 113 // 114 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 115 type SynthesizeSpeechResponse = src.SynthesizeSpeechResponse 116 117 // TextToSpeechClient is the client API for TextToSpeech service. For 118 // semantics around ctx use and closing/ending streaming RPCs, please refer to 119 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 120 // 121 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 122 type TextToSpeechClient = src.TextToSpeechClient 123 124 // TextToSpeechServer is the server API for TextToSpeech service. 125 // 126 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 127 type TextToSpeechServer = src.TextToSpeechServer 128 129 // UnimplementedTextToSpeechServer can be embedded to have forward compatible 130 // implementations. 131 // 132 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 133 type UnimplementedTextToSpeechServer = src.UnimplementedTextToSpeechServer 134 135 // Description of a voice supported by the TTS service. 136 // 137 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 138 type Voice = src.Voice 139 140 // Description of which voice to use for a synthesis request. 141 // 142 // Deprecated: Please use types in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 143 type VoiceSelectionParams = src.VoiceSelectionParams 144 145 // Deprecated: Please use funcs in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 146 func NewTextToSpeechClient(cc grpc.ClientConnInterface) TextToSpeechClient { 147 return src.NewTextToSpeechClient(cc) 148 } 149 150 // Deprecated: Please use funcs in: cloud.google.com/go/texttospeech/apiv1/texttospeechpb 151 func RegisterTextToSpeechServer(s *grpc.Server, srv TextToSpeechServer) { 152 src.RegisterTextToSpeechServer(s, srv) 153 } 154