简体   繁体   English

Flash AS3-如何设置高质量的录音

[英]Flash AS3 - How to set high quality audio recording

Currently, I'm using 目前,我正在使用

mic.rate = 100;

This only gives 63kbps. 这仅提供63kbps。

Is it possible for Flash AS3 to set bitrate higher than 63kbps? Flash AS3是否可以将比特率设置为高于63kbps?

From the docs 来自文档

Acceptable values are 5, 8, 11, 22, and 44 可接受的值为5、8、11、22和44

So enter one of those. 因此,输入其中之一。

And it's measured in kHz, not kbps, also according to the docs 根据文档,它以kHz而不是kbps为单位

It's flash. 快闪了 Great quality also depends on users' hardware. 高质量还取决于用户的硬件。 You didn't post full settings for your microphone. 您没有发布麦克风的完整设置。 Also value that you are using isn't valid. 同样,您使用的值无效。

Here a small snippet, for mic settings, that will give you good enough results: 这是一个用于麦克风设置的小片段,它将为您带来足够好的效果:

var micOptions : MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions();
micOptions.echoPath = 128;
micOptions.mode = MicrophoneEnhancedMode.FULL_DUPLEX;
micOptions.nonLinearProcessing = true;
microphone.setSilenceLevel(0);
microphone.rate = 44;
microphone.enhancedOptions = micOptions;

The bit rate (kbps) depends on: 比特率(kbps)取决于:

  1. the audio codec used ( NellyMoser's Asao or Speex ) 使用的音频编解码器( NellyMoser的AsaoSpeex
  2. the Asao sample rate (mic.rate) / the Speex encode quality (mic.encodeQuality) . Asao采样率(mic.rate)/ Speex编码质量(mic.encodeQuality)。

NellyMoser's Asao NellyMoser的朝圣

With Asao the sound will use from 11 to 88kbps depending on the sampling rate: 使用Asao时,声音将使用11至88kbps,具体取决于采样率:

在此处输入图片说明

There's also a third factor with Nellymoser Asao: Nellymoser Asao还有另一个因素:

When using the Nellymoser codec, one microphone might produce more bandwidth over against another. 使用Nellymoser编解码器时,一个麦克风可能比另一个麦克风产生更多的带宽。

Speex 斯派克斯

With Speex the sound will use from 4 to 42kbps depending on the encoding quality (sampling rate is fixed at 16kHz with Speex): 使用Speex时,声音将使用4到42kbps的速度,具体取决于编码质量(使用Speex时,采样率固定为16kHz):

在此处输入图片说明

From: http://audior.ec/blog/audio-quality-and-bitrate-in-flash-as3-web-apps/ 来自: http : //audior.ec/blog/audio-quality-and-bitrate-in-flash-as3-web-apps/

These bitrates should reflect in the .flv where the audio is stored/recorded. 这些比特率应反映在存储/录制音频的.flv中。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM