1.5.7 • Published 12 months ago

olaris-wav-realtime-transcription v1.5.7

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

olaris-wav-realtime-transcription

This is a node.js module used to transcribe wav files using Olaris v2 realtime transcription service.

Usually, for non-realtime transcription (like from audio recordings) you would the Olaris File API. However, currently the File API doesn't support Olaris engine v2 that shows superior results when handling AEC (Acoustic Echo Cancellation) processed audio. So until v2 becomes available in the File API, the alternative is to use the Olaris Realtime API and send the audio as if it were being generated in realtime (respecting tranmission data rates). This is what this module takes care of.

Sample usage

const tl = require('tracing-log')
const wav = require('wav')
const OWRT = require('olaris-wav-realtime-transcription')

const language = 'ja-JP' // Olaris currently only supports Japanese

const config = {
    api_base: 'realtime.v2.stt.stg.olaris.cloud/real-time-decode',
    product_name: 'YOUR_PRODUCT_NAME,
    organization_id: 'YOUR_ORGANIZATION_ID',
    api_key: 'YOUR_API_KEY',
}

const context = {model_alias: 'model_ja_business'}

const reader = new wav.Reader()

const uuid = 'some-uuid-for-log-correlation'

const wav_file = 'sample.wav'

// you need to provide a log object
const uuid = 'SOME_UNIQUE_IDENTIFIER_FOR_DEBUG_AND_CORRELATION'
const log = tl.gen_logger(uuid)

OWRT(reader, wav_file, language, config, context, log)
.then(transcription => {
    console.log(transcription)
    process.exit(0)
})
1.5.4

12 months ago

1.5.2

12 months ago

1.5.0

12 months ago

1.5.7

12 months ago

1.5.6

12 months ago

1.4.0

12 months ago

1.3.2

12 months ago

1.3.0

12 months ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago