闪存录制声音本地 [英] Flash record sound locally

查看:176
本文介绍了闪存录制声音本地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Flex,我们可以记录声音从麦克风和本地存储以及后来上传?有没有任何相关的链接,这个请注明

Using flex,As can we record sound from microphone and store locally and and upload later?? Is there any relevant links to this please indicate

推荐答案

这是可能使用麦克风API SAMPLE_DATA事件录制音频。事件的数据属性是与音频数据的ByteArray。

It is possible to record audio using the Microphone API SAMPLE_DATA event. The data property of the event is a ByteArray with the audio data.

一个基于web的Flash应用程序可以在存储器这些数据样本复制到一个数据结构,并提示用户将数据保存到本地文件。 AIR应用将能够将数据写入到文件系统或SQL数据库直接

A web based Flash application could copy these data samples to a data structure in memory and prompt the user to save the data to a local file. An AIR application would be able to write the data to the file system or SQL database directly.

请参阅下面的链接在ActionScript从麦克风访问音频:

See the links below for accessing audio from the microphone in ActionScript:

  • http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d1d.html
  • http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Microphone.html

这可能有助于EN code以标准化格式的数据,以帮助阅读和编辑后(的 WAV PCM )。您也可以使用COM pression,以减少文件大小的传输(例如:的的Ogg Vorbis $从Adobe C $ CC)。

It may help to encode the data in a standardised format to help with reading and editing later (WAV or PCM). You may also want to use compression to reduce the file size for transmission (eg: Ogg Vorbis codec from Adobe).

这篇关于闪存录制声音本地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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