Coder Social home page Coder Social logo

diathelia / platypus Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 1.11 MB

An audio tool using the Web Audio API to record, visualize and edit mp3 blobs

Home Page: https://diathelia.github.io/Platypus/index.html

License: Other

JavaScript 95.90% HTML 1.45% CSS 2.01% ASP 0.65%
javascript js web audio api web-audio-api mp3 lame encoder authoring authoring-tool tool getusermedia edit-mp3-blobs blobs

platypus's Introduction

An audio tool which uses the Web Audio API to record, visualize and edit mp3 blobs

Adapted from Zhuker's excellent LAME.js library https://github.com/zhuker/lamejs

The full 4.47mb Library can be found there but is omitted here to reduce app size

Platypus uses a callback polyfill for the Streams API getUserMedia promise

Platypus uses a monkey patch to alias Web Audio API syntax for WebKit browsers

Platypus uses FileSaver.js to give blob downloads semantic filenames instead of UID's

~ | ~

This repo also contains a feature detection script for all core dependencies and also
run Platypus audio specific tests properties on the following two bugs:

  • Sometimes the audio blob is properly encoded but the browser fails to display it;
    to counteract this a sample blob mp3 from Platypus is included to test blob URLs

  • Sometimes the hardware and browser prefers sample rates and buffer sizes which
    can cause a sporadic mixture of sped-up playback and high-end artifacts; while this
    is currently fixed via a forced huge bufferSize of 16384 bytes, new devices and
    operating systems may have issues reoccur. To help debug them the preferred
    sample and buffer values are also saved.

When run, this script saves the level of support and preferred sample/buffer values;
these are all returned as an object to the IsMicSupported global module for access

platypus's People

Contributors

diathelia avatar

Stargazers

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