How to add Custom Audio Hook or Sound FX

How to add Audio Hooks or Sound Fx:

  • Get the audio sound that you want in a minimum of MP3 format. Your browser may require OGG or AAC and you may need to get sounds in that format as well.
  • Once you have the sound that you want open the phantombot_folder/web/panel/js/ion-sounds/sounds folder and put your sound in there.
  • From the Control Panel, go to Audio -> Audio Panel and click on the ‘Reload Audio Hooks’ button
  • Then you can type !audiohook list to see the sounds that you can play. You can use !audiohook play to play that sound.

How to remove Audio Hooks or Sound Fx:

  • Remove the file(s) that you no longer wish to have from the phantombot_folder/web/panel/js/ion-sounds/sounds folder.
  • From the Control Panel, go to Audio -> Audio Panel and click on the ‘Reload Audio Hooks’ button

How to alias a sound to one command:

This can only be done from chat.

  • Use the command !audiohook customcommand add [command] [sound name] to add a sound fx to that command.
  • Use the command !audiohook customcommand remove [command] to remove the sound from that command.
    Examples:
  • !audiohook customcommand add !snap snap
  • !audiohook customcommand remove !snap

How to show all the audio commands you have:

  • Use the command !audiohook customcommand add [command] (list). The (list) tag will be replaced once the audio commands once you type that command.

Example:

  • !audiohoook customcommand add !list (list)
Was this article helpful? Votes: 4
Article details:
Published date: 12/17/2016 7:47PM
Last updated: 03/05/2017 6:34PM (ScaniaTV - [email protected])
Share article: 
Author: Zackery M. ([email protected])
Permalink: https://docs.phantombot.tv/kb/audio