Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fengdonglp/rtt
A tool to convert a recording into a text
https://github.com/fengdonglp/rtt
convert ffmpeg nodejs recording
Last synced: 25 days ago
JSON representation
A tool to convert a recording into a text
- Host: GitHub
- URL: https://github.com/fengdonglp/rtt
- Owner: fengdonglp
- License: mit
- Created: 2018-07-03T01:25:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T20:40:43.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T09:30:05.513Z (about 2 months ago)
- Topics: convert, ffmpeg, nodejs, recording
- Language: JavaScript
- Size: 3.04 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# audio-to-text
> Using Baidu speech recognition module to realize voice to text conversion
## Dependencies
* [fluent-ffmpeg](http://ffmpeg.org/ "ffmpeg") ffmpeg download url:[http://ffmpeg.org/download.html](http://ffmpeg.org/download.html)
* [baidu-aip-sdk](https://github.com/Baidu-AIP/nodejs-sdk) Official document:[http://ai.baidu.com/docs#/ASR-Online-Node-SDK/top](http://ai.baidu.com/docs#/ASR-Online-Node-SDK/top)
You need to register and create speech recognition applications on Baidu AI open platform.## Installation
``` shell
$ npm install audio-to-text
```## Usage
``` javascript
const Att = require('audio-to-text');// baidu AI application configuration information
const baiduConfig = {
"APP_ID": "your APP_ID",
"API_KEY": "your API_KEY",
"SECRET_KEY": "your SECRET_KEY"
}const speech = new Att(baiduConfig);
const file_path = 'your file path';speech.audio2Text(file_path).then(text => {
console.log(text);
}).catch(console.log.bind(console));
```## Questions
* If the audio quality is too poor, Baidu speech will not be recognized, so the transformation result may be empty.