Skip to content

Download any ogg file (e.g. Whatsapp audio) and convert speech to text with this simple script

Notifications You must be signed in to change notification settings

danperrout/ogg-speech-to-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ogg-speech-to-text

Download any ogg file (e.g. Whatsapp audio) and convert speech to text with this simple script

Installation

Clone or download this repository: git clone https://github.com/danperrout/ogg-speech-to-text.git

Cd into the folder: cd ogg-speech-to-text

Install the dependecies: npm i

Download your Google Credentials to use the "@google-cloud/speech" API.

Rename the env.sample file to .env

Set the variables inside the new file:

GOOGLE_APPLICATION_CREDENTIALS=<YourGoogleApicredential.json>
SOURCE_FOLDER=/Download/Path/of/ogg/files
DESTINATION_FOLDER=./extracted_audios/
LOG_FILE=log.txt
LANGUAGE=pt-BR

Usage

Download the ogg files to the folder set on the SOURCE_FOLDER variable.

Run, in the terminal: node index.js

Check the log file (LOG_FILE variable) The script checks for .ogg files inside the SOURCE_FOLDER.

Then it extracts and, after, moves the file to the DESTINATION_FOLDER location.

About

Download any ogg file (e.g. Whatsapp audio) and convert speech to text with this simple script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published