<html>
<body>
Hello Zack:<br><br>
Excuse me if I'm jumping into something completely wrongly, but
...<br><br>
I'm doing something similar right now on the Mac working with G.729. I'm
working on the decode end of the problem and interfacing with what the
Mac developer community calls an Audio Unit (AU) to get to their D/A and
speakers. So my code decodes the compressed file and streams the PCM into
an AU that I configured with the frame size and rate I want and samples
widths that I specify (in my case 16 bits). I'm using their default AU in
output mode. I believe you would configure an AU in an input mode which
would allow you to interface with some hardware sound input and give you
the frame rate, number of samples, and sample widths that SPEEX
wants.<br><br>
I suggest that you check into
<a href="http://coreaudio-api@lists.apple.com/">coreaudio</a>
-api@lists.apple.<a href="http://coreaudio-api@lists.apple.com/">com</a>.
I have an active issue going back and forth right now with my scenario.
Lots of very good help up there. You may have to subscribe to read or
write the lists. Let me know if you have a problem with that.<br><br>
Take care ... hope this helps.<br><br>
<br>
At 01:46 AM 5/8/2007 -0600, zmorris@mac.com wrote:<br>
<blockquote type=cite class=cite cite="">Hi All, I am trying to get speex
working on the Mac and am running <br>
into issues. I got the examples working, but am now trying to
make <br>
speex, which expects 8000 Hz and 160 samples per buffer (320 bytes
<br>
per buffer), work with the Mac's built-in audio recording, which
uses <br>
either 11025, 22050, or 44100 Hz and 1024 samples per buffer (2048
<br>
bytes per buffer).<br><br>
I just need to know if there is a way to make speex run at say
11025 <br>
Hz with maybe 512 (or other power of 2) samples per buffer.
<br>
Otherwise there is going to be a lot of code handling remainders
for <br>
each buffer and downsampling.<br><br>
Also, does speex use a timer of any kind? Or does it just
process <br>
blocks as they are given? I just mean for general encoding,
not <br>
echoes, etc.<br><br>
Thanx,<br><br>
--Zack<br>
_______________________________________________<br>
Speex-dev mailing list<br>
Speex-dev@xiph.org<br>
<a href="http://lists.xiph.org/mailman/listinfo/speex-dev" eudora="autourl">
http://lists.xiph.org/mailman/listinfo/speex-dev</a></blockquote>
<x-sigsep><p></x-sigsep>
---<br>
B. Mitchell Loebel, Executive
Director
408 425-9920<br><br>
The Tech Startup Connection<br>
(formerly The PARALLEL Processing Connection)</body>
</html>