play_file

sound.play_file(path: str)

Plays a file at given path.

Warning

Only use this function for sounds under 30 seconds. Use AudioPlayer for longer sounds.

Parameters:

path – The relative path of the file to play.