public final class Voice
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Voice() |
| Modifier and Type | Method and Description |
|---|---|
Voice |
clone() |
java.util.List<java.lang.String> |
getLanguageCodes()
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-
editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
java.lang.String |
getName()
The name of this voice.
|
java.lang.Integer |
getNaturalSampleRateHertz()
The natural sample rate (in hertz) for this voice.
|
java.lang.String |
getSsmlGender()
The gender of this voice.
|
Voice |
set(java.lang.String fieldName,
java.lang.Object value) |
Voice |
setLanguageCodes(java.util.List<java.lang.String> languageCodes)
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-
editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
Voice |
setName(java.lang.String name)
The name of this voice.
|
Voice |
setNaturalSampleRateHertz(java.lang.Integer naturalSampleRateHertz)
The natural sample rate (in hertz) for this voice.
|
Voice |
setSsmlGender(java.lang.String ssmlGender)
The gender of this voice.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.util.List<java.lang.String> getLanguageCodes()
null for nonepublic Voice setLanguageCodes(java.util.List<java.lang.String> languageCodes)
languageCodes - languageCodes or null for nonepublic java.lang.String getName()
null for nonepublic Voice setName(java.lang.String name)
name - name or null for nonepublic java.lang.Integer getNaturalSampleRateHertz()
null for nonepublic Voice setNaturalSampleRateHertz(java.lang.Integer naturalSampleRateHertz)
naturalSampleRateHertz - naturalSampleRateHertz or null for nonepublic java.lang.String getSsmlGender()
null for nonepublic Voice setSsmlGender(java.lang.String ssmlGender)
ssmlGender - ssmlGender or null for nonepublic Voice set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Voice clone()
clone in class com.google.api.client.json.GenericJson