https://github.com/binaryify/amrtomp3
amr转mp3模块 amr to mp3 module
https://github.com/binaryify/amrtomp3
arm mp3
Last synced: 8 months ago
JSON representation
amr转mp3模块 amr to mp3 module
- Host: GitHub
- URL: https://github.com/binaryify/amrtomp3
- Owner: Binaryify
- License: mit
- Created: 2016-09-29T10:31:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T06:55:58.000Z (over 3 years ago)
- Last Synced: 2025-06-26T06:38:17.044Z (9 months ago)
- Topics: arm, mp3
- Language: JavaScript
- Homepage:
- Size: 512 KB
- Stars: 85
- Watchers: 3
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# amrToMp3
amr to mp3 nodeJS module
amr音频转mp3模块
## Installation
This module is installed via npm:
```
$ npm install amrToMp3
```
## api
```js
amrToMp3(sourcePath[,outputPath, outputName]) //outputPath default:./src/mp3/
```
## usage
js
```js
const amrToMp3 = require('amrToMp3')
amrToMp3('src/amr/test.amr')
.then(function (data) {
console.log(data) // ./src/mp3/test.mp3
//...some code
})
.catch(function (err) {
console.log(err)
})
```
or
```js
const amrToMp3 = require('amrToMp3')
const data = await amrToMp3('src/amr/test.amr') // ./src/mp3/test.mp3
console.log(data)
```
## support
* 64 bit Mac OSX
* 64 bit Linux
* 32 bit Linux
* 64 bit Windows
* 32 bit Windows
## test
```
$ npm test
```
## build
```
$ npm run build
```