Matlab and Loudspeakers: Expert Tips and Tricks for Your Project

  • Context: MATLAB 
  • Thread starter Thread starter smokeput
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion centers on integrating MATLAB with loudspeakers for audio playback and recording. Users highlight the use of the audioplayer function for playing .wav and .au files, while recommending Audacity with the LAME MP3 plug-in for MP3 file conversion. Additionally, the PlayRec utility is mentioned for handling audio input and output across multiple channels, although users express uncertainty about its implementation.

PREREQUISITES
  • Familiarity with MATLAB audio functions, specifically audioplayer.
  • Understanding of audio file formats, including .wav, .au, and MP3.
  • Knowledge of the PlayRec utility for audio input/output.
  • Basic skills in using Audacity for audio file conversion.
NEXT STEPS
  • Research the audioplayer function in MATLAB for advanced audio playback techniques.
  • Explore the PlayRec documentation for multi-channel audio control.
  • Learn how to convert audio files to compatible formats using Audacity.
  • Investigate MATLAB Central for community support and code examples related to audio projects.
USEFUL FOR

Audio engineers, MATLAB developers, and anyone involved in projects requiring audio playback and recording using MATLAB and loudspeakers.

smokeput
Messages
7
Reaction score
0
Hi all,

I am currently in desperate need for help in my project with is using both Matlab and loudspeakers. I was wondering if anyone here has done similar projects?

Hope to receive quality replies asap. Thanks
 
Physics news on Phys.org
Welcome to PhysicsForums!

What exactly are you trying to do? There should be no difficulties with audio output and running MATLAB simultaneously. If you mean playing audio from within MATLAB, there are facilities for doing that, as well.

For instance, audioplayer, which can play .wav and .au files:
http://www.mathworks.com/help/techdoc/ref/audioplayer.html

There is at least one bit of code floating out there which can import and play back MP3, but you're probably better off converting the piece using Audacity (with the LAME mp3 plug-in):
http://audacity.sourceforge.net/
http://audacity.sourceforge.net/help/faq?s=install&item=lame-mp3
 
Hey matlabdude,

hmm yea, I've heard about the ability of MATLAB being able to play/record sounds directly. however, the project I am assigned to need the use of playrec codings and utility.

u have any knowledge on that?
 
I have no familiarity with that particular package. I'd start with the documentation and examples at the PlayRec website:
http://www.playrec.co.uk/index.php
 
Last edited by a moderator:
I'm not familiar with that particular package either, but I'm interested in seeing how things turn out.
 
oh mannn :(
haha dude, yea i know of that site of cos, but I am not very sure on how am i suppose to code them in such a way that it controls multiple channels.
sigh.
 
I'd ask on http://www.mathworks.com/matlabcentral/" .
 
Last edited by a moderator:

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
12K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
6K