🌋
Vulkava
  • Introduction
  • Getting started
  • Custom Queue
  • Filters example
  • Common issues
  • 📚Docs
    • 🌋Vulkava
    • 🎵Player
    • 🎙️Recorder
    • 📑DefaultQueue
    • 🎛️Filters
    • 🪢Node
    • 💿Track
    • 💿UnresolvedTrack
  • 🖌️Abstract Classes
    • 📶AbstractExternalSource
    • 🎹AbstractQueue
  • 🔖Typedefs
    • 🔍SearchResult
    • 🌋VulkavaOptions
    • 🎛️FilterOptions
    • 🪢NodeOptions
    • 📡NodeStats
    • 🔎SEARCH_SOURCE
  • 📑Enums
    • ConnectionState
    • NodeState
Powered by GitBook
On this page
  1. Docs

Recorder

Represents a recorder instance

PreviousPlayerNextDefaultQueue

Last updated 2 years ago

Methods

start()

Starts the recording

Parameter
Description

options

The recorder options object

options.id

The record id, used to download and delete it

options.bitrate

(optional) The mp3 file bitrate value (default is 64000)

options.selfAudio

(optional) Whether to record the bot's audio or not (default is false)

options.users

<> (optional) An array of user ids to record audio, if not passed, all users will be recorded

options.channels

(optional) The number of channels to record (mono or stereo) (default is 2)

options.encodeToMp3

(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

📚
🎙️
Object
String
Number
Boolean
Array
String
Number
Boolean