play_sound

play_sound loads and plays the specified sound file.
2.0K 次下载
更新时间 2009/5/7

查看许可证

OVERVIEW

play_sound(id) loads and plays the specified sound file.

INPUTS

id identifies the sound file to be loaded, and can be either a string or an integer. If id equals zero, play_sound returns immediately without playing any sound. If id is an integer between 1 and 6, the value is mapped to a Windows system sound as follows:

1: chimes 2: chord 3: ding 4: notify 5: tada 6: Windows XP Battery Critical

If id is a string, the string may include the full path to the file. If the path is not provided, play_sound looks in the current directory, and then in the directory C:\Windows\media.

引用格式

Phillip M. Feldman (2024). play_sound (https://www.mathworks.com/matlabcentral/fileexchange/24033-play_sound), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Audio and Video Data 的更多信息
社区

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0