Coder Social home page Coder Social logo

dobra-noc-recorder's Introduction

Dobra Noc recorder

Recorder for the Dobra Noc project.

Installation

Firstly, make sure you have Elixir installed and that the following native dependencies are available in your system:

  • Portaudio 19.6.0
  • FLAC 1.3.2

If not, install them with

apt-get update
apt-get -y install portaudio19-dev
apt-get -y install libflac-dev

Then fetch elixir dependencies

mix deps.get

Running

Once installed, project can be run by typing mix start. The following system variables are supported:

  • DOBRANOC_IP - by default 127.0.0.1
  • DOBRANOC_PORT - by default 8123

API

To save recording from given period, make a POST request to /save_rec, with a JSON containing the following fields:

  • from - unix timestamp (integer), beginning of recording
  • to - unix timestamp (integer), end of recording
  • location - path where to save recording (string); ".flac" extension will be appended

Example:

curl -H "Content-Type: application/json" \
  -d '{"from":'$(($(date +%s) - 10))', "to":'$(($(date +%s) - 5))', "location":"out/out"}' \
  -X POST http://localhost:8123/save_rec

dobra-noc-recorder's People

Contributors

mat-hek avatar

Watchers

James Cloos 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.