Play Sound
Play an audio file from your computer
Preview
Parameters
Audio Devicerequired
Select
default:
Application Default
Select an audio device to use for output
Application Default
will use the device configured in the Settings tab in Streamer.bot
Sound file to playrequired
File
Select the audio file for playback.
Click ...
to open a file browser.
Supported formats: mp3
, wav
, m4a
, ogg
Finish playing before continuing
Toggle
default:
true
Wait for playback to complete before continuing to the next sub-action.
When disabled, the sound will play immediately and the next sub-action will begin to execute with no delay.
Volume
Range
default:
100
Adjust the output volume
This is a simple volume control. It can often be useful to instead adjust the volume with a tool like Audacity.
Sound Name
string
Use Filename As Name
boolean
Enabling this will use the filename of the sound as the sound name
Variables
This sub-action does not populate any variables.
C# Usage
public double PlaySound(string fileName, Single volume = 1, bool finishBeforeContinuing = false, string name, bool useFileName = true)