SpeechGrpcClient
class SpeechGrpcClient extends BaseStub
Service that implements Google Cloud Speech API.
Methods
No description
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
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.
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)
at line 42
SyncRecognize(SyncRecognizeRequest $argument, array $metadata = [], array $options = [])
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
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.
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).