Hi,
i am setting microphone rate property to 44, but it is switched to 16, is there any specific way to set rate in afcs.
Thanks
Atul
Views
Replies
Total Likes
Hi ,
This is according to Player Microphone docs :
IF YOU ARE USING THE SPEEX CODEC (MICROPHONE.CODEC = SOUNDCODEC.SPEEX) FOR FLASH PLAYER 10 AND AIR 1.5 OR LATER, THE DEFAULT RATE VALUE IS 16KHZ. IF YOU USE THE SPEEX CODEC AND THEN CHANGE THE CODEC VALUE TO NELLYMOSER (MICROPHONE.CODEC = SOUNDCODEC.NELLYMOSER), THE RATE CONTINUES TO BE SET TO 16KHZ UNTIL YOU EXPLICITLY SET THE RATE TO A NEW VALUE. TO RECEIVE AUDIO USING FLASH PLAYER RELEASES BEFORE FLASH PLAYER 10 AND AIR RELEASES BEFORE AIR 1.5, CHANGE BOTH THE CODEC AND THE RATE VALUES WHEN YOU PUBLISH THE AUDIO.
We(LCCS) set the default when you create the Mic the first time to 11 kHz and that’s what player 9 can support maximum. But if you are using player 10 or later and set explicitly , it shouldn't be problem unless you are switching from one codec to another which then resets to 16.
So, check if you are switching codecs and if that’s the case, after switch , set it back again explicitly to 44.
You can look for reference at the MicrophoneManager.as code in player 9 source for any details. It’s similar to player 10.
Hope this helps
Thanks
Hironmay Basu
Views
Replies
Total Likes
Hi,
Thanks for the quick reply.
I am setting codec and rate explicitly,
m=Microphone.getMicrophone();
m.codec=SoundCodec.SPEEX;
m.rate=44;
i am running flash player 10.1 beta3 debugger version.
but still rate is showing 16 on trace.
Thanks
Atul
Views
Replies
Total Likes
That's strange since we don’t modify the rate. Can you send me a small test code of urs ? I will take a look tomorrow.
Thanks
Hironmay Basu
Views
Replies
Total Likes
Hi Hironmay,
I think there is no relation to afcs code regarding rate set to 16, i have tried same code without using afcs container, just a simple code,but trace is showing 16 even after explicitly setting rate to 44.
I am running flash player 10.1 beta3
Views
Replies
Total Likes
Hi ,
I would say mail to the player forum and see their reply regarding this explicit setting. They might need to update their docs. I will talk to them too.
Thanks
Hironmay Basu
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies