audio-to-text
Using Baidu speech recognition module to realize voice to text conversion
Dependencies
- fluent-ffmpeg ffmpeg download url:http://ffmpeg.org/download.html
- baidu-aip-sdk Official document: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
$ npm install audio-to-text
Usage
const Att = ;// baidu AI application configuration informationconst baiduConfig ="APP_ID": "your APP_ID""API_KEY": "your API_KEY""SECRET_KEY": "your SECRET_KEY"const speech = baiduConfig;const file_path = 'your file path';speech;
Questions
- If the audio quality is too poor, Baidu speech will not be recognized, so the transformation result may be empty.