Skip to main content

Play-Sound

Command Description

Play an audio file in the wav format

Command Prototype

Sys.PlaySound(sPath)

Parameter Description

ParameterRequiredTypeDefaultDescription
sPathTruepath'''C:\Users'''The path to save the audio file, only WAV format is supported

Demo

/***********************************Play sound************ **************************** 
Command prototype:
Sys.PlaySound('''C:\Users''')
Input parameters:
sPath-- the path to store the audio file, only supports wav format
Outgoing parameters:
None
********************************************************************************/
Dim sPath='''D:\app\Format Factory\FFOutput\Masque_Jupiter - Kiujiro's Summer (pure piano).wav'''
Sys.PlaySound(sPath)