MATLAB ヘルプ センター
List available audio devices
devices = getAudioDevices(obj)
devices = getAudioDevices(obj) returns a list of audio devices that are available and compatible with your audio I/O object, obj.
devices
obj
example
collapse all
audioDeviceReader
Create an audioDeviceReader object and then call getAudioDevices on 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)'}
audioDeviceWriter
Create an audioDeviceWriter object, and then call getAudioDevices on 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)'}
audioPlayerRecorder
Create an audioPlayerRecorder object, and then call getAudioDevices on your object.
playRec = audioPlayerRecorder; devices = getAudioDevices(playRec)
devices = 1×2 cell {'Default'} {'ASIO4ALL v2'}
Audio I/O object, specified as an audioDeviceReader object, audioDeviceWriter object, or audioPlayerRecorder object.
Data Types: object
object
List of available and compatible devices.
For audioDeviceReader and audioDeviceWriter, the list of audio devices depends on the specified Driver property of your object.
Driver
For audioPlayerRecorder, the audio devices listed support full-duplex mode and have a platform-appropriate driver:
Windows® –– ASIO™
Mac –– CoreAudio
Linux® –– ALSA
Data Types: cell
cell
Introduced in R2016a
audioDeviceWriter | audioDeviceReader | audioPlayerRecorder
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ