Skip to content

VoiceMod Class

Phaze edited this page Jul 15, 2023 · 5 revisions

Usage

const { VoiceMod } = require('voicemod');

let vm = new VoiceMod();

vm.init().then(async () => {
  // API Loaded
})

Methods

init(): Promise - Used to open the connection to the voicemod application and loads all required data from the app

reloadVoices(): Promise - Mainly used for internal applications, reloads the voices in the voices array

stopAllSounds(): Void - Used to stop all soundboard sounds

setVoiceParam(parameter: String, value: Number): Void - Used to change voice parameters

Values

user: VMUser

voices: VMVoiceGroup

favouriteVoices: VMVoiceGroup

customVoices: VMVoiceGroup

newVoices: VMVoiceGroup

currentVoice: VMVoice

rotaryVoiceExpires: Number

soundboards: VMSoundBoardGroup

Clone this wiki locally