Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calculating audio amplitude and phase  RSS feed

 
Redan Hassoun
Greenhorn
Posts: 28
Android AngularJS Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have written a computer application using java,that records an audio wave and does some processing on it.
My array of audio samples is in this format :
Sample rate = 14000 Hz
Sample size in bits = 16
Number of channels = 1
unsigned sample values
and it's in little endian order

The application purpose is to calculate three things :
1. Frequency
2. Amplitude
3. Phase

According to frequency, iv'e used the FFT algorithm on the sampled array and got an accurate result.
but ... according to amplitude ...
My samples array is 16-bit for each sample, so the value range is -32768 to 32767.
How can i convert this number into a meaningful unit of measure (like : meter) ?
And does any one knows how can i compute the phase ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!