Flash AS3 - How to set high quality audio recording

前端 未结 3 1930
误落风尘
误落风尘 2021-01-25 12:20

Currently, I\'m using

mic.rate = 100;

This only gives 63kbps.

Is it possible for Flash AS3 to set bitrate higher than 63kbps?

相关标签:
3条回答
  • 2021-01-25 12:56

    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;
    
    0 讨论(0)
  • 2021-01-25 13:00

    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

    0 讨论(0)
  • 2021-01-25 13:00

    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.

    0 讨论(0)
提交回复
热议问题