🎙️Recorder
Represents a recorder instance
Methods
start()
Starts the recording
Parameter | Description |
---|---|
options | Object The recorder options object |
options.id | String The record id, used to download and delete it |
options.bitrate | Number (optional) The mp3 file bitrate value (default is 64000) |
options.selfAudio | Boolean (optional) Whether to record the bot's audio or not (default is false) |
options.users | |
options.channels | Number (optional) The number of channels to record (mono or stereo) (default is 2) |
options.encodeToMp3 | Boolean (optional) Whether to encode the output to mp3 or not, if not, the output will be in .pcm (default is true) |
resume()
Resumes the recording, with the same options provided in start
stop()
Stops recording audio in the voice channel, now you can wait for Vulkava#recordFinished event and then download/delete the file with Node#getRecord / Node#deleteRecord
Last updated