Send feedback
Cloud Text-to-Speech V1 Client - Class Turn (2.7.0) Stay organized with collections
Save and categorize content based on your preferences.
2.7.0 (latest)
2.6.0
2.5.1
2.4.0
2.3.0
2.2.2
2.0.1
1.12.2
1.11.0
1.10.0
1.9.1
1.8.5
1.7.2
1.6.1
1.5.6
1.4.5
Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class Turn.
A multi-speaker turn.
Generated from protobuf message google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn
Namespace
Google \ Cloud \ TextToSpeech \ V1 \ MultiSpeakerMarkup
Methods
__construct
data
array
Optional. Data for populating the Message object.
↳ speaker
string
Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.
↳ text
string
Required. The text to speak.
getSpeaker
Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
to documentation for available speakers.
setSpeaker
Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
to documentation for available speakers.
getText
Required. The text to speak.
setText
Required. The text to speak.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-18 UTC.
Need to tell us more?
[[["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 2026-03-18 UTC."],[],[]]