Difference between revisions of "PlaySound"
Jump to navigation
Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM) |
m (→Example) |
||
Line 13: | Line 13: | ||
== Example == | == Example == | ||
− | Play ding.wav sound file located in the root directory of the C: hard drive: | + | Play the 'ding.wav' sound file located in the root directory of the C: hard drive: |
<syntaxhighlight>PlaySound("C:\ding.wav");</syntaxhighlight> | <syntaxhighlight>PlaySound("C:\ding.wav");</syntaxhighlight> | ||
[[Category:Output]] | [[Category:Output]] |
Latest revision as of 15:00, 19 February 2012
Plays the specified wave (.wav) sound file.
Usage
PlaySound("PathFilename")
Where:
- PathFilename - a string expression specifying the path and filename of the wave file to be played.
Notes
- AT&T Labs Natural Voices® Text-to-Speech Demo makes it possible to generate your own sound files.
Example
Play the 'ding.wav' sound file located in the root directory of the C: hard drive:
PlaySound("C:\ding.wav");