New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

audio2text

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio2text

Converts mp3 audio to text using Google Speech Recognition.

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
151
-76.8%
Maintainers
2
Weekly downloads
 
Created
Source

audio2text

audio2text Converts mp3 audio to text using Google Speech Recognition.

Requirements

  • node > 10.10.1
  • Google Cloud Speech-to-Text API Credentials Download the file key.json of the service account. Note the project id, private key, and client email

Configuration

To run this project, you'll need to set following environment variables -

GOOGLE_VOICE2TEXT_PRIVATE_KEY, GOOGLE_VOICE2TEXT_CLIENT_EMAIL, and GCS_PROJECT_ID

Using the library

If an audio duration is longer than 1 minute then use attribute runningLength:long

Default value for runningLength is short.

const audio2text = require('audio2text');

const params = {
    url: 'https://storage.googleapis.com/assets.frapp.in/WhatsApp-Ptt-2020-10-16-at-6.02.22-PM.mp3',
    runningLength:'short'
}
audio2text.recognize(params).then(transcript => {
	console.log(transcript)
});

Keywords

google speech to text conversion

FAQs

Package last updated on 06 May 2021

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