MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Q .wav import

  • To: mathgroup at
  • Subject: [mg44526] Re: Q .wav import
  • From: "Hans Michel" <hansjm at>
  • Date: Thu, 13 Nov 2003 02:27:31 -0500 (EST)
  • References: <botck5$chp$>
  • Reply-to: "Hans Michel" <hansjm at>
  • Sender: owner-wri-mathgroup at

Peter W.

In the $Path or not using Mathematica 4.2 Windows 2000
 I did the following:

Import["C:\\Documents and Settings\\hans\\My Documents\\raymond.wav", "WAV"]

Note the double \\

It returned a Sound object
Sound[SampledSoundList[data, r]]

Which can be displayed using Show[%].

And played by double clicking on the graphics.

This is fast

Alternately you can load the add-on
<< Miscellaneous`Audio`
ReadSoundfile["C:\\Documents and Settings\\hans\My Documents\\raymond.wav",

Then use ListPlay

ListPlay[%, SampleRate->22050, PlayRange->{-2^15,2^15}]

This is slow.

In the ReadSoundFile you can see the data.

With Import use FullForm on the Sound object to see the Format. Then grab
the List (data).


"mandarino" <pams at> wrote in message
news:botck5$chp$1 at
> With my camera (Ricoh rdc-7) I made a sound recording in the .wav format,
> I have not been able to import this sound into Mathematica.
> I use:
> Import["pulsonex6.WAV"]
> And I get a "$Failed" result.
> Any ideas?
> The sound playes OK e.g. in the win XP mediaplayer.
> And, at least I put the sound file in the Mathematica $Path
> Best regards
> Peter W

  • Prev by Date: Re: Real sum gives complex result -> Bug in Mathematica?
  • Next by Date: Re: Simple Sum problem
  • Previous by thread: Q .wav import
  • Next by thread: Automatic comment coloring