Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

audio-to-text

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-to-text

A tool to convert an audio into a text.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

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  = 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.

Keywords

FAQs

Package last updated on 06 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc