Borrar filtros
Borrar filtros

audio recording - synchronous execution

1 visualización (últimos 30 días)
moose
moose el 12 de Oct. de 2015
Comentada: moose el 14 de Oct. de 2015
Hello,
I want to record audio from laptop's microphone and simultaneously "hit" play on some other non-matlab application.
I am using the following to record the audio -
recObj = audiorecorder;
recordblocking(recObj , 10);
what's the best way to do that the above script will start the exact moment I press a button with my mouse on some other application?
Thanks
  1 comentario
Geoff Hayes
Geoff Hayes el 12 de Oct. de 2015
Moose - to be clear, you want your MATLAB script to somehow "listen" for when the play button has been pressed on some other non-MATLAB application. Is this correct?

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Oct. de 2015
Use the Data Acquisition Toolbox and configure it for hardware triggering of the same hardware event that marks the beginning of whatever is producing the sound.
Or use Java Robot Class to send the mouse click to the other application.
  1 comentario
moose
moose el 14 de Oct. de 2015
Thank you Walter. I've used the Robot class.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by