0.3.3 • Published 1 year ago

@bean-tools/voicemod-websocket v0.3.3

Weekly downloads
-
License
GPL-3.0+
Repository
github
Last release
1 year ago

voicemod-websocket

TypeScript Websocket Class for Voicemod's Control API. For an overview of the Control API, check out the Control API documentation.

Quickstart

You will need an API key and a running Voicemod.

To create a connection, run:

import { VoicemodwebSocket } from "@bean-tools/voicemod-websocket";

const voicemod = new VoicemodWebSocket();
voicemod.connect("localhost", "aaaaaa-123456");

// Your logic and listeners go here

voicemod.disconnect();

Events

You can find Events you can listen on in the Control API documentation.

They are mapped to the EventTypes type.

You can listen to events with the on() method, i.e.:

voicemod.on("VoiceChanged", (voice) => {
  console.log("Voice changed to", voice.friendlyName);
});
0.3.2

1 year ago

0.3.1

1 year ago

0.3.3

1 year ago

0.3.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago