Giter Club home page Giter Club logo

celt-ruby's Introduction

celt-ruby

http://www.github.com/perrym5/celt-ruby

DESCRIPTION:

CELT-Ruby is a Ruby Gem for working with the CELT Audio Codec. CELT-Ruby uses the Ruby-FFI extension to wrap the native CELT library code. This means that you must have CELT installed in order for this gem to work.

FEATURES:

This gem was designed to fill a specific role in another one of my projects. As a result, the feature set is relatively small compared to the native libraries. However, I will accept any pull requests with additional functionality should someone need it.

What this library can do:

  • Encode raw audio to CELT

REQUIREMENTS:

  • Ruby >= 1.9.2

  • CELT 0.7 Library

INSTALL:

[sudo] gem install celt-ruby

USAGE:

# Create new encoder with a sample rate of 48 kHz, a frame size of 480 bytes and 1 channel
encoder = Celt::Encoder.new 48000, 480, 1, [60000 / 800, 127].min
# Set the prediction request to 0
encoder.prediction_request = 0
# Set the VBR rate to 60,000
encoder.vbr_rate = 60000

# Return the bitstream version for this version of CELT
encoder.bitstream_version

# Encode some raw audio
encoded = encoder.encode raw_audio

# Safely destroy encoder
encoder.destroy

celt-ruby's People

Contributors

dafoxia avatar loscoala avatar

Watchers

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