Cloud Text-to-Speech V1 Client - Class Turn (2.6.0)

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

Constructor.

Parameters
Name
Description
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.

Returns
Type
Description
string

setSpeaker

Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getText

Required. The text to speak.

Returns
Type
Description
string

setText

Required. The text to speak.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: