discord-speech-recognition
Version:
Extension for making discord speech recognition bots.
31 lines • 994 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpeechEvents = void 0;
var SpeechEvents;
(function (SpeechEvents) {
/**
* Emitted when someone ends talking in channel
* <hr>
*
* Example usage:
* ```javascript
* client.on("speech", (msg) => {
* msg.author.send(msg.content);
* });
* ```
* @event
*/
SpeechEvents["speech"] = "speech";
/**
* Emitted when error occurs during processing audio stream. Usually when someone tries to talk using web version of discord. See https://github.com/discordjs/opus/issues/49
* @param error
* @event
*/
SpeechEvents["audioStreamError"] = "audioStreamError";
/**
* Emitted when bot joins a voice channel and has not started speech recognition in it
* @event
*/
SpeechEvents["voiceJoin"] = "voiceJoin";
})(SpeechEvents = exports.SpeechEvents || (exports.SpeechEvents = {}));
//# sourceMappingURL=events.js.map