wav

Why scipy.io.wavfile.read does not return a tuple?

I am trying to read a *.wav file using scipy. I do the following: import scipy x = scipy.io.wavfile.read('/usr/share/sounds/purple/receive.wav') As a result of this code I get: Traceback (most recent call last): File "test3.py", line 2, in <module> x = scipy.io.wavfile.read('/usr/share/sounds/purple/receive.wav') AttributeError...

ImportError: cannot import name NumpyTest

I am trying to read a *.wav file using scipy. I do it in the following way: import scipy.io x = scipy.io.wavfile.read('/usr/share/sounds/purple/receive.wav') As a result I get the following error message: Traceback (most recent call last): File "test3.py", line 1, in <module> import scipy.io File "/usr/lib/python2.5/site-pack...

What is the easiest way to read wav-files using Python [summary]?

I want to use Python to access a wav-file and write its content in a form which allows me to analyze it (let's say arrays). I heard that "audiolab" is a suitable tool for that (it transforms numpy arrays into wav and vica versa). I have installed the "audiolab" but I had a problem with the version of numpy (I could not "from numpy.test...

Playing sound file doesn't work in all browser except IE

I have This line <EMBED NAME=""mySound"" SRC=""DocID2858_voice-message.wav"" LOOP=FALSE AUTOSTART=True HIDDEN=TRUE MASTERSOUND> It works for ie but doesn't work for rest of browser. is there any way to make that. ...

Android's AMR audio Files to WAV/MP3

I've recorded audio in my Android application in its AMR format and I'd like to convert these to something that I can more easily use, such as WAV or MP3. I've found some online instructions for this, for instance: http://www.aquarionics.com/2004/08/04/how_to_convert_amr_files_to_mp3/ which say to start with the 3GPP reference solution...

wav-to-midi conversion

I'm new to this field - but I need to perform a WAV-to-MIDI conversion in java. Is there a way to know what exactly are the steps involved in WAV-to-MIDI conversion? I have a very rough idea as in you need to; sample the wav file, filter it, use FFT for spectral analysis, feature extraction and then write the extracted features on to MID...

Dynamic time warping to compare two audio recordings

I'd like to use Dynamic Time Warping to compare two feature vectors for two audio recordings (of course I'm doing all the necessary preprocessing first). My program should output the similarity between the two audio recordings in percent. For example 100% means that the two recordings are completely identical, and the more different are ...

Convert raw PCM stream to wavs (cli)

I need a program that I can pipe a raw PCM stream into, and will send wav files to stdout. Since the input is a stream, I can't just add headers to it, but I can for every x seconds (For example, program reads ten seconds of the stream, and outputs a ten second long wav file, reads the next ten seconds, outputs a wav file, and so on). ...

How to play extracted wave file byte array in C#?

At the moment i have managed to separate the left and right channel of a WAVE file and have included the header in a byte[] array. My next step is to be about to play both channels. How can this be done? Here is a code snippet: byte[] song_left = new byte[fa.Length]; byte[] song_right = new byte[fa.Length]; ...

wav amplitude in java (stereo or more channels)

Hi does anyone know how to find the amplitudes within a WAV file in Java? If the file was stereo (or has more channels) how can the data be put into arrays? Thanks! ...

Looking for a mouseover sound script (solved)

Hi, I'm looking for a a mouseover sound script (for button). I plan to use wav sound but can be other sound format. Those I have found on the net are not compatible with new browser version. Especially need to work in Firefox Browser. I have found one on Jquery site but it require Flash. I prefer using only javascript if possible. T...

C# winform - playing wav files from embedded resource

I have 15 1-second wav files, that need to play one every second, for 2 minutes. Is it better to read the wav files into memory at application load and play from there, or load on the fly from Properties.Resources each second? ...

get length of wav file ? (playing wav with soundplayer class)

I'm playing wav sound files using the .NET SoundPlayer class in my program, is it somehow possible to get the length of the wav file (in milli sec) ? thanks for answers ...

Is there any free g729 or g711 converter?

Hi all. I need converter to convert G729 or G711 files to wav,wma,mp3 or any other format witch can play for example Windows Media Player. ...

Streaming a non-PCM WAV file to a SilverLight application

Hi, I would like to allow users to play recorded WAV files that stored on a server back to a Silverlight application as a client to play them. I saw that there is a way to play a WAV file on Silverlight (here), but when i tried to impliment it, i got an error playing the file because it is not in PCM format but encoded. The files that ...

RDP Redirecting sound from a Windows service

Bear with me on this one. I have a Windows service which can play .wav files for alerting. As long as the computer has a sound card and speakers, it works fine. There is also a GUI that lets the user choose which sound that the service will play. When the user is connected via Remote Desktop to the GUI and tests the sound, he hears i...

Dynamically created iframe used to download file triggers onload with firebug but not without

EDIT: as this problem is now "solved" to the point of working, I am looking to have the information on why. For the fix, see my comment below. I have an web application which repeatedly downloads wav files dynamically (after a timeout or as instructed by the user) into an iframe in order to trigger the a default audio player to play th...

processing an audio wav file with C

Hi - I'm working on processing the amplitude of a wav file and scaling it by some decimal factor. I'm trying to wrap my head around how to read and re-write the file in a memory-efficient way while also trying to tackle the nuances of the language (I'm new to C). The file can be in either an 8- or 16-bit format. The way I thought of doi...

How to receive a datastream from a device on your computer, in C#

I plan to build a small audio-recorder app in C#. My laptop has a built in Microphone that's always active, so I want to use that as an early-stage test. I would simply start recording, save the file as a .wav or even use the LAME dll to make it into an MP3. The problem is, I don't know how to contact that microphone. Do I use a library...

Converting WAV to MP3 on Linux with low bitrates

I need to convert WAV files to MP3 files so they can be played on a website. I think that LAME would probably be the best tool. However the WAV files are low bitrate (around 8kbits recorded from a phone) and LAME's website states that it is the "best MP3 encoder at mid-high bitrates and at VBR". Is there is a better encoder for lower bi...