Tips for Installing Octave

From Class Wiki
Jump to: navigation, search

How to get Sound.m to work in Windows

First make sure you have the audio 1.1.4 package installed in octave forge.

Install sox to the octave bin dir.

 http://sourceforge.net/projects/sox/files/sox/14.3.2/sox-14.3.2-win32.exe/download

Or extract the contents of the sox-14.3.2 folder inside the zip folder into the bin dir.

 http://sourceforge.net/projects/sox/files/sox/14.3.2/sox-14.3.2-win32.zip/download

Open sound.m from

 .\Octave\3.2.4_gcc-4.4.0\share\octave\packages\audio-1.1.4

Edit sound.m by commenting out line 99 and paste the following right after

 if(file_in_path(EXEC_PATH, "sox.exe"))
 sound_play_utility = "sox.exe -t AU - -d";