0.0.2 • Published 10 months ago
@dytesdk/aws-transcribe v0.0.2
Table of Contents
About The Project
This package provides audio transcriptions in various languages.
Built With
Getting Started
Prerequisites
- npm
- server, running https://github.com/dyte-in/aws-transcribe/tree/main/server, this runs a server on localhost:3001
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.