Link to home
Start Free TrialLog in
Avatar of Navin58
Navin58

asked on

Multiple sound files appended into one large file

This a basic VB problem, I am trying to take multiple sound files and make it into one large sound file, Does anyone know it can be done?
The above can be achieved by Window's Sound recorder (by the inserting many files into one), but since I have a very large number of soundfiles and this activity will be performed frequently, I needed VB code solution to automate this process.
Avatar of Richie_Simonetti
Richie_Simonetti
Flag of Argentina image

What you are trying to do specifically?
Every file has headers that describes what it does.
Avatar of Navin58
Navin58

ASKER

Richie Simonetti:
In reponse to your comments below, please see further cooments by me
What you are trying to do specifically?
Every file has headers that describes what it does.

Navin58 Comments: I have recorded some sound bites which in total exceeds 99 files, these sound bite files each are approx not more than 25 seconds, and I wanted to concatenate these sound files so I can play them on my portable CD player. The issue are
1) My CD writing software does not write more than 99 tracks, hence the need to concatenate these sound files into several large file, (since I have 659 files I want to make them into 18 large files as I have calculate this will all fit into one CD.
oops!, there is a comment from other expert that disappeared!
Well, i don't know how to do by code, but you could concatenate the files with a simple wav editor (even windows recorder, if i am not too old ;)
I'm just listening, but will offer what I've learned about wav files since I'm looking into doing something similar (but haven't had time):

Wave files have headers that define the protocol: MHz (11 or 22), channels (mono or stereo), etc.  After that comes a definition of the data.

When you merge the files, ensure that the headers are compatible, then modify the data pointers so that it recognizes the new length of the datablock, then append the new data.

Again, this is just based on my readings and I haven't tried it yet; you'll also need to know the exact header format, which I don't have available but may be somewhere on the Microsoft site or certainly somewhere on the Internet.
Well, it is necessary to be 99 files?
Could you append each after other with any wav editor?
Must be done with code?
Avatar of Navin58

ASKER

The reason I am looking to for a Visual Basic code solution is because:
1) I need to automate this process, as I have many situations, where I will need to perform this exercise many times in the future. As I can grow this code to include selection and editing of sound files.
2) Also I just want to know if was possible to it in VB and what the code looked like.
 
I don't see that it will be very difficult in VB since all you'd need to do is split a few strings and re-assemble them.

The hard part is getting exact specs on the file formats, which you won't find in the VB manuals.
When you have the format, let us know what it is and we can help you write the code if you need it.
Hi Navin58,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.

Navin58, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial