AI Voice Translator
December 18, 2024 ยท View on GitHub
A voice translator and transcriber app created in Electron with React and TypeScript
Input/Output Audio Example: (Unmute to listen)
Features
Note: You must setup Voice Cloning to translate your own voice into any of the 32 supported languages.
- Speech-To-Speech
- Select your
Input LanguageandOutput Language Start Recordingfrom your microphone and once youStop Recording, it will transcribe whatever you said, translate to the language of your choice, then output the translated voice.
- Select your
- Translate File
- Select your
Input LanguageandOutput Language Upload Filelocally, then it will also transcribe, translate, then output the translated voice.
- Select your
- Translate URL
- Select your
Input LanguageandOutput Language - Enter the
Audio URL, then clickSubmit URLand it will also transcribe, translate, then output the translated voice.
- Select your
- Text-To-Speech
- Select your
Input LanguageandOutput Language - Enter any
Text To Be Translatedin the input, clickTranslateand it will translate, then output the translated voice.
- Select your
Recommended IDE Setup
Project Setup
API Keys
You will need to make an account and get an API for the following:
- Deepgram
- Link: https://deepgram.com/
- Tier: Free (Includes $200 of credit)
- AssemblyAI
- Link: https://www.assemblyai.com/
- Tier: Free (Includes $50 of credit)
- ElevenLabs
- Link: https://elevenlabs.io/
- Tier: Starter or higher for Voice Cloning ($5 USD/month). Free (10k credits) for generic voice generation
- Note: You will need to copy your Voice ID for the .env variable if you do clone or want a different voice
.env Setup
cp .env.example .env
Then populate the following API Keys in your .env file:
VITE_DEEPGRAM_API_KEYVITE_ASSEMBLYAI_API_KEYVITE_ELEVENLABS_API_KEYVITE_ELEVENLABS_VOICE_ID(Use one your IDs from ElevenLabs Voice Lab or it will default to Will)
Install
yarn
Development
yarn dev
Build
# For windows
yarn build:win
# For macOS
yarn build:mac
# For Linux
yarn build:linux