johnwcassidy
07-16-2008, 04:57 PM
I am attempting to set the sample rate of my microphone to a value that is not the default 8khz. Ideally, I would like to record it at 16khz however I do not believe this is currently supported. Is there any particular reason why the sample rates are restricted to 8, 11, 22 and 44?
additionally, when I attempt to set the rate using mic.rate = 44, for example, it does not actually save the stream at 44khz, but at an odd frequency at what i can guess to be around 65khz.
Is there anyway to record a stream at 16khz? Is there any reason why the streams would not being saved to 11, 22 or 44 khz when i attempt to set the rate in the actionscript?
very simple code of:
public var mic:Microphone = Microphone.getMicrophone();
private function init():void
{
mic.rate = 44;
//netstream and connection stuff
}
thanks!
additionally, when I attempt to set the rate using mic.rate = 44, for example, it does not actually save the stream at 44khz, but at an odd frequency at what i can guess to be around 65khz.
Is there anyway to record a stream at 16khz? Is there any reason why the streams would not being saved to 11, 22 or 44 khz when i attempt to set the rate in the actionscript?
very simple code of:
public var mic:Microphone = Microphone.getMicrophone();
private function init():void
{
mic.rate = 44;
//netstream and connection stuff
}
thanks!