Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fengdonglp/rtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

audio-to-text

Using Baidu speech recognition module to realize voice to text conversion

Dependencies

Installation

$ npm install audio-to-text

Usage

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.

About

A tool to convert a recording into a text

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •