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

问题描述

使用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

推荐答案

可以使用 Microphone API SAMPLE_DATA 事件录制音频.事件的 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:

以标准化格式对数据进行编码可能有助于以后阅读和编辑(WAVa> 或 PCM).您可能还想使用压缩来减小传输文件的大小(例如:Ogg Vorbis来自 Adob​​e 的编解码器).

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).

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

07-24 02:14