npm.io
0.0.2 • Published 3 years ago

@dytesdk/aws-transcribe

Licence
MIT
Version
0.0.2
Deps
5
Size
200 kB
Vulns
0
Weekly
0

Logo

AWS Transcribe & translations by Dyte


Explore the docs »

Report Bug • Request Feature

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.