Help CenterHelp Center
audioDeviceReader
audioDeviceWriter
audioPlayerRecorder
List available audio devices
devices = getAudioDevices(obj)
example
devices= getAudioDevices(obj)returns a list of audio devices that are available and compatible with your audio I/O object,obj.
devices= getAudioDevices(obj)
devices
obj
collapse all
Create anaudioDeviceReaderobject and then callgetAudioDeviceson your object.
getAudioDevices
deviceReader = audioDeviceReader; devices = getAudioDevices(deviceReader)
devices =1×4 cell{'Default'} {'Primary Sound Capture Driver'} {'Headset Microphone (Plantronics C325-M)'} {'HP 4120 Microphone (2- HP 4120)'}
Create anaudioDeviceWriterobject, and then callgetAudioDeviceson your object.
deviceWriter = audioDeviceWriter; devices = getAudioDevices(deviceWriter)
devices =1×6 cell{'Default'} {'Primary Sound Driver'} {'Headset Earphone (Plantronics C325-M)'} {'LEN LT2452pwC (NVIDIA High Definition Audio)'} {'Speakers (Realtek High Definition Audio)'} {'HP 4120 (2- HP 4120)'}
Create anaudioPlayerRecorderobject, and then callgetAudioDeviceson your object.
playRec = audioPlayerRecorder; devices = getAudioDevices(playRec)
devices =1×2 cell{'Default'} {'ASIO4ALL v2'}
Audio I/O object, specified as anaudioDeviceReaderobject,audioDeviceWriterobject, oraudioPlayerRecorderobject.
Data Types:object
object
List of available and compatible devices.
ForaudioDeviceReaderandaudioDeviceWriter, the list of audio devices depends on the specifiedDriverproperty of your object.
Driver
ForaudioPlayerRecorder, the audio devices listed support full-duplex mode and have a platform-appropriate driver:
Windows®–– ASIO™
Mac–– CoreAudio
Linux®–– ALSA
Data Types:cell
cell
audioDeviceWriter|audioDeviceReader|audioPlayerRecorder
この例の変更されたバージョンがあります。編集された方の例を開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office