【发布时间】:2019-06-21 16:23:26
【问题描述】:
几个月前,一切正常。我们使用 Speech-to-text 服务的 gRPC。我们发送音频文件,关闭语音客户端,稍后继续操作:
$speechClient->resumeOperation($this->operation, 'LongRunningRecognize');
^ 是文档中的这行代码产生了这个错误:
Error occurred during parsing: Class google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata hasn't been added to descriptor pool
^“描述符池”告诉我这是特定于 gRPC 和协议缓冲区的。
来自 composer.json:
"google/apiclient": "2.2.2",
"google/cloud": "0.72.0",
"google/protobuf": "3.6.0.1",
【问题讨论】:
标签: php protocol-buffers grpc google-cloud-speech