How to use recordblocking for an infinite interval?
4 次查看(过去 30 天)
显示 更早的评论
I need to record an audio until I stop the recording (using a button or something), do you know how to do it?
0 个评论
回答(1 个)
Geoff Hayes
2021-10-28
@Marie Kate Palau I don't think you want to use recordblocking since that would prevent you from stopping the recording after an unknown period of time. Try using record instead. I'm assuming that you have a GUI to start and stop the recording?
4 个评论
Walter Roberson
2021-10-28
Your code is stopping recording immediately after sending out the message 'Deje de hablar' .
Consider something like
record(myRecorder);
% Graba durante 2 segundos
menu("Deje de hablar", "para de grabar");
stop(myRecorder);
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!