VoiceVista is a real-time voice translation web application that allows you to speak in one language and get instant translation speech in another.
- Real-time speech-to-text conversion
- Text-to-speech output for translated text
- User-friendly interface with mobile-responsive design
- Easy language selection with searchable dropdowns
demo.mp4
Before you begin, ensure you have met the following requirements:
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
- A Google Cloud Platform account with Speech-to-Text and Translation APIs enabled
- A valid Google Cloud service account key
-
Clone the repository:
git clone https://github.com/aldrinjenson/realtime-voice-translator cd realtime-voice-translator
-
Install the dependencies:
npm install
-
Create a
config
folder in the root directory and add agoogleCloud.js
file with your Google Cloud credentials:module.exports = { keyFilename: '/path/to/your/google-cloud-credentials.json' };
-
Start the server:
npm start
-
Open your web browser and navigate to
http://localhost:3000
(or the port you've configured).
- Select your source language from the first dropdown.
- Select your target language from the second dropdown.
- Click and hold the microphone button to start recording your voice.
- Release the button to stop recording and wait for the translation.
- The original text and its translation will appear on the screen.
- Click the speaker icon next to the translated text to hear it spoken aloud.