🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

computes-dictation-google

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

computes-dictation-google

transcribes audio files

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Computes Dictation NPM

Performs massively parallel transcription of audio files using Watson Speech-to-Text and Computes.io.

Usage

Computes.io kernel would look something like this:

// Google Speech to Text
var computes = require("computes");
var operation = "npm://computes-dictation-google@latest";

var options = {
  domain: "domain-key-provided-by-computesio",
  priority: "normal",  //'low', 'normal' & 'high'
  ttl: 60000,  // milliseconds
  delay: 0 //milliseconds
};

var job = computes.connect(options.domain);

job.on("ready", function (){

  var params = {
    audioUrl: "https://www.dropbox.com/s/eflf4ola9c7kkxi/0.wav?dl=1",
    contentType: "audio/wav; rate=48000"
  };

  job.compute(operation, params, options);

});

job.on("result", function (results){
  console.log(results.result);
  job.disconnect();
});

{ result: 'the house has a thatched roof ' }

Reference documentation

  • Computes.io

Keywords

computes

FAQs

Package last updated on 07 May 2017

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