Solved

Delete the silence of a wave file (.wav)

Posted on 2002-07-21
15
595 Views
Last Modified: 2012-05-04
Hello there,
  I would like to know how can I delete the silence at the beginning and ending of a wave file (.wav) regardless of the audio format. Are there any function that I can use to delete it?
  The silence that I mentioned, for example, when recording, normally we wait a while and start to say something, so there will be some silence at the beginning, I would like to delete the silence using some function in VB before using the wav file for later use.
  Any help?
0
Comment
Question by:ctlim
  • 5
  • 4
  • 3
  • +2
15 Comments
 
LVL 28

Expert Comment

by:vinnyd79
ID: 7169580
0
 
LVL 2

Expert Comment

by:DanAvni
ID: 7171506
if you just need to batch convert files then get soundforge which has an auto trim function.
0
 

Author Comment

by:ctlim
ID: 7173205
I need some functions so that I can use it in my application.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 28

Expert Comment

by:vinnyd79
ID: 7173258
Did you look at the link I provided? It's a good example of editing wav files.
You can use code from it to strip off the silence by writing to a new wav file.
0
 

Author Comment

by:ctlim
ID: 7173260
the code that you have provided, does not allow for deleting portion of wav file...

any help?
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 7173401
No,but you can create a new file without the silence.The graph will show a flat horizontal line where there is silence.click the mouse on the graph and click 'paste into New'.It will create a new wave file that you can rename as the original.I think creating a new file is a better idea just in case something goes wrong deleting from the original file.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8032005
Hi ctlim,
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.

ctlim, 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
 
LVL 2

Expert Comment

by:DanAvni
ID: 8032023
if you are still looking for a solution, you could use Goldwave 5 beta which has this feature and use it's batch processing
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8032193
DanAvni,
If you post links to site where those tools are available, I can recommend that you be awarded the points.
- Dan
0
 
LVL 2

Accepted Solution

by:
DanAvni earned 250 total points
ID: 8032281
sorry i forgot the links:

GoldWave - http://www.goldwave.com (registration is about 50$). not as powerfull as soundforge but very easy to use and very good (i use it)
SoundForge - http://www.sonicfoundry.com/ (registration is a few hundred $ but this program is amazing. it does everything you need and more)
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8032301
Moderator, I am changing my recommendation to:

   Accept DanAvni's comment as an Answer
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 8033369
The question was how to do it with VB,not a third party utility that costs $. The link I provided can do what ctlim has asked in VB.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8037419
vinny79,
Thansk for the input.  That was my original leaning, but it looked like a person would need to eyeball the graph and then manually delete unwanted parts.  Is there a function there that will automatically recognize silence, allowing a programatic approach?  It looks like the commerical products provide an API or command-line options that could accomplish that programmatically.
-- Dan  
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 8038648
There is no function to detect silence,but the GraphWave Sub routine in the example could be modified to do this without the need for a third party solution.

Anyhow,your recommendation is fine by me.It's good to see some of these old questions cleaned up.
0
 

Expert Comment

by:SpideyMod
ID: 8095594
Split points vinnyd79,  DanAvni

SpideyMod
Community Support Moderator @Experts Exchange

vinnyd79 points for you at:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20543613.html
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

803 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