简体   繁体   English

在不实际使用麦克风的情况下测试音频输入

[英]Testing Audio Input without actually using microphone

I'm trying to develop a site that uses Annyang.js ( https://www.talater.com/annyang/ ) but I also just got my wisdom teeth taken out. 我正在尝试开发一个使用Annyang.js( https://www.talater.com/annyang/ )的网站,但是我也只是想尽办法。 So the problem is, I don't feel like saying words every time I want to test my site. 所以问题是,我不想每次都想测试我的网站时都说几句话。 (ouch) (哎哟)

Additionally, I anticipate trying to develop in public places or places like libraries. 此外,我希望尝试在公共场所或图书馆等地方进行开发。 Is there anyway I can force an input in the microphone without speaking into the microphone? 无论如何,我可以在不对着麦克风讲话的情况下强制输入麦克风吗?

I found this chrome flag " --use-fake-device-for-media-stream " exists. 我发现此镀铬标记“ --use-fake-device-for-media-stream”存在。 But when I put it in the command line in chrome, it did not work. 但是,当我将其放在chrome命令行中时,它不起作用。 "Syntax error: unexpected error for ". “语法错误:“的意外错误。

How can I test audio input by just inputting spoken commands instead of actually saying them and/or properly use the chrome flag? 如何仅通过输入语音命令而不是实际说出语音命令和/或正确使用chrome标志来测试音频输入?

Hmm, that command should be working for you. 嗯,该命令应该对您有用。 Make sure you're typing in the correct command. 确保输入正确的命令。 I'm using OSX but here is my exact command: 我正在使用OSX,但这是我的确切命令:

/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --use-fake-device-for-media-stream

You may need to close all running instances of chrome. 您可能需要关闭所有正在运行的chrome实例。

You can also try typing chrome://flags/ into your navbar to see what other options may be available. 您也可以尝试在导航栏中输入chrome://flags/以查看其他可用选项。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Web 音频 API 录制来自麦克风的低音量输入 - Record Low Volume Input from Microphone using Web Audio API 所见即所得的编辑器,实际上不使用html输入吗? - WYSIWYG editor without actually using html input? 分析来自麦克风Javascript的音频输入 - Analyze audio input from microphone Javascript Javascript - 将录制的音频流式传输为麦克风输入 - Javascript - Streaming a recorded audio as microphone input 来自特定麦克风的Web Audio Api输入 - Web Audio Api input from specific microphone 使用Web音频API分析来自麦克风的输入(将MediaStreamSource转换为BufferSource) - Using web audio api for analyzing input from microphone (convert MediaStreamSource to BufferSource) 使用 Cordova 和 JavaScript 从安卓麦克风获取音频数据(不带 getUserMedia) - Obtaining audio data from android microphone using Cordova and JavaScript (without getUserMedia) 使用带有HTML5的用户麦克风录制音频 - Record Audio Using the Users Microphone with HTML5 使用AudioContext将麦克风音频流传输到扬声器 - Stream microphone audio to speakers using AudioContext Web Audio API Analyzer节点不使用麦克风输入 - Web Audio API Analyser Node Not Working With Microphone Input
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM