I am working on a project to analyze voice input. What I want is recording and frequency extraction for voice input. I succeeded in recording about voice input. But is it possible to extract frequencies for recording and voice input at the same time? Or do I need to get the recording file back and get the frequency back?
jackeric:
Or do I need to get the recording file back and get the frequency back?
That's how it's typically done. Collect your samples then run an FFT.
Sure you can! If you have the processing power available, and your voice analysis algorithm is compatible with that. Most built-in ADCs should support a freerunning mode and you can use their interrupt to full up a buffer, than when the buffer's full send it to your analysis algorithm.
Is it possible to simultaneous operation on Arduino?
Technically speaking NO. An Arduino can only do one thing at a time. But it works fast so it is often possible to write code that appears to be doing Several Things at a Time
However that only works for actions that can be split into small chunks - for example operating a servo or measuring the time between pulses from an encoder on a motor shaft.
There is not enough information in the Original Post to know whether there is sufficient time to do what the OP wants with a 16MHz Arduino.
...R
As you said, there was a problem with the configuration. When the button is pressed, the voice is recorded at intervals of 1 second. As you advised, he brought in the recording file, tried to extract the dashbell and the frequency, but he had a problem.
(1) Is frequency extraction and dashboard extraction possible at the same time that the recorded file is loaded?
(2) Is it possible to extract only the microphone input from the recorded file?
In Reply #4 I can't figure out what people are referred to by the words "you" and "he".
I don't know what a dashbell or a dashboard are either.
(2) Is it possible to extract only the microphone input from the recorded file?
What will the file contain in addition to the microphone input?
...R
What I wanted to say is that I have a program that records microphone input for one second and makes it a wav file.
What I want is the frequency and decibel of what is recorded for a second.
What I came up with to get the frequency and decibels is to get the recorded files and analyze them. But the problem arises here.
The program in which I get the frequency and decibels is calculated by receiving input from the microphone.
Can I get the recorded file back in? Re-enter, frequency and the decibels shall be operated at the same time to get to problem.
Reply #6 describes the problem much more clearly. However it is still not clear if the existing program already saves the microphone data to a file.
If so, where is the file? Is it on an SD Card?
And I don't think you have told us what Arduino you are using.
...R
I'm using an aduino Uno. The recording program saved the microphone data file to the sd card in wav file format.
I want to get frequency and decibels for the microphone data that's stored sd card.
jackeric:
I want to get frequency and decibels for the microphone data that's stored sd card.
That should certainly be possible.
I reckon it would be easiest to do if you use the SD card to copy the file to a PC which has a lot more computing power. There may well be an off-the-shelf PC program that can do what you want.
...R
I want to get the frequency and decibels of the wav file saved on the sd card through the aduino Uno. Is there any site or project I can refer to?
@jackeric
You've been given potential solutions
here: Is it possible to simultaneous operation on Arduino? - #10 by Robin2 - Programming Questions - Arduino Forum
and here: About FFT - #3 by gfvalvo - Programming Questions - Arduino Forum
You've ignored both. Not sure what else we can do for you.