/voice-to-voice-aws

Demo project for showcase at the Vivo City Amazon SkillsFuture event, 2023.

Primary LanguageJavaScriptMIT LicenseMIT

Alexa Voice Translator 🎙️🌐

Project Overview

This project integrates several AWS (Amazon Web Services) AI/ML (Artificial Intelligence/Machine Learning) services to create a fun and interactive web application that can translate spoken phrases into different languages and produce lifelike voice output. The main components are an Amazon Echo Dot, Amazon Alexa, Amazon Translate, and Amazon Polly. In addition to voice interaction, this project features a web interface to provide visual feedback for users. 🖥️💬

The Echo Dot is a voice-controlled smart speaker with Alexa, Amazon's voice assistant. In this project, it serves as the primary input interface, receiving spoken phrases from users.

These spoken phrases are captured by Alexa, which then interacts with other AWS services to perform the translation and voice synthesis.

Amazon Translate is used to translate the user's spoken phrase into a different language. Amazon Polly, AWS's text-to-speech service, is then used to generate lifelike speech from the translated text, possibly in a different language.

The web interface shows both the original input and the translated output, giving users a clear view of the translation process. 🔄

The result is an application that accepts spoken phrases, translates them into different languages, speaks the translated phrases back to the user in a lifelike voice, and displays the input and output on a web interface. 🎉

Project Features

  • Interactive Voice Control: The project is built around the Amazon Echo Dot, allowing users to interact with it using voice commands. 🎤
  • Real-time Translation: Amazon Translate is used to translate user's spoken phrases into different languages in real-time. 🌐
  • Lifelike Voice Output: Amazon Polly is used to generate lifelike speech from the translated text, creating an engaging and immersive user experience. 🗣️
  • Visual Feedback: A web interface is used to display both the original input and the translated output, providing users with a visual understanding of the translation process. 🖥️💬
  • AWS Integration: The project demonstrates how to integrate and use various AWS services, including Alexa, Amazon Translate, and Amazon Polly. ☁️

How It Works

  1. The user speaks a phrase into the Amazon Echo Dot. This phrase is captured by Alexa.
  2. Alexa then triggers an AWS Lambda function, which receives the spoken phrase as input.
  3. The Lambda function uses Amazon Translate to translate the phrase into a different language.
  4. The translated text is then passed to Amazon Polly, which synthesizes the text into lifelike speech.
  5. The synthesized speech is returned to Alexa, which then outputs the speech through the Echo Dot.
  6. Both the original input and translated output are displayed on the web interface. 🔄💬

Getting Started

To use this project, you'll need an Amazon Echo Dot and an AWS account. You'll also need to set up an Alexa skill in the Alexa Developer Console, a corresponding Lambda function in the AWS Management Console, and a web interface to display the results.

License

This project is licensed under the terms of the MIT license. 📝