1.3.0 • Published 3 years ago

audio2text v1.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

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)
});
1.3.0

3 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago