Repository navigation
Reference Script Functions Voicemod
Also on the Cuebot Docs site.
Functions for C# (Cb.Call) and Python (a cb method each, or cb.call). See Script functions for how to use them.
Asks Voicemod which voice is on right now.
Gives back: id and name of the current voice.
C#
var answer = await Cb.Call("voicemod.getCurrentVoice");Python
answer = cb.voicemod_get_current_voice()Lists all the sounds on your Voicemod soundboard.
Gives back: A list of sounds. Each has name and fileName.
C#
var answer = await Cb.Call("voicemod.getSounds");Python
answer = cb.voicemod_get_sounds()Tells you the last known state of one Voicemod switch. It does not ask Voicemod again.
| Value | In Python | What to put in |
|---|---|---|
switch |
switch |
Which switch: "VoiceChanger", "HearMyself", "BackgroundEffects" or "MuteMic". |
Gives back: true for on, false for off, or null when Cuebot does not know yet. Fails with an error for any other switch name.
C#
var answer = await Cb.Call("voicemod.getState", new Dictionary<string, object?> { ["switch"] = "VoiceChanger" });Python
answer = cb.voicemod_get_state(switch="VoiceChanger")Lists all your Voicemod voices.
Gives back: A list of voices. Each has id, name and favorite (true when you starred it).
C#
var answer = await Cb.Call("voicemod.getVoices");Python
answer = cb.voicemod_get_voices()Checks whether Cuebot is connected to Voicemod right now.
Gives back: true while connected, otherwise false.
C#
var answer = await Cb.Call("voicemod.isConnected");Python
answer = cb.voicemod_is_connected()Plays a sound from your Voicemod soundboard. Fails with an error when no sound has that name.
| Value | In Python | What to put in |
|---|---|---|
sound |
sound |
The sound's name as Voicemod shows it, like "Air Horn", or its file name. |
Gives back: The name of the sound that played.
C#
var answer = await Cb.Call("voicemod.playSound", new { sound = "Air Horn" });Python
answer = cb.voicemod_play_sound(sound="Air Horn")Switches Voicemod to a random voice.
| Value | In Python | What to put in |
|---|---|---|
mode |
mode |
Optional. Which voices to pick from: "AllVoices", "FreeVoices", "FavoriteVoices" or "CustomVoices". Default "AllVoices". |
Gives back: true when done.
C#
var answer = await Cb.Call("voicemod.randomVoice", new { mode = "FavoriteVoices" });Python
answer = cb.voicemod_random_voice(mode="FavoriteVoices")Switches Voicemod to another voice. Fails with an error when no voice has that name or Voicemod is not connected.
| Value | In Python | What to put in |
|---|---|---|
voice |
voice |
The voice's name as Voicemod shows it, like "Robot", or its id. |
Gives back: The name of the voice that is now on.
C#
var answer = await Cb.Call("voicemod.selectVoice", new { voice = "Robot" });Python
answer = cb.voicemod_select_voice(voice="Robot")Turns Voicemod's background effects (the sounds behind some voices) on or off.
| Value | In Python | What to put in |
|---|---|---|
state |
state |
Optional. "On", "Off" or "Toggle" (switch). Default "Toggle". |
Gives back: The new state: true for on, false for off.
C#
var answer = await Cb.Call("voicemod.setBackgroundEffects", new { state = "Off" });Python
answer = cb.voicemod_set_background_effects(state="Off")Starts or stops Voicemod's censor beep, the bleep that covers bad words.
| Value | In Python | What to put in |
|---|---|---|
state |
state |
Optional. "On" starts the beep, "Off" stops it. Default "On". |
Gives back: true when done.
C#
var answer = await Cb.Call("voicemod.setCensorBeep", new { state = "On" });Python
answer = cb.voicemod_set_censor_beep(state="On")Turns Voicemod's "Hear myself" on or off. When it is on, you hear your changed voice in your headphones.
| Value | In Python | What to put in |
|---|---|---|
state |
state |
Optional. "On", "Off" or "Toggle" (switch). Default "Toggle". |
Gives back: The new state: true for on, false for off.
C#
var answer = await Cb.Call("voicemod.setHearMyself", new { state = "Off" });Python
answer = cb.voicemod_set_hear_myself(state="Off")Mutes or unmutes your microphone in Voicemod.
| Value | In Python | What to put in |
|---|---|---|
state |
state |
Optional. "On" mutes, "Off" unmutes, "Toggle" switches. Default "Toggle". |
Gives back: The new state: true when muted, false when not.
C#
var answer = await Cb.Call("voicemod.setMute", new { state = "On" });Python
answer = cb.voicemod_set_mute(state="On")Turns the Voicemod voice changer on or off. When it is off, your normal voice is heard.
| Value | In Python | What to put in |
|---|---|---|
state |
state |
Optional. "On", "Off" or "Toggle" (switch). Default "Toggle". |
Gives back: The new state: true for on, false for off.
C#
var answer = await Cb.Call("voicemod.setVoiceChanger", new { state = "On" });Python
answer = cb.voicemod_set_voice_changer(state="On")Stops every Voicemod soundboard sound that is playing.
Gives back: true when done.
C#
var answer = await Cb.Call("voicemod.stopSounds");Python
answer = cb.voicemod_stop_sounds()Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- Overlays and alerts
- Writing your own overlay widgets
- Text-to-speech
- Music and now playing
- Points, store and giveaways
- Subathons and goals
- Stream apps and devices
- VTuber apps
- Stream Deck
- The phone app
- Donations and integrations
- Discord bot
- The setup assistant and AI tools
- The assistant on your own computer
- Moving from Streamer.bot
- Cuebot's servers
- Writing code (C# and Python)
- Python in detail
- Using your own code editor
- Controlling Cuebot from other programs
- Backups and your data
- Linux
- Command-line options
- Troubleshooting
- What's experimental
- Reference
