Giter Site home page Giter Site logo

snazzah / craig Goto Github PK

View Code? Open in Web Editor NEW

This project forked from craigchat/craig

0.0 1.0 0.0 3.73 MB

Craig is a multi-track voice recorder for Discord.

Shell 3.70% C 63.54% JavaScript 15.78% Makefile 0.15% PHP 6.22% C++ 9.80% Assembly 0.80%

craig's Introduction

Craig is a multi-track voice recorder for Discord. Craig is divided into three
components: The actual recording bot, the web page (for downloading
recordings), and the audio processing scripts.

The recording bot is craig.js. It is a Node.js application written with
the Eris Discord library. For historical reasons it uses the sharding manager
from discord.js. Its dependencies can be installed with `npm install`. In
principle the recording bot works fine without the other components, but the
audio files it produce aren't really usable without processing.

The web page is in PHP (yuck), but otherwise has essentially no dependencies.
The "other formats" feature, which performs audio processing in the browser,
requires ffmpeg.js. The patch for ffmpeg.js to build it with the required
modules is in ffmpeg-js-craig.diff. ffmpeg.js should be built to
ffmpeg-worker-craig.js.

The audio processing scripts require the following command-line tools:

ffmpeg ( http://ffmpeg.org/ ) compiled with libopus support
flac ( https://xiph.org/flac/ )
oggenc ( https://xiph.org/vorbis/ )
opusenc ( http://opus-codec.org/ )
fdkaac ( https://github.com/nu774/fdkaac )
zip and unzip ( http://infozip.org/ )

Various components of the audio processing scripts require compilation or
translation:
cd cook
for i in *.c; do gcc -O3 -o ${i%.c} $i; done
for i in *.svg; do inkscape -e ${i%.svg}.png $i; done

The self extractors require compilation if you want them:
cd windows; make
cd macosx; make

Finally, the avatar stuff requires ImageMagick.

If you want EnnuiCastr (browser-based recording) support, you must set
config.ennuicastr to the web address, which must be on the same host as Craig.
EnnuiCastr requires no further modification to work with Craig.

If you want Ennuizel (browser-based processing) support, you must make it
available at the location linked from the downloader (dl.php), and run ces.sh
in ennuicastr/server.

More information on Craig can be found at
https://craig.chat/


Craig can integrate with other tools (largely also by Yahweasel) to provide
improved functionality.

EnnuiCastr ( https://github.com/Yahweasel/ennuicastr/ ) is a browser-based
audio capture tool which records more reliably than Discord, and can be used to
get higher-quality audio if config.ennuicastr is set to an appropriate URL.

Ennuizel ( https://github.com/Yahweasel/ennuizel/ ) is a browser-based audio
editor which can provide audio processing features too heavy to put on the
server. The 'ennuizel' directory here is the associated client plugin for
Ennuizel as well as the server component, only required when combining Ennuizel
with Craig.


No documentation is provided for running your own instances of Craig. A user
has kindly added an installation guide to the wiki on github at
https://github.com/Yahweasel/craig/wiki , but note that this is not maintained
by the author of Craig.

RUNNING CRAIG IS NOT LIKE RUNNING ANY OTHER BOT. MOST OF THE COMPLEXITY OF
CRAIG IS NOT IN THE BOT ITSELF, BUT IN THE AUDIO PROCESSING.

IF YOU ARE NOT FAMILIAR WITH C AND UNIX, DO NOT WASTE YOUR TIME OR MINE. IF YOU
DELUDE YOURSELF INTO THINKING YOU WILL HOST CRAIG ON WINDOWS, DO NOT WASTE YOUR
TIME OR MINE. CRAIG IS NOT MERELY BUILT FOR UNIX, CRAIG IS BUILT ON THE UNIX
PHILOSOPHY.

"THIS ONE TIME I RAN A LINUX VM" IS NOT SUFFICIENT. "I CAN USE PUTTY" WON'T CUT
IT. IF THE WORD "WINDOWS" DOESN'T MAKE YOUR SKIN CRAWL, YOU ARE NOT THE KIND OF
PERSON WHO WILL SUCCEED IN RUNNING CRAIG.

If you're familiar with C and Unix, it shouldn't be too difficult to get your
own Craig working. Yahweasel is generally happy to help if you have the
requisite background.

craig's People

Contributors

annervisser avatar nan0scho1ar avatar snazzah avatar sukiletxe avatar yahweasel avatar

Watchers

 avatar

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.