how can I play audio in matlab?
Show older comments
I want to play voices under 20 Hz (above the humen hearing range). if possible, I don't want to use external audio-file. is there any function that playing single tone by typing the wanted frequency?
2 Comments
Image Analyst
on 20 Jun 2015
Something's wrong here: "under 20 Hz (above the humen hearing range)". If you're a human and something like 15 hertz is above your hearing range, then I'd say that you're very remarkable and unusual. Most humans hear in the nominal range 20 - 20,000 Hz.
eran golden
on 21 Jun 2015
Answers (1)
Geoff Hayes
on 17 Jun 2015
0 votes
Eran - see http://www.mathworks.com/matlabcentral/answers/134304-how-do-i-generate-sound-using-matlab which describes a couple of ways of generating sound using MATLAB. In particular, the use of the sound function (answer by Azzi Abdelmalek) or Image Analyst's demo that creates a sound and plays it.
4 Comments
eran golden
on 20 Jun 2015
Jan
on 20 Jun 2015
Using the plot command? What do you mean by "simultaneously"?
eran golden
on 20 Jun 2015
Geoff Hayes
on 22 Jun 2015
eran - since you want to play and process (plot) the audio file simultaneously, you may want to use the audioplayer instead. See http://www.mathworks.com/matlabcentral/answers/222105-make-the-slider-move-as-the-music-is-playing which includes a demo GUI which can play and plot an audio file using a timer.
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!