How do I record sound in matlab?

10 views (last 30 days)
MAX
MAX on 18 Apr 2018
Answered: Walter Roberson on 18 Apr 2018
I have some frequencies of sound stored in different push buttons. I have another button which is the record button.
How do I record different sounds so that I can make a piece of music?

Answers (1)

Walter Roberson
Walter Roberson on 18 Apr 2018

Like we said in https://www.mathworks.com/matlabcentral/answers/394978-how-do-i-plot-the-sound-that-is-stored-in-the-variable-complete_sound#comment_557126 use audiowrite() to .wav file.

You might perhaps be thinking of recording what is played on the speaker. There is no way to "loop back" the audioplayer to audiorecorder. For a more detailed discussion of that topic see https://www.mathworks.com/matlabcentral/answers/386734-how-do-i-get-sound-data-from-a-speaker#answer_309137

Tags

Community Treasure Hunt

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

Start Hunting!