• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calculating audio amplitude and phase  RSS feed

Posts: 29
Android AngularJS Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!