com.google.api.services.texttospeech.v1.model.CustomPronunciationParams Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.texttospeech.v1.model;
/**
* Pronunciation customization for a phrase.
*
* 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
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class CustomPronunciationParams extends com.google.api.client.json.GenericJson {
/**
* The phonetic encoding of the phrase.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String phoneticEncoding;
/**
* The phrase to which the customization will be applied. The phrase can be multiple words (in the
* case of proper nouns etc), but should not span to a whole sentence.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String phrase;
/**
* The pronunciation of the phrase. This must be in the phonetic encoding specified above.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String pronunciation;
/**
* The phonetic encoding of the phrase.
* @return value or {@code null} for none
*/
public java.lang.String getPhoneticEncoding() {
return phoneticEncoding;
}
/**
* The phonetic encoding of the phrase.
* @param phoneticEncoding phoneticEncoding or {@code null} for none
*/
public CustomPronunciationParams setPhoneticEncoding(java.lang.String phoneticEncoding) {
this.phoneticEncoding = phoneticEncoding;
return this;
}
/**
* The phrase to which the customization will be applied. The phrase can be multiple words (in the
* case of proper nouns etc), but should not span to a whole sentence.
* @return value or {@code null} for none
*/
public java.lang.String getPhrase() {
return phrase;
}
/**
* The phrase to which the customization will be applied. The phrase can be multiple words (in the
* case of proper nouns etc), but should not span to a whole sentence.
* @param phrase phrase or {@code null} for none
*/
public CustomPronunciationParams setPhrase(java.lang.String phrase) {
this.phrase = phrase;
return this;
}
/**
* The pronunciation of the phrase. This must be in the phonetic encoding specified above.
* @return value or {@code null} for none
*/
public java.lang.String getPronunciation() {
return pronunciation;
}
/**
* The pronunciation of the phrase. This must be in the phonetic encoding specified above.
* @param pronunciation pronunciation or {@code null} for none
*/
public CustomPronunciationParams setPronunciation(java.lang.String pronunciation) {
this.pronunciation = pronunciation;
return this;
}
@Override
public CustomPronunciationParams set(String fieldName, Object value) {
return (CustomPronunciationParams) super.set(fieldName, value);
}
@Override
public CustomPronunciationParams clone() {
return (CustomPronunciationParams) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy