Package com.google.cloud.texttospeech.v1
Interface VoiceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Voice,Voice.Builder
@Generated
public interface VoiceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetLanguageCodes(int index) The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.com.google.protobuf.ByteStringgetLanguageCodesBytes(int index) The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.intThe languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.getName()The name of this voice.com.google.protobuf.ByteStringThe name of this voice.intThe natural sample rate (in hertz) for this voice.The gender of this voice.intThe gender of this voice.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getLanguageCodesList
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;- Returns:
- A list containing the languageCodes.
-
getLanguageCodesCount
int getLanguageCodesCount()The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;- Returns:
- The count of languageCodes.
-
getLanguageCodes
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;- Parameters:
index- The index of the element to return.- Returns:
- The languageCodes at the given index.
-
getLanguageCodesBytes
com.google.protobuf.ByteString getLanguageCodesBytes(int index) The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languageCodes at the given index.
-
getName
String getName()The name of this voice. Each distinct voice has a unique name.
string name = 2;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of this voice. Each distinct voice has a unique name.
string name = 2;- Returns:
- The bytes for name.
-
getSsmlGenderValue
int getSsmlGenderValue()The gender of this voice.
.google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3;- Returns:
- The enum numeric value on the wire for ssmlGender.
-
getSsmlGender
SsmlVoiceGender getSsmlGender()The gender of this voice.
.google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3;- Returns:
- The ssmlGender.
-
getNaturalSampleRateHertz
int getNaturalSampleRateHertz()The natural sample rate (in hertz) for this voice.
int32 natural_sample_rate_hertz = 4;- Returns:
- The naturalSampleRateHertz.
-