[Freeswitch-users] Conference and Speex Wideband audio quality problem

Michael Jerris mike at jerris.com
Sun Aug 15 16:45:16 PDT 2010


Stay tuned for mod_rtmp, coming soon to a freeswitch near you.

Mike

On Jul 30, 2010, at 5:47 PM, Richard Alam wrote:

> OK...figured out what the problem.
> 
> Flash Player by default sends 2 frames per packet with 20ms of audio
> (320 samples) per frame. FS expects only a frame every packet.
> So setting mic.framesPerPacket = 1; in the flash client worked.
> 
> Here's the complete Actionscript setting in case somebody in the
> future wants to work with Flash.
> 
> 		private function setupMicrophone():void {
> 			mic.setUseEchoSuppression(true);
> 			mic.setLoopBack(false);
> 			mic.setSilenceLevel(0,20000);
> 			mic.codec = SoundCodec.SPEEX;
> 			mic.gain = 60;
> 			mic.framesPerPacket = 1;
> 			mic.rate = 16; // use 8 for Nelly
> 			LogUtil.debug("codec=SPEEX,gain=60,encodeQuality=10,framesPerPacket=2,rate=16");
> 		}
> 
> Richard




More information about the FreeSWITCH-users mailing list