michalstocki / FlashWavRecorder

Simple flash file for recording audio and saving as a WAV
http://michalstocki.github.io/FlashWavRecorder/html/
MIT License
242 stars 108 forks source link

Recorded Sound Sped up (chipmunk sound) #3

Open lylepratt opened 12 years ago

lylepratt commented 12 years ago

First of all, great work! I've been looking for something like this. However, when I record audio with it, the sound always plays back really sped up, or in other words, it sounds like a chipmunk. Any idea why this is happening?

dougyouch commented 12 years ago

It only supports 44 and 22 Hz. If you are setting the frequency less than that you will have issues. I have been meaning to add 11, 8, 5 Hz support. Just need to find a formula to convert those frequency to 44 Hz for proper playback. 22 is simple because you just double up on the bytes.

Doug


From: Lyle Pratt reply@reply.github.com To: dougyouch dyouch5@yahoo.com Sent: Monday, February 6, 2012 11:19 PM Subject: [FlashWavRecorder] Recorded Sound Sped up (chipmunk sound) (#3)

First of all, great work! I've been looking for something like this. However, when I record audio with it, the sound always plays back really sped up, or in other words, it sounds like a chipmunk. Any idea why this is happening?


Reply to this email directly or view it on GitHub: https://github.com/cykod/FlashWavRecorder/issues/3

lylepratt commented 12 years ago

I did not change any settings. I only tried the demo on Gitbub. Could that still be the issue?

-Lyle

On Feb 7, 2012, at 7:52 AM, dougyouch reply@reply.github.com wrote:

It only supports 44 and 22 Hz. If you are setting the frequency less than that you will have issues. I have been meaning to add 11, 8, 5 Hz support. Just need to find a formula to convert those frequency to 44 Hz for proper playback. 22 is simple because you just double up on the bytes.

Doug


From: Lyle Pratt reply@reply.github.com To: dougyouch dyouch5@yahoo.com Sent: Monday, February 6, 2012 11:19 PM Subject: [FlashWavRecorder] Recorded Sound Sped up (chipmunk sound) (#3)

First of all, great work! I've been looking for something like this. However, when I record audio with it, the sound always plays back really sped up, or in other words, it sounds like a chipmunk. Any idea why this is happening?


Reply to this email directly or view it on GitHub: https://github.com/cykod/FlashWavRecorder/issues/3


Reply to this email directly or view it on GitHub: https://github.com/cykod/FlashWavRecorder/issues/3#issuecomment-3848101

lylepratt commented 12 years ago

I just tested on a macbook pro and it does the same thing. No changes to code at all.

lylepratt commented 12 years ago

Just so you know. This separate project, which also records sound via Flash experiences the same issue: https://github.com/jwagener/recorder.js/issues/3

robinsmidsrod commented 9 years ago

Research conducted elsewhere (by @lylepratt) seems to indicate adding this.recorder.mic = SoundCodec.NELLYMOSER; in RecorderJSInterface.as:configureMicrophone() should avoid this issue.

If you have another Flash application running in a different browser tab that use the microphone and change the codec, the instance you receive from Microphone.getMicrophone() doesn't have the codec set to Nellymoser, even though the documentation says it should always have that.

michalstocki commented 9 years ago

@robinsmidsrod great thanks for your hint. This issue grew old from February of 2012 :smile:

robinsmidsrod commented 9 years ago

@michalstocki I'm just happy that someone was able to figure out what the real problem was. I've already patched my own version and is currently testing it to see if this change indeed fixes the problem. I've not yet confirmed it, and would appreciate feedback if any of you are able to reproduce it and confirm that this is indeed a proper fix.