Skip to main content

Audio.Load

Loads an audio file into the audio player.

Syntax

Audio.Load "file_name" "clip_name"

Arguments

NameRequiredTypeDescription
file nameYesAny text e.g. "Hello, World!"The .ogg file name. SER searches all folders under its main data directory automatically.
clip nameYesAny text e.g. "Hello, World!"This will be the name of the audio clip. Refer to this name when attempting to play audio.

Details

SER is using 'AudioPlayerApi' to manage audio.
This method does not error using SER's system, most audio errors will be logged by AudioPlayerApi to the console.
Your .ogg file MUST BE:
- 48kHz
- single (mono) channel
- medium quality

Possible errors

  • File doesn't exist
  • File is not of type 'ogg'
  • More than one file with the same name exists

On a running server

Use serhelp Audio.Load to inspect the reference generated by your installed SER version.