Select 'DeviceName' for dsp.AudioRecorder and dsp.AudioPlayer
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Daniel Jimenez
am 3 Feb. 2014
Kommentiert: Daniel Jimenez
am 13 Mär. 2014
I was wondering if the DSP blocks have a way of listing the available audio devices in my computer similar to what the audiodevinfo function does? The problem I'm having is that when I use audiodevinfo it only returns a partial name of the available devices and not the full name of the device so I can't assign this name to the DeviceName parameter in dsp.AudioRecorder or dsp.AudioPlayer from the Command Window in MATLAB...
so, this is what I'm doing:
h = dsp.AudioPlayer;
h.DeviceName = audiodevinfo(0,1);
and, this is the error I get:
??? Error using ==> CompEnum.findMatch at 60 Communications Headphones (IDT is not a valid setting for the DeviceName property.
Error in ==> C:\Program Files\MATLAB\R2010b\toolbox\shared\system\+matlab\+system\@APIProp\APIProp.p>APIProp.checkForEnumProp at 433
I appreciate any help I can get!
0 Kommentare
Akzeptierte Antwort
Wayne King
am 3 Feb. 2014
Enter
devinfo = audiodevinfo;
then look at
devinfo.output
the name there should be a valid DeviceName property.
The easiest way is to use tab completion on the System object property
h = dsp.AudioPlayer;
then type the following
h.DeviceName = '
after you type the first single quote, hit the TAB key, you should see a list of valid device names.
2 Kommentare
Weitere Antworten (1)
Wayne King
am 4 Feb. 2014
Hi Daniel, can you try this:
To select or change the Audio Hardware API, select Preferences from the MATLAB Toolstrip. Then select DSP System Toolbox from the tree menu. You should see which audio hardware API you can choose from.
1 Kommentar
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!