DirectCommand PlaySoundAsync Method LEGO Mindstorms EV3 API Documentation
For more information, please see the OnlineCodePlex project page and the OnlineGetting Started guide.

Play a sound file stored on the EV3 brick

Namespace: Lego.Ev3.Core
Assembly: Lego.Ev3.Desktop (in Lego.Ev3.Desktop.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Task PlaySoundAsync(
	int volume,
	string filename
)

Parameters

volume
Type: OnlineSystem Int32
Volume of the sound (0-100)
filename
Type: OnlineSystem String
Filename of sound stored on brick, without the .RSF extension

Return Value

Type: OnlineTask
See Also