How can we get the amplitude,time values of an audio signal in java. I need to detect the peaks in the signal using these values.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s one web page describing the most common .wav(RIFF) file format:
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
Just unpack the array of samples from the file and convert the data type and/or endianess, as needed. Then you need to average or filter the absolute value or squared value of a set of PCM samples covering the time window of interest.