Giter Club home page Giter Club logo

wavesurfer.js's Introduction


โœจ We're excited to introduce version 7.0.0-alpha codenamed wavesurfer.ts, a TypeScript rewrite of wavesurfer.js with better performance and new plugins. Give the alpha version a spin and let us know what you think! Check out the wavesurfer.ts README to get started. Happy coding! โœจ


npm version npm Join the chat at https://gitter.im/wavesurfer-js/wavesurfer.js GitPOAP Badge

Interactive navigable audio visualization using Web Audio and Canvas.

Screenshot

See docs and examples on wavesurfer-js.org.

For a video tutorial, watch this series by Live Blogger on YouTube. ๐Ÿ“บ

Questions

Have a question about integrating wavesurfer.js on your website? Feel free to ask in our forum: https://github.com/wavesurfer-js/wavesurfer.js/discussions/categories/q-a

Quick start

Install the package:

npm install wavesurfer.js --save

# or

yarn add wavesurfer.js

And import it like so:

import WaveSurfer from 'wavesurfer.js'

If you're not using a package manager, simply insert the script from a CDN:

<script src="https://unpkg.com/[email protected]"></script>

Create a container in your HTML:

<div id="waveform"></div>

Create an instance of wavesufer.js, passing the container selector and a few options:

var wavesurfer = WaveSurfer.create({
    container: '#waveform',
    waveColor: 'violet',
    progressColor: 'purple'
});

Subscribe to some events:

wavesurfer.on('ready', function () {
    wavesurfer.play();
});

Load an audio file from a URL:

wavesurfer.load('example/media/demo.wav');

Documentation

See the documentation on all available methods, options and events on the homepage.

Projects using wavesurfer.js

For the list of projects using wavesurfer.js, check out the projects page.

Contributing

Have an idea and want to contribute to wavesurfer.js? Please first start a discussion in the Ideas section of our forum to coordinate with the maintainers.

Development

Build Status Coverage Status Size

Install development dependencies:

npm install

Development tasks automatically rebuild certain parts of the library when files are changed (start โ€“ wavesurfer, start:plugins โ€“ plugins). Start a dev task and go to localhost:8080/example/ to test the current build.

Start development server for core library:

npm run start

Start development server for plugins:

npm run start:plugins

Build all the files. (generated files are placed in the dist directory.)

npm run build

Running tests only:

npm run test

Build documentation with esdoc (generated files are placed in the doc directory.)

npm run doc

If you want to use the VS Code - Debugger for Chrome, there is already a launch.json with a properly configured sourceMapPathOverrides for you.

Editing documentation

The homepage and documentation files are maintained in the gh-pages branch. Contributions to the documentation are especially welcome.

Releasing a new version

To release a new version and publish it to NPM, follow the steps below.

Switch to the master branch and make sure it's up-to-date

git checkout master
git fetch --all; git reset --hard origin/master

Run the release script:

yarn release

This will update the version, generate a changelog, and push everything to a new branch called release/X.X.X.

A browser window will open to create a PR from this new branch to the master branch. Once the PR is approved and merged, an automated workflow will kick in and publish a release both on GitHub and NPM.

Credits

The main maintainer: Thijs Triemstra

Many thanks to all the awesome contributors!

License

License

This work is licensed under a BSD 3-Clause License.

wavesurfer.js's People

Contributors

thijstriemstra avatar katspaugh avatar mspae avatar mwise avatar jabr avatar rgagnon24 avatar osheroff avatar fluffywaffles avatar entonbiba avatar marizuccara avatar panda-go-panda avatar chrisparton1991 avatar akreal avatar naomiaro avatar fzyukio avatar tf avatar agamemnus avatar sundayz avatar gintelllect avatar x-raym avatar binron avatar lorenzos avatar vikeen avatar roboswank avatar lionelb avatar marcelblum avatar whenov avatar ffxsam avatar nabiulin avatar n-st 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.