Search code examples
functionmatlabstreamoctavemicrophone

How to read data from microphone input in GNU/Octave?


For sure it is possible, but the question is how? Official docs on http://gnu.org/software/octave keeps quiet about that.

Are there any additional libraries or functions that I can use to get access to line input (microphone input) using GNU/Octave on Linux?


Solution

  • Did you try using Octave's record function?

    x = record(T, Fs);
    

    where T is the time duration to record, and Fs is the sampling rate.