From what I have read, using Speek over Nellymoser is advantageous, but I can’t figure out how to use it with a Flex 4 Microphone object.
For instance, the last code line:
private var oMicrophone:Microphone;
oMicrophone = Microphone.getMicrophone ();
oMicrophone.codec = "Speex"
oMicrophone.encodeQuality (8)
Gives me this compile error:
Attempted access of inaccessible
method encodeQuality through a
reference with static type
flash.media:Microphone
I am not impressed with Adobe’s documentation on this.
Guess I either need to import something or include some extra module that doesn’t come with the Flex SDK – or…?
The
encodeQualityis a property, not a method. To use it, just assign a value to it:That seems to take care of it.