Generated from protobuf enum PHONETIC_ENCODING_X_SAMPA = 2;
PHONETIC_ENCODING_JAPANESE_YOMIGANA
Value: 3
For reading-to-pron conversion to work well, the pronunciation field
should only contain Kanji, Hiragana, and Katakana.
The pronunciation can also contain pitch accents.
The start of a pitch phrase is specified with ^ and the down-pitch
position is specified with !, for example:
phrase:端 pronunciation:^はし
phrase:箸 pronunciation:^は!し
phrase:橋 pronunciation:^はし!
We currently only support the Tokyo dialect, which allows at most one
down-pitch per phrase (i.e. at most one ! between ^).
Generated from protobuf enum PHONETIC_ENCODING_JAPANESE_YOMIGANA = 3;
For example: 朝阳, the pronunciation is "chao2 yang2". The number
represents the tone, and there is a space between syllables. Neutral
tones are represented by 5, for example 孩子 "hai2 zi5".
Generated from protobuf enum PHONETIC_ENCODING_PINYIN = 4;
[[["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 PhoneticEncoding (2.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.2 (latest)](/php/docs/reference/cloud-text-to-speech/latest/V1.CustomPronunciationParams.PhoneticEncoding)\n- [2.2.1](/php/docs/reference/cloud-text-to-speech/2.2.1/V1.CustomPronunciationParams.PhoneticEncoding)\n- [2.0.1](/php/docs/reference/cloud-text-to-speech/2.0.1/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.12.2](/php/docs/reference/cloud-text-to-speech/1.12.2/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.11.0](/php/docs/reference/cloud-text-to-speech/1.11.0/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.10.0](/php/docs/reference/cloud-text-to-speech/1.10.0/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.9.1](/php/docs/reference/cloud-text-to-speech/1.9.1/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.8.5](/php/docs/reference/cloud-text-to-speech/1.8.5/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.7.2](/php/docs/reference/cloud-text-to-speech/1.7.2/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.6.1](/php/docs/reference/cloud-text-to-speech/1.6.1/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.5.6](/php/docs/reference/cloud-text-to-speech/1.5.6/V1.CustomPronunciationParams.PhoneticEncoding)\n- [1.4.5](/php/docs/reference/cloud-text-to-speech/1.4.5/V1.CustomPronunciationParams.PhoneticEncoding) \nReference documentation and code samples for the Cloud Text-to-Speech V1 Client class PhoneticEncoding.\n\nThe phonetic encoding of the phrase.\n\nProtobuf type `google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ TextToSpeech \\\\ V1 \\\\ CustomPronunciationParams\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### PHONETIC_ENCODING_UNSPECIFIED\n\n Value: 0\n\nNot specified.\n\nGenerated from protobuf enum `PHONETIC_ENCODING_UNSPECIFIED = 0;`\n\n### PHONETIC_ENCODING_IPA\n\n Value: 1\n\nIPA, such as apple -\\\u003e ˈæpəl.\n\n\u003chttps://en.wikipedia.org/wiki/International_Phonetic_Alphabet\u003e\n\nGenerated from protobuf enum `PHONETIC_ENCODING_IPA = 1;`\n\n### PHONETIC_ENCODING_X_SAMPA\n\n Value: 2\n\nX-SAMPA, such as apple -\\\u003e \"{p@l\".\n\n\u003chttps://en.wikipedia.org/wiki/X-SAMPA\u003e\n\nGenerated from protobuf enum `PHONETIC_ENCODING_X_SAMPA = 2;`\n\n### PHONETIC_ENCODING_JAPANESE_YOMIGANA\n\n Value: 3\n\nFor reading-to-pron conversion to work well, the `pronunciation` field\nshould only contain Kanji, Hiragana, and Katakana.\n\nThe pronunciation can also contain pitch accents.\nThe start of a pitch phrase is specified with `^` and the down-pitch\nposition is specified with `!`, for example:\nphrase:端 pronunciation:\\^はし\nphrase:箸 pronunciation:\\^は!し\nphrase:橋 pronunciation:\\^はし!\nWe currently only support the Tokyo dialect, which allows at most one\ndown-pitch per phrase (i.e. at most one `!` between `^`).\n\nGenerated from protobuf enum `PHONETIC_ENCODING_JAPANESE_YOMIGANA = 3;`\n\n### PHONETIC_ENCODING_PINYIN\n\n Value: 4\n\nUsed to specify pronunciations for Mandarin words. See\n\u003chttps://en.wikipedia.org/wiki/Pinyin\u003e.\n\nFor example: 朝阳, the pronunciation is \"chao2 yang2\". The number\nrepresents the tone, and there is a space between syllables. Neutral\ntones are represented by 5, for example 孩子 \"hai2 zi5\".\n\nGenerated from protobuf enum `PHONETIC_ENCODING_PINYIN = 4;`"]]