Repository navigation
Reference Script Functions Voicemod
Also on the Cuebot Docs site.
Functions for C# (Cb.Call) and Python (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.call("voicemod.getCurrentVoice")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.call("voicemod.getSounds")Tells you the last known state of one Voicemod switch. It does not ask Voicemod again.
| Value | What to put in |
|---|---|
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.call("voicemod.getState", 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.call("voicemod.getVoices")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.call("voicemod.isConnected")Plays a sound from your Voicemod soundboard. Fails with an error when no sound has that name.
| Value | What to put in |
|---|---|
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.call("voicemod.playSound", sound="Air Horn")Switches Voicemod to a random voice.
| Value | What to put in |
|---|---|
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.call("voicemod.randomVoice", mode="FavoriteVoices")Switches Voicemod to another voice. Fails with an error when no voice has that name or Voicemod is not connected.
| Value | What to put in |
|---|---|
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.call("voicemod.selectVoice", voice="Robot")Turns Voicemod's background effects (the sounds behind some voices) on or off.
| Value | What to put in |
|---|---|
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.call("voicemod.setBackgroundEffects", state="Off")Starts or stops Voicemod's censor beep, the bleep that covers bad words.
| Value | What to put in |
|---|---|
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.call("voicemod.setCensorBeep", state="On")Turns Voicemod's "Hear myself" on or off. When it is on, you hear your changed voice in your headphones.
| Value | What to put in |
|---|---|
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.call("voicemod.setHearMyself", state="Off")Mutes or unmutes your microphone in Voicemod.
| Value | What to put in |
|---|---|
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.call("voicemod.setMute", state="On")Turns the Voicemod voice changer on or off. When it is off, your normal voice is heard.
| Value | What to put in |
|---|---|
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.call("voicemod.setVoiceChanger", 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.call("voicemod.stopSounds")Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- The mod portal
- 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