Solved

Multiple sound files appended into one large file

Posted on 2002-04-23
9
141 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:Navin58
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6963721
What you are trying to do specifically?
Every file has headers that describes what it does.
0
 

Author Comment

by:Navin58
ID: 6965108
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.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6965609
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 ;)
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6966120
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.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6966346
Well, it is necessary to be 99 files?
Could you append each after other with any wav editor?
Must be done with code?
0
 

Author Comment

by:Navin58
ID: 6967998
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.
 
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6969194
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.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7660726
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
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7755397
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now