title: How to enable Speex codec on microphone object in Flex 4?
body: <p>From what I have read, using Speek over Nellymoser <a href="http://askmeflash.com/article/2/speex-vs-nellymoser" rel="nofollow">is advantageous</a>, but I can't figure out how to use it with a Flex 4 Microphone object.</p>
  
  <p>For instance, the last code line:</p>
  
  <pre><code>private var oMicrophone:Microphone;    
  oMicrophone = Microphone.getMicrophone ();
  oMicrophone.codec = "Speex"
  oMicrophone.encodeQuality (8)
  </code></pre>
  
  <p>Gives me this compile error:</p>
  
  <blockquote>
    <p>Attempted access of inaccessible
    method encodeQuality through a
    reference with static type
    flash.media:Microphone</p>
  </blockquote>
  
  <p>I am not impressed with <a href="http://www.eonflex.com/flex/4.1/langref/flash/media/Microphone.html#encodeQuality" rel="nofollow">Adobe's documentation on this</a>.</p>
  
  <p>Guess I either need to import something or include some extra module that doesn't come with the Flex SDK - or...?</p>