Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class CustomPronunciationParams.
Pronunciation customization for a phrase.
Generated from protobuf messagegoogle.cloud.texttospeech.v1.CustomPronunciationParams
Namespace
Google \ Cloud \ TextToSpeech \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ phrase
string
The phrase to which the customization is applied. The phrase can be multiple words, such as proper nouns, but shouldn't span the length of the sentence.
↳ phonetic_encoding
int
The phonetic encoding of the phrase.
↳ pronunciation
string
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
getPhrase
The phrase to which the customization is applied.
The phrase can be multiple words, such as proper nouns, but shouldn't span
the length of the sentence.
Returns
Type
Description
string
hasPhrase
clearPhrase
setPhrase
The phrase to which the customization is applied.
The phrase can be multiple words, such as proper nouns, but shouldn't span
the length of the sentence.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPhoneticEncoding
The phonetic encoding of the phrase.
Returns
Type
Description
int
hasPhoneticEncoding
clearPhoneticEncoding
setPhoneticEncoding
The phonetic encoding of the phrase.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPronunciation
The pronunciation of the phrase. This must be in the phonetic encoding
specified above.
Returns
Type
Description
string
hasPronunciation
clearPronunciation
setPronunciation
The pronunciation of the phrase. This must be in the phonetic encoding
specified above.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Text-to-Speech V1 Client - Class CustomPronunciationParams (2.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.2 (latest)](/php/docs/reference/cloud-text-to-speech/latest/V1.CustomPronunciationParams)\n- [2.2.1](/php/docs/reference/cloud-text-to-speech/2.2.1/V1.CustomPronunciationParams)\n- [2.0.1](/php/docs/reference/cloud-text-to-speech/2.0.1/V1.CustomPronunciationParams)\n- [1.12.2](/php/docs/reference/cloud-text-to-speech/1.12.2/V1.CustomPronunciationParams)\n- [1.11.0](/php/docs/reference/cloud-text-to-speech/1.11.0/V1.CustomPronunciationParams)\n- [1.10.0](/php/docs/reference/cloud-text-to-speech/1.10.0/V1.CustomPronunciationParams)\n- [1.9.1](/php/docs/reference/cloud-text-to-speech/1.9.1/V1.CustomPronunciationParams)\n- [1.8.5](/php/docs/reference/cloud-text-to-speech/1.8.5/V1.CustomPronunciationParams)\n- [1.7.2](/php/docs/reference/cloud-text-to-speech/1.7.2/V1.CustomPronunciationParams)\n- [1.6.1](/php/docs/reference/cloud-text-to-speech/1.6.1/V1.CustomPronunciationParams)\n- [1.5.6](/php/docs/reference/cloud-text-to-speech/1.5.6/V1.CustomPronunciationParams)\n- [1.4.5](/php/docs/reference/cloud-text-to-speech/1.4.5/V1.CustomPronunciationParams) \nReference documentation and code samples for the Cloud Text-to-Speech V1 Client class CustomPronunciationParams.\n\nPronunciation customization for a phrase.\n\nGenerated from protobuf message `google.cloud.texttospeech.v1.CustomPronunciationParams`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ TextToSpeech \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPhrase\n\nThe phrase to which the customization is applied.\n\nThe phrase can be multiple words, such as proper nouns, but shouldn't span\nthe length of the sentence.\n\n### hasPhrase\n\n### clearPhrase\n\n### setPhrase\n\nThe phrase to which the customization is applied.\n\nThe phrase can be multiple words, such as proper nouns, but shouldn't span\nthe length of the sentence.\n\n### getPhoneticEncoding\n\nThe phonetic encoding of the phrase.\n\n### hasPhoneticEncoding\n\n### clearPhoneticEncoding\n\n### setPhoneticEncoding\n\nThe phonetic encoding of the phrase.\n\n### getPronunciation\n\nThe pronunciation of the phrase. This must be in the phonetic encoding\nspecified above.\n\n### hasPronunciation\n\n### clearPronunciation\n\n### setPronunciation\n\nThe pronunciation of the phrase. This must be in the phonetic encoding\nspecified above."]]