1.1.0 • Published 3 years ago
@soniox/soniox-node v1.1.0
Soniox Node.js Client Library
Requirements
Node.js v14 or higher.
Usage
npm install @soniox/soniox-nodeUsage with require():
const { SpeechClient } = require("@soniox/soniox-node");or with ES6 import:
import { SpeechClient } from "@soniox/soniox-node";Development
Install NPM modules:
npm installBuild gRPC Typescript definitions from .proto file:
npm run build:protoBuild library:
npm run buildWatch for file changes and automatically rebuild:
npm run build:watchBuild local npm package:
npm packThis generates soniox-soniox-node-<version>.tgz in the project directory.
To test using the local package in another project, edit package.json in that project:
"dependencies": {
"@soniox/soniox-node": "/<path_to_your_project>/soniox-soniox-node-<ver>.tgz"
}Then run npm install in that project.