microsoft / node-speech

node.js bindings for Azure Speech SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

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.

About

node.js bindings for Azure Speech SDK

License:MIT License


Languages

Language:C++ 53.3%Language:Python 28.3%Language:TypeScript 12.0%Language:JavaScript 4.7%Language:PowerShell 1.7%