class Text extends Resource (View source)

The "text" collection of methods.

Typical usage is:

 $texttospeechService = new Google\Service\Texttospeech(...);
 $text = $texttospeechService->text;

Methods

synthesize(SynthesizeSpeechRequest $postBody, array $optParams = [])

Synthesizes speech synchronously: receive results after all text input has been processed. (text.synthesize)

Details

SynthesizeSpeechResponse synthesize(SynthesizeSpeechRequest $postBody, array $optParams = [])

Synthesizes speech synchronously: receive results after all text input has been processed. (text.synthesize)

Parameters

SynthesizeSpeechRequest $postBody
array $optParams

Optional parameters.

Return Value

SynthesizeSpeechResponse

Exceptions

Exception