JSPM

oxford-speech-wrapper

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q34270F
  • License ISC

simple bing voice recognition wrapper

Package Exports

  • oxford-speech-wrapper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (oxford-speech-wrapper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

a simple wrapper for oxford speech recognition

const fs = require('fs');
const oxspeech = require('../app.js');

var cred = {
  client_id: 'xxx',
  client_secret: 'xxx'
};
oxspeech.authenticate(cred, (err, access_token) => {
  if(err) throw err;
  console.log('successfully authentificated');
  var wav = fs.readFileSync('./tests/weekend.wav');
  oxspeech.recognize({access_token: access_token}, wav, (error, data) => {
    console.log(data.results[0].name);
  });
});