Solved

Delete the silence of a wave file (.wav)

Posted on 2002-07-21
15
598 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

766 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