GithubHelp home page GithubHelp logo

garraly / mp3-to-wav Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roren15/mp3-to-wav

0.0 0.0 0.0 65 KB

A mp3 converter, converting mp3 file to wav type, for both audio type mono or stero

Home Page: https://www.npmjs.com/package/mp3-to-wav

License: MIT License

JavaScript 48.90% Java 51.10%

mp3-to-wav's Introduction

mp3-to-wav

Convert mp3 audio data to wav type, for both audio type mono and stero

npm install mp3-to-wav

1. Install

$ npm install --save mp3-to-wav

2. Usage

const Mp32Wav = require('mp3-to-wav')
new Mp32Wav('mp3 file absolute dir / .mp3 file').exec()
// will produce wav file on provided dir

3. Api

Init

const Mp32Wav = require('mp3-to-wav')
const mp32Wav = new Mp32Wav('mp3 file dir / .mp3 file','wav file saving dir')
arguments required description
mp3_file_path true absolute path to for mp3 file
wav_file_saving_dir false default to same with mp3 file

Function

mp32Wav.exec()

convert mp3 file to wav file

mp32Wav.decodeMp3()

decode mp3 file

arguments required description
mp3_file_path true absolute path to for mp3 file

mp32Wav.saveForWav()

encode wav file and saving

arguments required description
buffer true pure voice data wrapped by array
savePath true saving path
filename false filename without postfix
sampleRate true sampleRate
channels true channels number
float false saving type inside

mp3-to-wav's People

Contributors

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