Skip to content

Instantly share code, notes, and snippets.

View wei-li-2016's full-sized avatar
🎯
Focusing

Wei Li wei-li-2016

🎯
Focusing
  • Remote
View GitHub Profile
@wei-li-2016
wei-li-2016 / main.js
Created April 26, 2019 15:13
mp3totext
const flac = require('node-flac');
const fs = require('fs');
const lame = require('lame');
const util = require('util');
const Speech = require('@google-cloud/speech');
if (process.argv.length < 4) {
console.log("Usage: " + __filename + " FILENAME LANGUAGECODE");
process.exit(-1);
}