Hello,<div><br></div><div>I am attempting to use Speex in an iPhone application and running into an issue. I got speex to compile by following these instructions:</div><div><br></div><div><a href="http://codeforfun.wordpress.com/2010/04/29/compile-speex-for-iphone/">http://codeforfun.wordpress.com/2010/04/29/compile-speex-for-iphone/</a></div>
<div><br></div><div>Next, I was able to record some audio and play it back. I then inserted a call to the speex preprocessor and am passing all of the audio buffers I receive from Audio Queue Services (the iPhone/Mac audio streaming API) into speex_preprocess_run. The problem though is that speex_preprocess_run is returning a 1 regardless of whether I am speaking into the microphone or not. There is this output in the log when debugging my program:</div>
<div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>warning: The VAD has been replaced by a hack pending a complete rewrite</b></p><p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo">
<b><br></b></p><p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="font-size: small;">Does this mean that VAD does not work at all in the processor in version 1.2rc1, or am I just using it incorrectly if I always get back a 1 (I suspect it's the latter, not the former).</span></font></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="font-size: small;"><br></span></font></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="font-size: small;">Any help would be greatly appreciated.</span></font></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="font-size: small;"><br></span></font></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="font-size: small;">Greg</span></font></p>
</div>