Giter Club home page Giter Club logo

discord-voice-recorder's Introduction

Hi there 👋

discord-voice-recorder's People

Contributors

alexisok avatar bethdevjs avatar chebro avatar radiantly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discord-voice-recorder's Issues

Auto Convert PCM File to MP3?

Since FFmpeg is a dependency is it possible to convert the output file to MP3 format? Will be easier to manage, thanks!

Additional empty file created

When I record voices, it detect and create 2 PCM files : one with my voice, and an empty file.

Is it normal ? How can I have a single file ?

VOICE_CONNECTION_TIMEOUT

an error message appears.
/workspace/discord-voice-recorder/node_modules/discord.js/src/client/voice/VoiceConnection.js:303
this.emit('error', new Error(reason));
^

Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
at VoiceConnection.authenticateFailed (/workspace/discord-voice-recorder/node_modules/discord.js/src/client/voice/VoiceConnection.js:303:26)
at /workspace/discord-voice-recorder/node_modules/discord.js/src/client/voice/VoiceConnection.js:324:61
at Timeout. (/workspace/discord-voice-recorder/node_modules/discord.js/src/client/BaseClient.js:82:7)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
[Symbol(code)]: 'VOICE_CONNECTION_TIMEOUT'
}
how can I fix it?

A new cmd

A cmd to convert the audio to mp3 and send to discord (if under the free limit)

Bot crashes when audio is detected

Bot runs fine when started up until it joins a VC, it crashes and shows the following:

C1sc0 started speaking
events.js:174
throw er; // Unhandled 'error' event
^

Error: ENOENT: no such file or directory, open '/home/linux/discord-voice-recorder/bin/../recordings/1612217676160.pcm'
Emitted 'error' event at:
at errorOrDestroy (internal/streams/destroy.js:107:12)
at WriteStream.onerror (_stream_readable.js:734:7)
at WriteStream.emit (events.js:198:13)
at lazyFs.open (internal/fs/streams.js:277:12)
at FSReqWrap.args [as oncomplete] (fs.js:140:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/linux/.npm/_logs/2021-02-01T22_14_36_168Z-debug.log

Bot stops recording after couple of seconds

Got the bot running, detects and records audio, but after a couple of seconds the messages of started and stopped speaking stop and it seems the audio doesnt get recorded as well.

Create a Dockerfile

Create a Dockerfile to bundle all dependencies.
Mount /recrodings as a persistent volume.

voiceChannel.leave() : TypeError: Cannot read property 'leave' of null

When leaving a channel, I'm meeting the following error :

C:\Users\remon\Documents\workspace\discord-voice-recorder\bin\commands.js:48
voiceChannel.leave();
^

TypeError: Cannot read property 'leave' of null
at Object.exports.exit (C:\Users\remon\Documents\workspace\discord-voice-recorder\bin\commands.js:48:18)
at Client. (C:\Users\remon\Documents\workspace\discord-voice-recorder\index.js:22:51)
at Client.emit (events.js:376:20)
at MessageCreateAction.handle (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\websocket\WebSocketManager.js:345:31)
at WebSocketShard.onPacket (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\websocket\WebSocketShard.js:443:22)
at WebSocketShard.onMessage (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\websocket\WebSocketShard.js:300:10)
at WebSocket.onMessage (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\ws\lib\event-target.js:132:16)
at WebSocket.emit (events.js:376:20)

Any idea where it comes from and how to fix it ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.