class SpeechGrpcClient extends BaseStub

Service that implements Google Cloud Speech API.

Methods

__construct(string $hostname, array $opts, Channel $channel = null)

No description

Recognize(RecognizeRequest $argument, array $metadata = [], array $options = [])

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

LongRunningRecognize(LongRunningRecognizeRequest $argument, array $metadata = [], array $options = [])

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.

StreamingRecognize(array $metadata = [], array $options = [])

Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).

Details

at line 31
__construct(string $hostname, array $opts, Channel $channel = null)

Parameters

string $hostname hostname
array $opts channel options
Channel $channel (optional) re-use channel object

at line 42
Recognize(RecognizeRequest $argument, array $metadata = [], array $options = [])

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

Parameters

RecognizeRequest $argument input argument
array $metadata metadata
array $options call options

at line 59
LongRunningRecognize(LongRunningRecognizeRequest $argument, array $metadata = [], array $options = [])

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.

Parameters

LongRunningRecognizeRequest $argument input argument
array $metadata metadata
array $options call options

at line 73
StreamingRecognize(array $metadata = [], array $options = [])

Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).

Parameters

array $metadata metadata
array $options call options