Ubuntu Forums Archive Viewer

octave sound

Archived thread 1002606 from Education & Science. Markdown source: Education_&_Science/thread_1002606_octave_sound.md

Original URL About this archive
#1

i use octave for school, anyway i recently installed the sound package through: sudo apt-get install octave-sound, the version of octave installed is 3.0 and the audio package is 1.1.1

i tried playing a sinusoid signal by using: sound(signal)

and i got this message: sh: ofsndplay: not found

is there anyway to fix this? i really need the sound function to be able to do my homework thanks. :)

#2

Install alsa-utils or pulseaudio-utils. Then put the following in your ~/.octaverc

global sound_play_utility = 'aplay';

OR

global sound_play_utility = 'paplay';