diathelia / Platypus

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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

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

License:Other


Languages

Language:JavaScript 95.9%Language:CSS 2.0%Language:HTML 1.5%Language:ASP 0.6%