News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Extract an Excerpt from a WAV File
February 14, 2013 @ 10:44:25

In this new post to PHPMaster.com, Aurelio De Rosa covers an interesting use of PHP that could be handy in certain circumstances - extracting a section of a WAV audio file using the Audero Wav Extractor library.

Although PHP is well known for building web pages and applications, it can do more than that. I recently needed to extract a piece of audio from a WAV file on-the-fly and let the user download it through his browser. I tried to find a library that fit my needs but wasn't successful and had to write the code myself. It was a good opportunity to study in depth how a WAV file is made.

He starts off with an overview of what a WAV file is, how it's structured and how you can correctly figure out where in the binary data of the file the section you want is located. He then introduces the library and shows how to use it to extract "chunks" from the WAV file. He also includes an example of pulling out a chunk and saving it off to another file.

0 comments voice your opinion now!
extract wav audio file library tutorial


blog comments powered by Disqus

Similar Posts

ProDevTips.com: Zend Amf and class mapping with Flash CS3 / AS3

IBM developerWorks: Introduction to MVC programming with Agavi, Part 3: Add authentication and admin

Jakub Zalas' Blog: Managing object creation in PHP with the Symfony2 Dependency Injection component

Developer.com: Creating Complex, Secure Web Forms with PHP and HTML_QuickForm2

Thomas Weinert: Building A Sensor Phalanx With PHP


Community Events











Don't see your event here?
Let us know!


series security podcast component release opinion database unittest introduction package facebook performance application language install hack framework hhvm composer symfony2

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework