Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 HTML5/JavaScript 中访问麦克风?
它计划用于音频流,而不是录制。因此,无需写入文件等,而只是流式传输麦克风输入。
有一个音频 API 和 getUserMedia()。目前,似乎无法获取音频。有没有办法或解决方法?
如果您在输入字段中添加“x-webkit-speech”,我相信所有 Web 工具包浏览器都会添加启用音频输入的 HTML5 音频图标。
<input type="text" name="query" spellcheck="false" placeholder="Search the Site" tabindex="1" x-webkit-speech>