如何在Chrome扩展中录制音频? [英] How to record audio in a Chrome Extension?

查看:272
本文介绍了如何在Chrome扩展中录制音频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置Chrome扩展程序以录制麦克风音频的最简单方法是什么?


  • 我看到有一个工作实验性语音输入API ,但您怎么没有访问录制的文件?看起来好像挂钩应该很简单,因为它是该过程的早期阶段,不是吗?特别是因为还有一个文本到语音的API,所以你可以有效地记录文本,然后让计算机说出来,但除非你想要一个标准的语音,多么蹩脚,多余且容易出错? / p>


  • 然后,似乎有像这样的闪存解决方案,但是如何在Chrome扩展中使用它,而无需设置任何服务器端? (因为我实际上并不需要向服务器发送任何东西 - 这都是本地和客户端)。

  • NPAPI是否可能?有没有这样的插件现成?

  • https://stackoverflow.com/questions/4227313/audio-capturing-with-html5\">HTML5尚未准备好,它似乎),但我欢迎任何功能和实施简单,并挂钩到铬扩展。

    解决方案

    最后,出现了一个本地解决方案:介绍getUserMedia


    What's the simplest way to setup a chrome extension to record audio from the microphone?

    • I see there is a working experimental speech input API but how come you don't have access to the recorded file? Seems like hooking up into that should be simple enough, as it's a step earlier in the process, no? Especially as there is also a text-to-speech API, so you could effectively record into text and then have the computer speak it back out, but unless you want a standard voice, how lame, redundant and prone to error is that?

    • Then there seem to be flash solutions like this but how can I use that in a chrome extension without having to setup anything server-side? (since I don't actually need to send anything to a server--it's all local and client-side)

    • Is NPAPI a possibility? Is there such a plugin ready-made?

    Don't know of other possible alternatives (HTML5 isn't ready yet, it seems) but I welcome anything functional and simple to implement and hook into a chrome extension.

    解决方案

    Finally a native solution appeared: Introducing getUserMedia

    这篇关于如何在Chrome扩展中录制音频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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