TumblerWarren / Virtual_Avatar_ChatBot

To create a free AI Chatbot/Waifu/ Vtuber that will run on your local computer with minimal GPU requirement.
97 stars 8 forks source link

start up still closes at the end pt.3 bug #35

Closed oivio closed 10 months ago

oivio commented 10 months ago

StartApp_log.txt

From Log I can see that it has some issues with ELEVENLABS but VOICEVOX is selected.

#Enter your input choice || Speech or Text
INPUT_CHOICE=Text

#Enter your desired chatbot || oogabooga or betacharacter or local_llm or collab_llm
CHATBOT_SERVICE=local_llm

#Enter the Ngrok URL which you have got from Google Collab.
ngrok_url=https://90d8-34-32-215-157.ngrok-free.app

#If you have selected chatbot as oogabooga please enter the name of the charceter card you uploaded.
CHARACTER_CARD = Ayaka

#Only if you are using oogabooga, enter your name that you entered while creating Character card. Typically USER,YOU or if have entered your name.
your_name = Warren

#Enter your PyChai API, How to link :- https://pycai.gitbook.io/welcome/api/values
PYCHAI=

#Enter your charecter key, How to link :- https://pycai.gitbook.io/welcome/api/values
CHARECTER_KEY=

#Enter your Text to Speech Choice | ELEVENLABS or VOICEVOX(Japanese Only) |LOCAL_TTS is out of support now,I will add it after fixing the problem
TTS_CHOICE = VOICEVOX

#If you have selected Voicevox, enter the voice ID, you can find the voice id from docs VOICEVOX_HELP.
VOICE_ID=2

#Do you have GPU/CUDA, if yes then write True else write False
CUDA_STATUS=True

#Enter your Elevenlabs Api key, How to link :- https://docs.elevenlabs.io/api-reference/quick-start/authentication
ELEVENLAB_KEY=

#If you have selected Elevenlabs, enter you model of choice. You can see examples from Elevenlabs website.
VOICE_MODEL=

#Enter your whisper model, see VRAM requirement for further details at whisper Github | tiny, base, small
WHISPER_MODEL=base

#Want to speak in english or your native language | TRANSCRIBE, TRANSLATE
WHISPER_CHOICE=TRANSCRIBE
TumblerWarren commented 10 months ago

If you wanna use voicevox then run the voicevox_startup bat file.

oivio commented 10 months ago

it did not help much even when I run voicevox_startup in CMD you can see same issue:

Traceback (most recent call last):
  File "J:\GitHub\Virtual_Avatar_ChatBot\main.py", line 4, in <module>
    import utils.Elevenlabs
  File "J:\GitHub\Virtual_Avatar_ChatBot\utils\Elevenlabs.py", line 16, in <module>
    voices = voices()
  File "J:\GitHub\Virtual_Avatar_ChatBot\venv\lib\site-packages\elevenlabs\simple.py", line 25, in voices
    return Voices.from_api()
  File "J:\GitHub\Virtual_Avatar_ChatBot\venv\lib\site-packages\elevenlabs\api\voice.py", line 201, in from_api
    response = API.get(url).json()
  File "J:\GitHub\Virtual_Avatar_ChatBot\venv\lib\site-packages\elevenlabs\api\base.py", line 75, in get
    return API.request(url, method="get", *args, **kwargs)  # type: ignore
  File "J:\GitHub\Virtual_Avatar_ChatBot\venv\lib\site-packages\elevenlabs\api\base.py", line 71, in request
    raise APIError(message, status)
elevenlabs.api.error.APIError: Invalid API key

image

and on the end I do get some GPU error:

`[50500:1227/203750.793:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is

I try to run this on Windows10 with GTX4080 `

TumblerWarren commented 10 months ago

Thank you for reporting about the bug. I have fixed the problem, please redownload the code once again and rerun it.

Alternatively if you don't want to redownload the code you can paste your elevenlabs key, it wouldn't use the service unless you specify, it just temporally stores in the code.

oivio commented 10 months ago

I did clone repository so I did make a fresh but now after latest update we have new issues:

J:\GitHub\Virtual_Avatar_ChatBot>voicevox_startup.bat
J:\GitHub\Virtual_Avatar_ChatBot>Traceback (most recent call last):
  File "J:\GitHub\Virtual_Avatar_ChatBot\main.py", line 1, in <module>
    import colorama
ModuleNotFoundError: No module named 'colorama'
Traceback (most recent call last):
  File "J:\GitHub\Virtual_Avatar_ChatBot\API\voice_vox_api.py", line 1, in <module>
    from fastapi import FastAPI, HTTPException
ModuleNotFoundError: No module named 'fastapi'
TumblerWarren commented 10 months ago

Please first run the setup bat file, after it closes, then run the voicevox file

oivio commented 10 months ago

thank you @TumblerWarren it kind of solve the problem. Sadly I am still having issues this time when I run Start_App.bat Soon as AI replay it instant crash. StartApp_log.txt

I am running this with :

#Enter your input choice || Speech or Text
INPUT_CHOICE=Text

#Enter your desired chatbot || oogabooga or betacharacter or local_llm or collab_llm
CHATBOT_SERVICE=local_llm
TumblerWarren commented 10 months ago

1st if you want to use local or collab llm , you have to download my other repository. The tutorial is provided in Video link-2.

2nd if you are using Voicevox as your tts always run Voicevox_startup, else run Start_app.bat