0.0.2 • Published 10 months ago

@dytesdk/aws-transcribe v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Table of Contents

About The Project

This package provides audio transcriptions in various languages.

Built With

Getting Started

Prerequisites

Installation

npm i @dytesdk/aws-transcribe

Usage

A speech object can be created using DyteAWSTranscribe class.

import DyteAWSTranscribe from '@dytesdk/aws-transcribe';

const awsTranscribe = new DyteAWSTranscribe({
    meeting,
    target: 'hi', // Optional if translate is false, Supported languages: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
    translate: true, // Control whether to translate the source language to target language or just transcribe
    source: 'en-US', // Supported languages: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
    preSignedUrlEndpoint: 'http://localhost:3001/aws-transcribe-presigned-url',
    translationEndpoint: 'http://localhost:3001/translate',
});




awsTranscribe.on('transcription', async (data) => {
    // ... do something with transcription
    // console.log(speech.transcriptions);
});

awsTranscribe.transcribe();

Contributing

We really appreciate contributions in the form of bug reports and feature suggestions. Help us make Dyte better with your valuable contributions on our forum 🙂.

License

All rights reserved. © Dyte Inc.