wav

Problem with writing a 16bit raw PCM file

As a small experimental music piece I am attempting to program a song in standard C. The code outputs a raw PCM file which can be imported into Audacity. At the moment everything works as expected, but I'm encountering problems when trying to write each sample as 16 bit as opposed to the current 8 bit I am using. Up until the point of b...

MP3Gain like volume analyzer software for WAV files

Hi Guys, Coding Language: C# Framework: .NET We have built a software, which among many other things, combines mp3 files. We are using a software called mp3Gain in our application. MP3Gain analyzes and adjusts mp3 files so that they have the same volume. Now we are also combining "wav" files. Would like to know if there is a similar s...

Decode wav file into raw on win32

How can I decode a wav file (RIFF) containing PCM data on Windows into raw samples (so that I can feed it to ASIO) on win32? I don't have time to reinvent the wheel. If there's a library out there that does the whole "play a wav file into ASIO" thing at once, that would be nice. ASIO is simple enough, though, and has many examples for...

Voice Recording/Saving in Delphi

Is there a component or code that allows the following: Record a spoken word (or words) and save it/them to a file that can be played back. The file must be able to be played back on XP, Vista and Windows 7. The file can be either stand alone or saved to a datasource. [Using Delphi 7 for creating apps on XP and using Absolut...

How to add metadata to WAV file?

I'm looking for some sample code to show me how to add metadata to the wav files we create. Anyone? ...

how to compare .wav specimen in delphi?

I would like to start studying the .wav specimen by compairing two files. like returning a result of duration, accent, pronounciation in percentage. etc. or any code that comparing/analyzing the .wav ...

How do I stream alaw audio?

I have a source that streams wav audio in alaw format which I would like to receive in Android, but Android only supports linear PCM: Android Supported Media Formats There are a few apps on the market that stream alaw, but I'm not sure how the developers made it happen. What is the correct approach to adding this functionality? ...

What is the algorithm to convert an mp3 file to a wav file?

What is the algorithm to convert an mp3 file to a wav file? Also, what is the algorithm to convert an aac file to a wav file? I have searched online everywhere but there is no reference anywhere. If someone could send me a link or a reference to a book with this information, I would much appreciate it. Thanks! ...

how to record anything from soundcards?

i would like to record any sounds produced in my soundcard. please help, where i can get a freeware component or commercial(trial). delphi7/2009 ...

Opening an audio (wav) file from a MemoryStream to determine the duration

Is there a way, either within the Framework or by using P/Invoke to determine the duration of a wav file that's held in a MemoryStream? I've already had a look at Managed DirectX and another similar question, but everything seems to work with paths, rather than providing any way to pass in a stream. One of the links in the question I'v...

Creating a fade-in/fade-out function in MATLAB?

Hello, I am looking to create a function that could create a fade-in/fade-out function on a .wav file over a period of five seconds. I found this code on the MATLAB forums but it seems the implementation was slightly wrong, although the right idea is there. It was for .WAV files of 300ms with a 10ms fade-in/out: tenmssamples = length(...

How to play .wav file from URL in web browser embed - Java

Hi; I want to play a .wav sound file in embed default media player in IE. Sound file is on some HTTP location. I am unable to sound it in that player. Following is the code. URL url = new URL("http://www.concidel.com/upload/myfile.wav"); URLConnection urlc = url.openConnection(); InputStream is = (InputStream)urlc...

Play streamed audio in browser (Asp.net)

I am trying to get this to work for quite some time now. I have an asp.net page in which I am trying to play a wav file. The code in the page load event is as follows: Response.Clear() Response.ContentType = "audio/wav" Response.AppendHeader("Content-Disposition", "inline;filename=" + "temp.wav") Dim filePath As String = Server.Ma...

C# Create Dummy MP4 file realtime

I am trying to create an mp4 file from the data of a .wav file. I need to do this to submit it to a C# MediaElement as its source. I have been having problems playing a .wav file with the media element while my application takes "exclusive mode" control of all sounds on the platform. I found that if I set my source as a .mp4 file, the...

java - read .wav as float array

Hi I'm trying to read a .wav (and in the future also mp3 and ogg) file as an array of floats in java, much like libsndfile in C. I'm looking at the various docs in the javax.sampled packages but I can't find a clear explanation on how to do that; I'd like to avoid recurring to external libraries if possible. Any suggestion? Thanks N...

How to write stereo wav files in Python?

The following code writes a simple sine at frequency 400Hz to a mono WAV file. How should this code be changed in order to produce a stereo WAV file. The second channel should be in a different frequency. import math import wave import struct freq = 440.0 data_size = 40000 fname = "WaveTest.wav" frate = 11025.0 # framerate as a float ...

How to encode a WAV to a mp3 on a Android device

I'm simplified my question and offered a bounty: What options are there for compressing raw PCM audio data to a mp3 on a Android device. My original post: I'm creating a synthesiser on my Android phone, and I've been generating PCM data to send to the speakers. Now I'm wondering if I can encode this PCM data as a mp3 to save to the sdca...

Upload a WAV file with Paperclip and store both .wav and .mp3 versions

I have a Rails application where people can use an in browser sound editor to create wav files and upload them to the server. I use Paperclip for handling the sound file upload. I would like to be able to convert the wav file to an mp3, but keep both files. I have read about Paperclip processors, but I'm not sure how to use them to ge...

how to write a wave file using scipy, if you are provided with sample rate and frequency values

please help me with an example ...

[WAV file] Why are an integers bytes stored backwards? Does this apply to headers only?

I'm currently trying to decipher WAV files. From headers to the PCM data. I've found a PDF (http://www.tdt.com/T2Support/technical_notes/tn0132.pdf) detailing the anatomy of a WAV file, and I've been able to extract and make sense of the appropriate header data using Ghex2. But my questions are: Why are the integers bytes stored backw...