0Xiaohei0 / VoiceToJapanese

146 stars 19 forks source link

Voice To Japanese (An all-in-one tool for making your own AI Vtuber)

Overview

Voice To Japanese is an app with UI. You can use it to:

Full demo and setup guide: https://youtu.be/qEbn44m3Ty0

(please unmute the video)

https://user-images.githubusercontent.com/24196833/229300992-edbb0cbb-fcad-43d2-bb22-805a86b3b00c.mp4

Installation

Method 1

  1. Download the "VoiceToJapanese-exe.zip" file from the releases section (https://github.com/0Xiaohei0/VoiceToJapanese/releases)

  2. Run the .exe file inside. No additional setup is required.

Method 2

  1. Download "python3.10" from the microsoft store
  2. Download "VoiceToJapanese-py.zip" from the releases section (https://github.com/0Xiaohei0/VoiceToJapanese/releases)
  3. Double click setup.bat
  4. If you encounter this error, install VS2019 redist by double clicking VC_redist.x64. Then double click setup.bat again. image image
  5. The program should start, from now on you can use start.bat to start the program more quickly.

Noes: I would recommend downloading the -py version because anti-virus often report false-positive for .exe files. Additionally, with the -py version you can inspect and make changes to all the python code and swap out libraries for running the AI models on GPU.

Usage

For info on how to use the program, see the full demo video: https://youtu.be/qEbn44m3Ty0

To play the audio in other programs (discord, apex etc.) Here's a tutorial video: https://youtu.be/cPGyEeeMxCE

Links

We have a discord server where you can try this tool with other people, troubleshoot your issues and suggest features: https://discord.gg/EEcDgN9wJJ

Additional details

python

then

import torch
torch.cuda.is_available()

if it returns True then whisper is running on GPU.

FAQ

Cannot find module “customtkinter”:

Try the exe version here: https://github.com/0Xiaohei0/VoiceToJapanese/releases/download/v1.2.3/VoiceToJapanese.v1.2.3-exe.zip It requires no setup, just unzip and run the exe file inside. Anti virus may complain about exe files, just click run anyway. If you do not trust the exe file, or want to modify the code, you need to troubleshoot why the setup script failed. This error message means setup.py didn't install the required libraries successfully. Run setup.py and check the console for error message. Most common error is using incorrect python version which should be 3.10.

Error loading api key from environment variable, you need an api key from open ai:

Check the console for actual error message, if you see "exceeded current quota", it usually means your openai free credits expired. Solution is to upgrade to paid plan, or create new accounts to try and get new free credit.

Input: you

The transcriber often transcribes silence into "you". Make sure you selected the correct input device in settings and check if the mic meter is moving.

custom elevenlabs voices

You need to go here https://elevenlabs.io/docs/api-reference/get-voices Select header under GET voices and paste your API key, download the result as a file. Rename it to elevenlabVoices.json and replace the elevenlabVoices.json in the VoicetoJapanese folder.

Inspiration

This project was inspired by this video: https://youtu.be/UY7sRB60wZ4

Credit to @sociallyineptweeb for the ideas and APIs used.