Skip to content

pablorenato1/Whatsapp-transcribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whatsapp Audio to text using Amazon transcribe

Node Modules:

  • Whatsapp-web.js - Version 1.17.1
  • node-fetch - Version 3.2.10
  • uuid - Version 9.0.0
  • qrcode-terminal - Version 0.12.0
  • Where the ideia came from ?

    This assignment for college involves exploring AWS services and developing interactions with them. As part of the project, I designed an API capable of extracting audio from a WhatsApp chat and converting it from speech to text.

    What this API does ?

    This API is designed to retrieve audio from a specific WhatsApp chat, transmit it to Amazon Transcribe for the conversion of audio to text, and subsequently respond on WhatsApp with the text corresponding to the original audio.

    This project not only makes use of Amazon Transcribe but also incorporates a structured approach. It involves utilizing an S3 bucket for storing the audio file and leveraging a Lambda Function to execute the Transcribe process, saving the results in a separate S3 bucket from the original audio. The connection between my API and AWS services is established through the AWS service API Gateway.

    AWS Digram

    When receives audio on Whatsapp the API will get the audio and send a request to the API gateway to save the audio on the S3 bucket input this bucket has an event listener that going to trigger a Lambda function when the bucket has a new file(rename also trigger).
    The lambda function is going to get the new file and send it to Amazon Transcribe to be executed and return an object that going to be saved in a different bucket from the previous one.