Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class SynthesisInput.
Contains text input to be synthesized. Either text
or ssml
must be
supplied. Supplying both or neither returns
google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000
characters.
Generated from protobuf message google.cloud.texttospeech.v1.SynthesisInput
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text |
string
The raw text to be synthesized. |
↳ ssml |
string
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see SSML. |
getText
The raw text to be synthesized.
Generated from protobuf field string text = 1;
Returns | |
---|---|
Type | Description |
string |
hasText
setText
The raw text to be synthesized.
Generated from protobuf field string text = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSsml
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see SSML.
Generated from protobuf field string ssml = 2;
Returns | |
---|---|
Type | Description |
string |
hasSsml
setSsml
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see SSML.
Generated from protobuf field string ssml = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInputSource
Returns | |
---|---|
Type | Description |
string |