Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorParsingOutput = errors.New("error with parsing dbus output")
Functions ¶
func PlayFromId ¶
func PlayFromId(audioFileId, volume, priority int, event *eventclient.Event) (played bool, err error)
PlayFromId lets you make a request to audiobait to play an audio file. audioFileId: ID of the audio file. Audio files available and there IDs can be found using audiofilelibrary. volume: Volume to play the sound at from 1 to 10. Values over 10 can be used but the quality might decrease. priority: //TODO event: Event that will get logged when played. The audioFileID, volume, priority, and time will automatically get added to the event.
If left null no event will be logged.
func PlayTestSound ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.