0.0.3 • Published 4 years ago
speech-sdk v0.0.3
Introduction
DeepSpeech sdk for browser .
#Installation of npm package / from git repositiry
Add following the the package.json dependencies
"speech-sdk": "git+ssh://smartek21India@vs-ssh.visualstudio.com:v3/smartek21India/IntelligentMachines/speech-sdk"
Add import statement
import * as SDK from 'speech-sdk'
Uses
let obj = new SDK.DeepSpeech(); await obj.init(); try{ obj.recordAudio(); setTimeout( async function(){ let text= await obj.stopAudio(); console.log("stop Audio resolved",text) }, 5000); }catch(err){ console.log(err) }
In a Browser, using Webpack
- run "npm run bundle" this will generate a bundle file .
- Add the generated bundle to your html page: