On Fri, Apr 4, 2008 at 12:51 AM, Darryl Ross <address@hidden> wrote:
I'm guessing that I need to process (resample?) the signal from the
sound card before passing it to the flex decoder, but I'm not sure what
that processing would be. I'm very new to signal processing, so don't
know what search terms I should be using.
I think flex_demod is looking for complex data at baseband
#!/usr/bin/python
import time
from gnuradio import audio, gr, pager
audio_device = 'hw:0'
sample_rate = 48000
class top_block(gr.top_block):
def __init__(self, queue):
gr.top_block.__init__(self)
src = audio.source(sample_rate, audio_device)
dst = pager.flex_demod(queue)
converter = gr.float_to_complex()
self.connect(src, converter)
self.connect(converter, dst)
if __name__ == '__main__':
queue = gr.msg_queue()
tb = top_block(queue)
tb.start()
while True:
if not queue.empty_p():
msg = queue.delete_head()
print msg.to_string()
time.sleep(0.5)