Wikipedia sez:
Because of some bugs in Flash Player, the first recommended version for Speex support is 10.0.22.87 and later.

See the docs here: http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Microphone.html
and
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/SoundCodec.html

Your best bet would be overriding the _makeDevice() method of av/microphone.lzx, e.g.:

<microphone>
  <method name="_makeDevice"><![CDATA[
    var dev = super._makeDevice();
    // dev is the microphone
    dev.codec = 'Speex';
  ]]>
  </method>
</microphone>

Even better, enhance the class with a codec attribute, so _makeDevice() does this automatically - then contribute it back to the platform! Please file an improvement request if you're not up to doing that.

Let me know how it goes!

David Nault wrote:
Hi,

I'd like to use the OpenLaszlo to record Speex audio and Sorenson Spark "type 0" video (the defaults are Nellymoser Asao and "type 1", respectively). I tried poking around in extensions/av/microphone.lzx, but the object returned by Microphone.get() doesn't seem to have a "codec" property. Can someone kind media expert give me a push in the right direction?

Thanks,
David



--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to