node-speech
A node.js binding for a subset of the Azure Speech SDK. Specifically for the Embedded Speech.
Installation
Install with npm:
npm ci
Usage
import * as speech from '@vscode/node-speech';
const modelName = '<name of the speech model>';
const modelPath = '<path to the speech model>';
const modelKey = '<key for the speech model>';
// Live transcription from microphone
speech.transcribe({ modelName, modelPath, modelKey, signal, wavPath: undefined }, (err, res) => console.log(err, res));
// Transcription from *.wav file
speech.transcribe({ modelName, modelPath, modelKey, signal, wavPath: 'path-to-wav-file' }, (err, res) => console.log(err, res));
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
License
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.