Alexandre
Alexandre

Reputation: 13308

Combining two audio files in C#

There are 2 audio ( mp3 or wav) files. The first file has the voice of me, the second one has the voice of my friend. Each of them has 10 seconds duration. I want to combine them to get one file that also should have 10 seconds duration.

What are the tools or utilities I should use to solve this issue?

UPDATE: I used lame.exe, but it concatenated them and created the file of 20 seconds duration.

Upvotes: 5

Views: 6656

Answers (2)

BluesRockAddict
BluesRockAddict

Reputation: 15683

Check out NAudio tutorial: Mixing multiple wave files together in real time.

Upvotes: 3

npinti
npinti

Reputation: 52185

This might do the trick.

My WAVFile class supports 8- and 16-bit audio, mono or stereo. One of its special features is a method that will mix WAV audio files together, so that the audio from each source WAV file will be heard simultaneously.

Note: In the above paragraph, My refers to the author of the class, not to myself.

Upvotes: 4

Related Questions