class Speech extends Resource (View source)

The "speech" collection of methods.

Typical usage is:

 $speechService = new Google\Service\Speech(...);
 $speech = $speechService->speech;

Methods

longrunningrecognize(LongRunningRecognizeRequest $postBody, array $optParams = [])

Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an Operation.error or an Operation.response which contains a LongRunningRecognizeResponse message. For more information on asynchronous speech recognition, see the how-to.

recognize(RecognizeRequest $postBody, array $optParams = [])

Performs synchronous speech recognition: receive results after all audio has been sent and processed. (speech.recognize)

Details

Operation longrunningrecognize(LongRunningRecognizeRequest $postBody, array $optParams = [])

Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an Operation.error or an Operation.response which contains a LongRunningRecognizeResponse message. For more information on asynchronous speech recognition, see the how-to.

(speech.longrunningrecognize)

Parameters

LongRunningRecognizeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

RecognizeResponse recognize(RecognizeRequest $postBody, array $optParams = [])

Performs synchronous speech recognition: receive results after all audio has been sent and processed. (speech.recognize)

Parameters

RecognizeRequest $postBody
array $optParams

Optional parameters.

Return Value

RecognizeResponse

Exceptions

Exception