How do I record sound in matlab?

3 次查看(过去 30 天)
MAX
MAX 2018-4-18
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?

回答(1 个)

Walter Roberson
Walter Roberson 2018-4-18

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by