Git Product home page Git Product logo

ccpiwi / audioc Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.89 MB

Pure front-end decoding and audio playback without server support. The mainstream audio file formats supported by default include AMR, MP3, WAV, AAC, OGG, FLAC, and OPUS. Different browsers support the three formats to varying degrees. Among them, the MP3 format supports the best

Home Page: https://html.elsie.cc/blog/audio-player

License: GNU Affero General Public License v3.0

JavaScript 99.98% Roff 0.01% Shell 0.02%
audio mp3 amr wav

audioc's Introduction

AudioC JavaScript Library.

amrnb.js Ported opencore-amr-0.1.6.tar.gz using emscripten tool.

Build:

  1. npm run build
  2. cd build
  3. sh build.sh

Usage:

  • AudioC(): Pure front-end decoding and playback of audio without server support. The mainstream audio file formats supported by default include MP3, WAV, OGG, and AMR, and different browsers have different levels of support for these three formats. The MP3 format has the best support among them
    • Usage:
      var audio = new AudioC();
      audio.loadBlob(blob); // return Promise
      audio.loadUrl(url); // return Promise
      
      var totalTime = audio.getTotalTime();
      var currentTime = audio.getCurrentTime();
      
      audio.setGainValue(value); // 0 ~ 1.5
      audio.setPlaybackRate(pr); // 0.5 1 1.5 2
      
      audio.isPaused();
      
      audio.play();
      audio.pause();
      
      audio.skip(offset);
      
      audio.onEnded(callback);

ko-fi

audioc's People

Contributors

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