function sound(x, fs) if(nargin == 1 || isempty(fs)) fs = 8000; endif if(rows(x) != length(x)) x = x' endif if(playrec('isInitialised')) playrec('reset'); endif playrec('init', fs, 3, 1); playrec('play', x, 1:size(x,2)); endfunction