Solved

Delete the silence of a wave file (.wav)

Posted on 2002-07-21
15
605 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 16 hours left to enroll

624 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