0

I need to receive an audio stream, get a transcription then stream the transcription to another service, it could be translation or natural language API; the need is to process whe input voice stream continuously Is there anyone with idea/suggestions about how to pass the speech API output as input to another dowsnstream API?

4

1 回答 1

0

如果我们看这里,

https://cloud.google.com/speech-to-text/docs/streaming-recognize

我们发现了一些关于接收语音流到文本转换的有用信息。似乎发生的事情是注册一个回调,并且当处理翻译文本的“块”时,调用回调将翻译的音频作为文本表示传递。正是在这一点上,您现在拥有了一个文本单元,然后您将负责处理。根据您的描述,您似乎会调用下游 API 并传入接收到的文本。

于 2019-01-31T16:25:15.953 回答