Acquire Sound
- Updated2025-01-28
- 3 minute(s) read
Acquire Sound
Acquires data from a sound device. This Express VI automatically configures an input task, acquires the data, and clears the task after the acquisition completes.
(Windows) You must have DirectX 8.0 or later to use this VI. (Linux) You must have the Open Sound System (OSS) driver to use this VI.
![icon](https://docs-be.ni.com/bundle/labview-api-ref/page/vi-lib/sound2/soundacquiresource-llb/sound-acquire-source-vi.png?_LANG=enus)
Dialog Box Options
Option | Description |
---|---|
Device | Lists the sound devices you have connected. |
#Channels | Specifies the number of channels. 1 is Mono, and 2 is Stereo. |
Resolution (bits) | Specifies the quality of each sample in bits. The default is 16 bits. |
Duration (s) | Sets the number of seconds for which you want to acquire sound. |
Sample rate (Hz) | Specifies the sample rate in hertz. |
Preview | Displays a preview of the sound operation in the graph. |
Graph Preview | Displays a preview of the sound operation. |
Inputs/Outputs
![]() Lists the sound devices you have connected. ![]() Specifies the sample rate in hertz. ![]() Specifies the quality of each sample in bits. The default is 16 bits. ![]() Describes error conditions that occur before this node runs. ![]() Sets the number of seconds for which you want to acquire sound. ![]() Specifies the number of channels. 1 is Mono, and 2 is Stereo. ![]() Returns the data this Express VI acquires from the selected device using the settings you specify in the configuration dialog box. You can convert this output to a waveform or one-dimensional array of waveforms (one per channel) by using the Convert from Dynamic Data function. ![]() Contains error information. This output provides standard error out functionality. |