ASR VietSpeech Library for Node.js
- ASR VietSpeech Library API Reference
- ASR VietSpeech Library Documentation
Table of contents:
Before you begin
Installing the client library
npm install asr-vietspeech
Using the client library
const ViSpeech = ;const fs = ;// The name of the audio file to trascriptconst fileName = __dirname + '\\files\\audio.wav';console;// Reads a local audio file and converts it to base64const file = fs;file// The audio file's encoding, sample rate in hertz, timeout, maxSize, tokenconst config =token: processenvAPI_KEY // set api key get from asr systemencoding: 'LINEAR16' // set encodingsampleRateHertz: 16000 // set rate Hztimeout: 10000 // 10 secondsmaxSize: 51200 // 50 Mb;const asrViSpeech = config;asrViSpeech
Samples are in the
samples/ directory. The samples'
has instructions for running the samples.
The ASR Vispeech Node.js Client API Reference documentation also contains samples.
Supported Node.js Versions
Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js.
Client libraries targetting some end-of-life versions of Node.js are available, and
can be installed via npm dist-tags.
The dist-tags follow the naming convention
Legacy Node.js versions are supported as a best effort:
- Legacy versions will not be tested in continuous integration.
- Some security patches may not be able to be backported.
- Dependencies will not be kept up-to-date, and features will not be backported.
This library follows Semantic Versioning.
This library is considered to be General Availability (GA). This means it is stable; the code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against GA libraries are addressed with the highest priority.