play_file¶
- sound.play_file(path: str)¶
Plays a file at given path.
Warning
Only use this function for sounds under 30 seconds. Use
AudioPlayerfor longer sounds.- Parameters:
path – The relative path of the file to play.
Plays a file at given path.
Warning
Only use this function for sounds under 30 seconds. Use AudioPlayer for longer sounds.
path – The relative path of the file to play.