I’m looking for a library that could be used to manipulate audio files. Essentially what I would like to do is:
-
Load an MP3/WAV file
-
Get a 15 second clip of the file
-
Overlay another MP3/WAV file ontop of it
-
Render as a new MP3/WAV file
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.
You can use any common MP3 codec API to decode the stream, work with it, and save it again. For instance you could use libLAME for this part.
As for mixing, you could either do it yourself (e.g., naively, add two samples and divide by two — which might not sound too good), or find a proper library for it.
You might also be interested in a related Stack Overflow question at best c audio library linux