[[["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 Voice (2.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.2 (latest)](/php/docs/reference/cloud-text-to-speech/latest/V1.Voice)\n- [2.2.1](/php/docs/reference/cloud-text-to-speech/2.2.1/V1.Voice)\n- [2.0.1](/php/docs/reference/cloud-text-to-speech/2.0.1/V1.Voice)\n- [1.12.2](/php/docs/reference/cloud-text-to-speech/1.12.2/V1.Voice)\n- [1.11.0](/php/docs/reference/cloud-text-to-speech/1.11.0/V1.Voice)\n- [1.10.0](/php/docs/reference/cloud-text-to-speech/1.10.0/V1.Voice)\n- [1.9.1](/php/docs/reference/cloud-text-to-speech/1.9.1/V1.Voice)\n- [1.8.5](/php/docs/reference/cloud-text-to-speech/1.8.5/V1.Voice)\n- [1.7.2](/php/docs/reference/cloud-text-to-speech/1.7.2/V1.Voice)\n- [1.6.1](/php/docs/reference/cloud-text-to-speech/1.6.1/V1.Voice)\n- [1.5.6](/php/docs/reference/cloud-text-to-speech/1.5.6/V1.Voice)\n- [1.4.5](/php/docs/reference/cloud-text-to-speech/1.4.5/V1.Voice) \nReference documentation and code samples for the Cloud Text-to-Speech V1 Client class Voice.\n\nDescription of a voice supported by the TTS service.\n\nGenerated from protobuf message `google.cloud.texttospeech.v1.Voice`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ TextToSpeech \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLanguageCodes\n\nThe languages that this voice supports, expressed as\n[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.\n\n\"en-US\", \"es-419\", \"cmn-tw\").\n\n### setLanguageCodes\n\nThe languages that this voice supports, expressed as\n[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.\n\n\"en-US\", \"es-419\", \"cmn-tw\").\n\n### getName\n\nThe name of this voice. Each distinct voice has a unique name.\n\n### setName\n\nThe name of this voice. Each distinct voice has a unique name.\n\n### getSsmlGender\n\nThe gender of this voice.\n\n### setSsmlGender\n\nThe gender of this voice.\n\n### getNaturalSampleRateHertz\n\nThe natural sample rate (in hertz) for this voice.\n\n### setNaturalSampleRateHertz\n\nThe natural sample rate (in hertz) for this voice."]]