Hello,
I tried to create my own microphone application in OM and I used the
<microphone> tag of Openlaszlo.
All in all its working, but the audio quality is much worse than in the
original OM. I searched in the code and found this configuration:
_micro.codec = SoundCodec.NELLYMOSER;
_micro.framesPerPacket = 1;
_micro.setSilenceLevel(0, 2000);
if ($debug) Debug.write("canvas.microphoneRateBest:
",canvas.microphoneRateBest);
_micro.rate = (canvas.microphoneRateBest == 'undefined') ? 22 :
canvas.microphoneRateBest;
_micro.gain = 50;
// this has no effect if enhanced microphone is obtained
//Microphone setUseEchoSupression(bool)
_micro.setUseEchoSuppression(true);
I adjusted the attributes in my configuration like that:
codec= NellyMoser
framesPerPacket=1
silencelevel=0
silencetimeout=2000
rate=44
gain=50
EchoSuppression=true
_micro is an enhancedMicrophone object. Except the attribute "echoPath" I can't
see any differences and since it is used for echo cancellation and I use a
headset it shouldn't have an effekt.
Is there anything I missed in the configuration or is the difference in quality
only because OM uses an enhancedMicrophone object and I use the <microphone>
tag?
Do you have any suggestions how to improve my audio quality?
Greetings,
Mathias