goertzel-algorithm

Result from processing audio signal with Goertzel algorithm

柔情痞子 提交于 2020-01-01 06:01:47
问题 I made a little signal processing app. It processes audio signal (morse code) on certain frequency with Goerztel algorithm. Application saves temporary file to the filesystem and after recording is finished, starts to detect signals. Now I got the result with bunch of magnitudes. I don't really know what to read from those magnitudes. How can I decode the morse code from those magnitudes? How can I read them? Tried to find references, but nowhere is explained what is the result and how to

Result from processing audio signal with Goertzel algorithm

こ雲淡風輕ζ 提交于 2020-01-01 06:00:08
问题 I made a little signal processing app. It processes audio signal (morse code) on certain frequency with Goerztel algorithm. Application saves temporary file to the filesystem and after recording is finished, starts to detect signals. Now I got the result with bunch of magnitudes. I don't really know what to read from those magnitudes. How can I decode the morse code from those magnitudes? How can I read them? Tried to find references, but nowhere is explained what is the result and how to

Implementation of Goertzel algorithm in C

时光毁灭记忆、已成空白 提交于 2019-12-30 01:02:29
问题 I am implementing BFSK frequency hopping communication system on a DSP processor. It was suggested by some of the forum members to use Goertzel algorithm for the demodulation of frequency hopping at specific frequencies. I have tried implementing the goertzel algorithm in C. the code is follows: float goertzel(int numSamples,int TARGET_FREQUENCY,int SAMPLING_RATE, float* data) { int k,i; float floatnumSamples; float omega,sine,cosine,coeff,q0,q1,q2,result,real,imag; floatnumSamples = (float)

NAudio WaspiLoopback Goertzel

余生长醉 提交于 2019-12-12 06:02:06
问题 Update #2: I kept messing more with the code, my only issue is that it is detecting frequencies when sound is present through the microphone but the algorithm is not working at all. I ask it for 500Hz and it'd output a power level even tough there was NO sound at that frequency. Code below (I have seen that this post haven't had much attention, thus why I'm updating constantly) private void button3_Click(object sender, EventArgs e) { waveIn = new WasapiLoopbackCapture(); waveIn.DataAvailable

Android - demod FSK using goertzel

好久不见. 提交于 2019-12-12 03:59:04
问题 I am using this code https://stackoverflow.com/questions/23432398/audio-recorder-in-android-process-the-audio-bytes to capture the mic audio but I am writing the data to a ByteArrayOutputStream. After I finish the record I want to demodule the signal captured by using Goertzel Algorithm. The FSK signal consists out of 2 frequencies, 800Hz for '1' and 400Hz for '0' each bit is moduled using 100 samples. I am using this class of Goertzel: http://courses.cs.washington.edu/courses/cse477

DTMF detection using Goertzel Algorithm

。_饼干妹妹 提交于 2019-12-11 19:47:57
问题 How can I use Goertzel Algorithm if the wave format are the following: - 2 Channels - 32 bit - 48 kHz I already searched about Goertzel algorithm but all I can see all over the internet is detection of DTMF with wave format of 2 Channels, 16 bit, and 8 kHz. I don't know what part of code should I modify to meet my requirements. Private Function Goertzel(ByVal sample As Byte(), ByVal N As Long, _ ByVal freq As Double, ByVal sampr As Long) As Double Dim Skn As Double = 0 Dim Skn1 As Double = 0

Decoding DTMF from a WAV file

China☆狼群 提交于 2019-12-09 11:24:53
问题 Following on from my earlier question, my goal is to detect DTMF tones in a WAV file from C#. However, I'm really struggling to understand how this can be done. I understand the DTMF uses a combination of frequencies, and a Goertzel algorithm can be used ... somehow. I've grabbed a Goertzel code snippet and I've tried shoving a .WAV file into it (using NAudio to read the file, which is a 8KHz mono 16-bit PCM WAV): using (WaveFileReader reader = new WaveFileReader(@"dtmftest_w.wav")) { byte[]

Using Goertzel algorithm to detect frequency

橙三吉。 提交于 2019-12-04 13:36:39
问题 I am trying to write a program for android to detect frequency using Goertzel algorithm. However when I apply the algorithm on the data that I get from the AudioRecord read() method, the magnitude does not peak on the target frequency (.i.e: it usually peak on low frequency). Am I misunderstanding anything? protected void detect() { double[] dbSample = new double[bufferSize]; short[] sample = new short[bufferSize]; max_magnitude = 0; while(isRecording){ int bufferReadResult = recorder.read

Result from processing audio signal with Goertzel algorithm

梦想与她 提交于 2019-12-03 16:26:48
I made a little signal processing app. It processes audio signal (morse code) on certain frequency with Goerztel algorithm. Application saves temporary file to the filesystem and after recording is finished, starts to detect signals. Now I got the result with bunch of magnitudes. I don't really know what to read from those magnitudes. How can I decode the morse code from those magnitudes? How can I read them? Tried to find references, but nowhere is explained what is the result and how to read it. EDIT: My morse code application is made with Delphi and uses Windows Beep function to send

Using Goertzel algorithm to detect frequency

心不动则不痛 提交于 2019-12-03 08:28:23
I am trying to write a program for android to detect frequency using Goertzel algorithm. However when I apply the algorithm on the data that I get from the AudioRecord read() method, the magnitude does not peak on the target frequency (.i.e: it usually peak on low frequency). Am I misunderstanding anything? protected void detect() { double[] dbSample = new double[bufferSize]; short[] sample = new short[bufferSize]; max_magnitude = 0; while(isRecording){ int bufferReadResult = recorder.read(sample,0,bufferSize); for (int j=0;j<bufferSize&&j<bufferReadResult;j++) { dbSample[j] = (double)sample[j