Speech to text api – 使用自定义词汇表

huangapple go评论49阅读模式
英文:

Speech to text api - use custom vocabulary

问题

我想要我的语音转文本API能够识别语音,但只输出我提供的词汇列表中的单词。这是因为在我的应用程序中,我只想识别特定的命令,而不是常规的语音,但有时这些命令会被误认为是常规语音,然后输出与命令字符串不同,从而损害了应用程序。

是否有任何现有的语音转文本API/包可以仅将自定义词汇作为输出,而不输出其他内容?

我尝试过Google API和Web语音API,但它们只偏向于自定义词汇,也可能输出其他单词。

谢谢。

英文:

I would like my speech to text api to recognize speech, but only output words from a list I provide it. This is because in my app I only want to recognize certain commands, and not regular speech, but the commands sometimes get mistaken for regular speech and then the output is different than the command string, ruining the app.
Is there a way with any existing speech-to-text API/package to use only custom vocabulary as output and nothing else?

I tried the google api and the web speech api but it only favors custom vocabulary, it could also output other words.

Thanks

答案1

得分: 0

Based on my understanding,语音转文本 API 或包可以识别整个语音。一种可能的方法是进行文本比较,将语音文本与您的自定义命令进行比较。

英文:

based on my understanding speech-text apis or packages recognise the entire speech. One possible way it to do text comparison. comparing the speech text with your custom commands.

huangapple
  • 本文由 发表于 2023年5月13日 22:03:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76243127.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定