> For the complete documentation index, see [llms.txt](https://nelson-9.gitbook.io/nelson/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nelson-9.gitbook.io/nelson/markdown/en/audio/sound.md).

# sound

Convert matrix of signal data to sound and play it.

## 📝 Syntax

* sound(y)
* sound(y, Fs)
* sound(y, Fs, nBits)
* sound(y, Fs, nBits)

## 📥 Input argument

* y - column vector or m-by-2 matrix.
* Fs - sample rate, a positive number, 8192 by default.
* nBits - bit depth of sample values: 8, 16 (default), 24.

## 📄 Description

sound plays audio signal y to the speaker at sample rate of Fs hertz and uses nBits bits per sample.

## 💡 Example

```matlab
signal = rand(2, 44100) - 0.5;
sound(signal, 44110, 16)

```

## 🔗 See also

[audioplayer](/nelson/markdown/en/audio/audioplayer.md), [playblocking](/nelson/markdown/en/audio/playblocking.md), [soundsc](/nelson/markdown/en/audio/soundsc.md).

## 🕔 History

| Version | 📄 Description  |
| ------- | --------------- |
| 1.0.0   | initial version |
