mirror of
https://github.com/RavenX8/companion-module-voicemod.git
synced 2026-04-03 12:58:52 -04:00
Added api key input
This commit is contained in:
9
main.js
9
main.js
@@ -33,7 +33,7 @@ class ModuleInstance extends InstanceBase {
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
this.updateStatus(InstanceStatus.Connecting)
|
this.updateStatus(InstanceStatus.Connecting)
|
||||||
this.vm = new VoiceMod(this.config.host, 'controlapi-pty528000')
|
this.vm = new VoiceMod(this.config.host, this.config.apiKey === '' ? 'anyClient' : this.config.apiKey)
|
||||||
try {
|
try {
|
||||||
await this.vm.init().then(
|
await this.vm.init().then(
|
||||||
async () => {
|
async () => {
|
||||||
@@ -154,6 +154,13 @@ class ModuleInstance extends InstanceBase {
|
|||||||
tooltip: 'Enter the IP/Hostname for the voicemod instance',
|
tooltip: 'Enter the IP/Hostname for the voicemod instance',
|
||||||
default: '127.0.0.1',
|
default: '127.0.0.1',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'apiKey',
|
||||||
|
type: 'textinput',
|
||||||
|
label: 'API Key',
|
||||||
|
tooltip: 'Enter your API Key for voicemod (https://control-api.voicemod.net)',
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user