Question

I want to analyze the input stream of my audio-in with python.
The contains data from a radio reciever.

Sometimes the radio signal contains a block of 5 tones. I need to analyze the stream for this blocks.
They look like:

Principle

The frequencys look like this:

number       1    2    3    4    5    6    7    8    9    0    R
Frequency/Hz 1060 1160 1270 1400 1530 1670 1830 2000 2200 2400 2600

What is the best way in python to implement this?

Was it helpful?

Solution

Store all your data for a short time into a 70 ms buffer, and constantly take the FFT searching for a spike at each frequency you're searching for. Collect 5 numbers in a row to complete the sequence. Each time you collect a value, wait 70 ms before you collect the next number.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top