class SpeechGrpcClient extends BaseStub

Service that implements Google Cloud Speech API.

Methods

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

No description

SyncRecognize(SyncRecognizeRequest $argument, array $metadata = [], array $options = [])

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

AsyncRecognize(AsyncRecognizeRequest $argument, array $metadata = [], array $options = [])

Performs asynchronous speech recognition: receive results via the [google.longrunning.Operations] (/speech/reference/rest/v1beta1/operations#Operation) interface. Returns either an Operation.error or an Operation.response which contains an AsyncRecognizeResponse 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
SyncRecognize(SyncRecognizeRequest $argument, array $metadata = [], array $options = [])

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

Parameters

SyncRecognizeRequest $argument input argument
array $metadata metadata
array $options call options

at line 61
AsyncRecognize(AsyncRecognizeRequest $argument, array $metadata = [], array $options = [])

Performs asynchronous speech recognition: receive results via the [google.longrunning.Operations] (/speech/reference/rest/v1beta1/operations#Operation) interface. Returns either an Operation.error or an Operation.response which contains an AsyncRecognizeResponse message.

Parameters

AsyncRecognizeRequest $argument input argument
array $metadata metadata
array $options call options

at line 75
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