Google Speech API实时识别

问题描述 投票:0回答:1

我们正在研究一个java应用程序。我会使用Google Cloud Speech库,但我们的应用程序基于osgi,所以我宁愿使用Google Cloud Speech Rest API。我想知道是否有可能用这个休息api进行某种生活方式的认可。我可以发出单个请求,但我想流式传输我的audiodata并随着时间的推移处理结果。

java rest osgi google-speech-api
1个回答
0
投票

来自Google Cloud Speech API文档:

流式语音识别允许您将音频流式传输到云语音到文本,并在处理音频时实时接收流式语音识别结果。另请参阅流式语音识别请求的音频限制。流式语音识别仅通过gRPC提供。

如果你想在OSGI中使用这个API,你必须自己操纵清单。你可能会遇到一些问题,因为grpc引用了SPI(ServiceLoader / Provider)。如果您在使用此服务时遇到问题,我建议您使用Apache Aries SPI Fly(http://aries.apache.org/modules/spi-fly.html),

© www.soinside.com 2019 - 2024. All rights reserved.