Giter Site home page Giter Site logo

tanob / icanhasaudio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tenderlove/icanhasaudio

1.0 1.0 1.0 270 KB

I am in ur computar, encodin' and decodin' ur MP3z.

Home Page: http://icanhasaudio.com/

License: GNU General Public License v2.0

Ruby 35.67% C 64.33%

icanhasaudio's Introduction

= Audio::MPEG

  http://icanhasaudio.com/
  http://github.com/tenderlove/icanhasaudio/tree/master
  http://seattlerb.rubyforge.org/

== DESCRIPTION.  LULZ

Hai! icanhasaudio? is an interface to lame for decoding ur MP3s.  I iz in ur
computer. Decodin ur mp3s.  Whatevs!  I also decodin ur OGGz!  I kin also
encodin' ur WAV and AIFF to mp3z!

== SYNOPSYS ROFLOL

  require 'icanhasaudio'

  reader = Audio::MPEG::Decoder.new
  File.open(ARGV[0], 'rb') { |input_lol|
    File.open(ARGV[1], 'wb') { |output_lol|
      reader.decode(input_lol, output_lol)
    }
  }

Or even smaller:

  reader = Audio::OGG::Decoder.new
  reader.decode(File.open(ARGV[0], 'rb'), File.open(ARGV[1], 'wb'))

Encoder!!!!!! LOL

  writer = Audio::MPEG::Encoder.new
  File.open(ARGV[0]), 'rb') { |wav_lol|
    File.open(ARGV[1]), 'wb+') { |mp3_lol|
      writer.encode(wav_lol, mp3_lol)
    }
  }

== PROBLEMS

Currently only decodes MP3/OGG data.  Also encodes WAV/AIFF to mp3. Plus many
other problems....  YMMV. LOL.
Not laugh plz!

== DEPENDENSEEZ

Make sure lame is installed on ur 'puter.  Also ogg and vorbisfile!

  # port install libvorbis vorbis-tools lame

== CREDITZ

Thanx Ryan for mah name!  Also, most of this code was taken from the lame
front end.  So thank you to the lame team!  THX VORBIS!

== LICENSE

GPL.  See LICENSE.txt

KTHX BAI!

icanhasaudio's People

Contributors

tenderlove avatar tanob avatar

Stargazers

 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.