chrome语音识别WebKitSpeechRecognition()不接受伪造音频设备的输入-假音频捕获使用文件或音频文件 [英] chrome speech recognition WebKitSpeechRecognition() not accepting input of fake audio device --use-file-for-fake-audio-capture or audio file

本文介绍了chrome语音识别WebKitSpeechRecognition()不接受伪造音频设备的输入-假音频捕获使用文件或音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将chrome语音识别WebKitSpeechRecognition()与音频文件的输入一起使用以进行测试.我可以使用虚拟麦克风,但这确实很棘手,很难通过自动化实现,但是当我对其进行测试时,一切正常,语音识别将音频文件转换为文本.现在我想使用以下chrome参数:

I would like to use chrome speech recognition WebKitSpeechRecognition() with the input of an audio file for testing purposes. I could use a virtual microphone but this is really hacky and hard to implement with automation, but when I tested it everything worked fine and the speechrecognition converted my audio file to text. now I wanted to use the following chrome arguments:

--use-file-for-fake-audio-capture="C:/url/to/audio.wav"
--use-fake-device-for-media-stream
--use-fake-ui-for-media-stream

例如,这在录音机站点上运行良好,当我重放录音时,我可以听到音频文件的播放.但是由于某些原因,当我尝试在chrome的WebKitSpeechRecognition上使用它时,它不会使用假的音频设备,而是使用我的实际麦克风.有什么办法可以解决此问题或在网站上测试我的音频文件?我正在使用C#,在自动添加,管理和配置虚拟音频设备方面,我找不到真正有用的信息.我可以采取什么方法?

This worked fine on voice recorder sites for example and I could hear the audio file play when I replayed the recording. But for some reason when I try to use this on WebKitSpeechRecognition of chrome then it doesn't use the fake audio device but instead my actual microphone. Is there any way I can fix this or test my audio files on the website? I am using C# and I couldn't really find any useful info on automatically adding, managing and configuring virtual audio devices. What approaches could I take?

谢谢.

推荐答案

事实证明这是不可能的,因为chrome和google检查您是否使用的是假麦克风,它们是专门为防止此类行为而设计的,因此人们无法发表言论自由的文字. Google提供了收费的api(每月前60分钟免费)

Well it turns out this is not possible because chrome and google check if you are using a fake mic ect, they do this specifically to prevent this kind of behavior so people cannot get free speech to text. There is a paid api available from google (first 60 minutes per month are free)

这篇关于chrome语音识别WebKitSpeechRecognition()不接受伪造音频设备的输入-假音频捕获使用文件或音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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