Google Speech API v1beta1很慢吗? [英] Google Speech API v1beta1 very slow?

查看:58
本文介绍了Google Speech API v1beta1很慢吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当得知Google终于为开发人员发布了官方语音API时,我感到非常兴奋.我一直对Google的语音识别在Android,Chrome和其他产品中的出色表现感到惊讶.

I was super excited when learning that Google has finally released its official speech API for developers. I have always been amazed by how great Google's speech recognition works in Android, Chrome, and other products.

我创建了一个Google Cloud帐户,启用了语音API,并根据 Google语音API文档.精度极高,但速度却异常缓慢.一个18秒的音频文件将花费他们的引擎大约16秒钟来转录!Microsoft Bing Speech API只需3-4秒即可完成!

I created a Google Cloud account, enabled the speech API, and created a few testing scripts following the Google Speech API documentation. The accuracy is super high, but the speed is insanely slow. An 18-second audio file would take their engine around 16 seconds to transcribe! Microsoft Bing Speech API only needs 3-4 seconds to do it!

有人经历过吗?还是我的配置有问题?非常感谢您的帮助!

Has anyone experienced the same? Or is it a problem of my configurations? Any help is highly appreciated!

这是我使用的代码:

重击:

time curl "https://speech.googleapis.com/v1beta1/speech:syncrecognize?key={MY_API_KEY}" --header "Content-Type: application/json" --data '{"config":{"encoding":"FLAC","sample_rate":16000,"language_code":"en-US"},"audio":{"uri":"gs://accobot-speech/new_record.flac"}}'

推荐答案

到目前为止,此问题的最佳参考仍然是

To date, the best reference for this issue remains still the reply published in the issue tracker for the Google Platform.

这篇关于Google Speech API v1beta1很慢吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆