Skip to main content
Domain name change
Source Link
Nayuki
  • 18.8k
  • 6
  • 61
  • 84

I have seen similar questions similar to this one on this website but my question is a little different. The code I am using to capture the audio is this. I would like to simply take the captured audio and apply an FFT to it with 256 points.

I realized that this line count = line.read(buffer, 0, buffer.length); breaks up the audio into "chunks".

Also the FFT I am using can be found herehere.

My questions are:

  1. I would like to know if there is a way to apply the FFT to the whole audio recording not just a buffered amount.
  2. I see that the code for the FFT requires a real and imaginary part, how would I get the real and imaginary parts from the code with the audio file.

I have seen similar questions similar to this one on this website but my question is a little different. The code I am using to capture the audio is this. I would like to simply take the captured audio and apply an FFT to it with 256 points.

I realized that this line count = line.read(buffer, 0, buffer.length); breaks up the audio into "chunks".

Also the FFT I am using can be found here.

My questions are:

  1. I would like to know if there is a way to apply the FFT to the whole audio recording not just a buffered amount.
  2. I see that the code for the FFT requires a real and imaginary part, how would I get the real and imaginary parts from the code with the audio file.

I have seen similar questions similar to this one on this website but my question is a little different. The code I am using to capture the audio is this. I would like to simply take the captured audio and apply an FFT to it with 256 points.

I realized that this line count = line.read(buffer, 0, buffer.length); breaks up the audio into "chunks".

Also the FFT I am using can be found here.

My questions are:

  1. I would like to know if there is a way to apply the FFT to the whole audio recording not just a buffered amount.
  2. I see that the code for the FFT requires a real and imaginary part, how would I get the real and imaginary parts from the code with the audio file.
Source Link
Baker Johnson
  • 253
  • 1
  • 3
  • 14

Apply FFT to audio recording in java

I have seen similar questions similar to this one on this website but my question is a little different. The code I am using to capture the audio is this. I would like to simply take the captured audio and apply an FFT to it with 256 points.

I realized that this line count = line.read(buffer, 0, buffer.length); breaks up the audio into "chunks".

Also the FFT I am using can be found here.

My questions are:

  1. I would like to know if there is a way to apply the FFT to the whole audio recording not just a buffered amount.
  2. I see that the code for the FFT requires a real and imaginary part, how would I get the real and imaginary parts from the code with the audio file.