Flash AS3 - How to set high quality audio recording

 ̄綄美尐妖づ 提交于 2019-12-02 06:44:06

From the docs

Acceptable values are 5, 8, 11, 22, and 44

So enter one of those.

And it's measured in kHz, not kbps, also according to the docs

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:

  1. the audio codec used (NellyMoser's Asao or Speex)
  2. the Asao sample rate (mic.rate) / the Speex encode quality (mic.encodeQuality) .

NellyMoser's Asao

With Asao the sound will use from 11 to 88kbps depending on the sampling rate:

There's also a third factor with Nellymoser Asao:

When using the Nellymoser codec, one microphone might produce more bandwidth over against another.

Speex

With Speex the sound will use from 4 to 42kbps depending on the encoding quality (sampling rate is fixed at 16kHz with Speex):

From: 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!