Menu
  • HOME
  • TAGS

FFT which frequencies are in which bins?

c#,fft,naudio,audio-processing

Here's a modified version of your code. Note the comments starting with "***". OpenFileDialog file = new OpenFileDialog(); file.ShowDialog(); WaveFileReader reader = new WaveFileReader(file.FileName); byte[] data = new byte[reader.Length]; reader.Read(data, 0, data.Length); samepleRate = reader.WaveFormat.SampleRate; bitDepth = reader.WaveFormat.BitsPerSample; channels = reader.WaveFormat.Channels; Console.WriteLine("audio has " + channels + " channels, a...

Suggestion on Classification Method and Machine Learning Model for Environment Sound Classification

audio,machine-learning,classification,audio-processing

Well, I have to answer my own question. I did some testing these days using the model of having three GMM in the way I mentioned on the question. It still works fine. If I have more training data I am confident that I could reach an accuracy above 90%.

Matlab real time audio processing

matlab,audio-recording,audio-processing

I think that you should use Stream processing like this: % Visualization of audio spectrum frame by frame Microphone = dsp.AudioRecorder; Speaker = dsp.AudioPlayer; SpecAnalyzer = dsp.SpectrumAnalyzer; tic; while(toc<30) audio = step(Microphone); step(SpecAnalyzer,audio); step(Speaker, audio); end you can find more information here and also in this presentation ...

How to read a 2-channel audio file in MATLAB

matlab,audio,channel,audio-processing

Luis Mendo is right. I was unable to find this information in doc wavread but if you check out doc sound it documents that x(:,1) is the left and x(:,2) is the right channel. If you are using a recent version of matlab, conciser switching to audioread In many cases...

Time delay of sound files using cross correlation

java,signal-processing,audio-processing,cross-correlation

If I remember correctly, a cross-correlation is the same as convolution with one of the signals time-reversed. A convolution in turn is efficiently calculated by multiplying the spectra of the two signals; i.e., take the FFT of each signal padded at least to the sum of the size of both...

Calcute note based on frequency

java,audio,audio-processing

Yes, this can be done. First however you must know the key in which to work. Assuming plain C major you'd start with the note a1 being 440Hz. Every octave up doubles the frequency, every octave down halves it, so you've got a nice logarithmic scale, with base 2. Within...