Loading...

Source C#: WAVE File Processor

View: 274    Dowload: 2   Comment: 0   Post by: admin   Category: Visual studio & .NET   Fields: Other

Download  source-c-wave-file-processor.zip (19.70 KB)

You need to Sign In to download the file source-c-wave-file-processor.zip
If you do not have an account then Sign up for free here

Introduction

I was doing some experiments on WAVE files and how they can be modified or manipulated programmatically. In case of voice mail or audio based marketing campaign applications, where WAVE files are widely used and need to be processed quickly, managing audio files programmatically becomes very useful.

In this code example, I have introduced some useful methods like ChangeVolume(), StripSilence(), WaveMix(), Validate() and Compare() along with other associated methods. Most importantly, the code can be used with no dependency on any legacy or third party audio processing tool.

Background 

Initially, I searched several articles and examples but was of no luck. Finally, I came across Ehab Mohamed Essa'sarticle Concatenation Wave Files using C# 2005. The article was excellent and contained fundamentals of WAVE format, some of which I have adapted in my example while reading and writing headers and merging two wave files.

Using the Code

Download the attached zip file containing the entire source code. Open the solution in Visual Studio 2005 IDE. The given form is for test purposes only, and uses all available WAVE processing features. Apart from the form, the most important file is clsWaveProcessor.cs which contains all the key methods for WAVE file processing. I will try my best to explain the methods. 

Before running the example, you should keep some source wave files handy with you because those will be necessary to execute all methods. The source WAVE files must be of 16Bit 8kHz Mono with 128kbps Bit Rate. I used this audio specification because, so far I found, this is the audio specification used by voice mail and pre-recorded audio campaign applications.

Upon running the example, only the form will be displayed with all available options. Below is the screen shot of the form.

Screenshot - WaveProcessor_ScreenShot.jpg

The first two text boxes take the source audio files as input. In this example, I have made it mandatory to provide two source audio files in the same format. But as you can understand, two files will be necessary only for merging. The third (optional) source file is the background audio file which will be mixed with the two source audio files. Finally, the path and file name of output audio.

Source C#: WAVE File Processor

I was doing some experiments on WAVE files and how they can be modified or manipulated programmatically. In case of voice mail or audio based marketing campaign applications, where WAVE files are widely used and need to be processed quickly, managing audio files programmatically becomes very useful.

Posted on 10-01-2018 

Comment:

To comment you must be logged in members.

Files with category

  • Salary Management System

    Salary Management System

    View: 73    Download: 9   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Introduction: ----------------- *This project is based on accounts concept. *Salary Management System is a DataBase system which can be used for managing employee Salary Details. *It is a multi-user system and can be used by hundreds of user at the...

  • New Print-maker Cyber Cafe

    New Print-maker Cyber Cafe

    View: 29    Download: 0   Comment: 0

    Category: Visual studio & .NET     Fields: none

    New Printmaker Cyber Cafe ------------------------- Before you run this project, please set the following date format “dd/MM/yyyy” to your computer. Introduction: -------------- The purpose of developing this software project is to fully automate...

  • Folder Locker 7.0

    Folder Locker 7.0

    View: 118    Download: 2   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Folder Lock is great security app that lets you password-protect files, folders and drives; encrypt your important files on-the-fly, backup files in real-time, protect portable drives, shred files & drives and clean history. Folder Lock can...

  • Bakeshop Inventory System in VB.Net and MS Access Database

    Bakeshop Inventory System in VB.Net and MS Access Database

    View: 77    Download: 6   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Bakeshop Inventory System is a software based system especially designed for a Bakeshop business and for the inventory process. This system will be able to track the daily, weekly, monthly and yearly inventory of products. In this way, the staff can...

  • Bezier Curve Machine Learning Demonstration

    Bezier Curve Machine Learning Demonstration

    View: 29    Download: 0   Comment: 0

    Category: Visual studio & .NET     Fields: Other

    I enjoy working with longitudinal data. This is the second article in a series about using Bezier curves to smooth large data point fluctuations and improve the visibility of the patterns unfolding. This current article focuses on using machine...

  • Basic Library Management System

    Basic Library Management System

    View: 79    Download: 1   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Library System is designed to store students (borrowers) info and their individual file in an institution regarding on the library transactions. This system is a user-friendly program able to print reports, view students’ file or transactions in the...

  • School Equipment Monitoring System with Barcode Scanner

    School Equipment Monitoring System with Barcode Scanner

    View: 101    Download: 5   Comment: 0

    Category: Visual studio & .NET     Fields: none

    This automated monitoring system aims to easily track the school equipment because there are times that the items accessed by many users have the tendency of loss due to poor monitoring of the items . This system can help you monitor the items...

  • Payroll System

    Payroll System

    View: 171    Download: 0   Comment: 0

    Category: Visual studio & .NET     Fields: none

    This Payroll system is a software based that is very simple-to-use yet powerful. This involves everything that has to do with the payment of employee. This system also includes tasks such as calculating the wages, tracking of hours (overtime and...

 
File suggestion for you
Loading...
File top downloads
Loading...
Loading...
Codetitle - library source code to share, download the file to the community
Copyright © 2018. All rights reserved. codetitle Develope by Vinagon .Ltd