FlashWavRecorder icon indicating copy to clipboard operation
FlashWavRecorder copied to clipboard

Recorded Sound Sped up (chipmunk sound)

Open lylepratt opened this issue 13 years ago • 7 comments

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?

lylepratt avatar Feb 07 '12 04:02 lylepratt

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 [email protected] To: dougyouch [email protected] 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

dougyouch avatar Feb 07 '12 13:02 dougyouch

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 [email protected] 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 [email protected] To: dougyouch [email protected] 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 avatar Feb 07 '12 14:02 lylepratt

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

lylepratt avatar Feb 07 '12 16:02 lylepratt

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

lylepratt avatar Apr 23 '12 02:04 lylepratt

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.

robinsmidsrod avatar Nov 17 '14 14:11 robinsmidsrod

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

michalstocki avatar Nov 17 '14 18:11 michalstocki

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

robinsmidsrod avatar Nov 18 '14 20:11 robinsmidsrod