Giter Club home page Giter Club logo

svar's Introduction

SVAR - Simple Voice Activated Recorder

Build Status

It is a simple console application (low memory footprint and CPU usage) designed for recording audio when a specified signal level is exceeded. It is commonly known solution called Voice Operated Recording (VOR). When the signal level is low for longer than the fadeout time, audio recording is paused.

On Linux systems, capturing the audio signal is based on the ALSA technology. For all other systems, PortAudio library will be used. Alternatively, it is possible to force PortAudio back-end on Linux systems by adding -DENABLE_PORTAUDIO=ON to the CMake configuration step.

Currently this application supports four output formats:

For low CPU consumption WAV is recommended - it is the default selection.

There is also possible to split output file into chunks containing continuous recording. New output file is generated every time a new signal appears (after the split time period). In such a case, the time of signal appearance can be determined by the output file name, which by default is in the format of "rec-DD-HH:MM:SS". It is possible to customize it with a strftime(3) format string.

For the fine adjustment of the activation condition (the signal level), one can run svar with the --sig-meter parameter. This activates the signal meter mode, in which the maximal peak value and the RMS is displayed. Activation threshold is based on the maximal peak value in the signal packed (time of tenth of the second).

Installation

mkdir build && cd build
cmake .. -DENABLE_SNDFILE=ON -DENABLE_MP3LAME=ON -DENABLE_VORBIS=ON
make && make install

svar's People

Contributors

arkq 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.