ardha27 / AI-Waifu-Vtuber

AI Vtuber for Streaming on Youtube/Twitch
810 stars 128 forks source link

hmmm what is and how to fix it ? #20

Closed KiyoshiTheBoss closed 1 year ago

KiyoshiTheBoss commented 1 year ago

PS C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)> & "C:/Program Files/Python311/python.exe" "c:/Users/60107/Downloads/AI-Waifu-Vtuber-master (1)/AI-Waifu-Vtuber-master/run.py" Mode (1-Mic, 2-Youtube Live, 3-Twitch Live): 1 Press and Hold Right Shift to record audio Recording... Stopped recording. Error transcribing audio Recording... Stopped recording. Error transcribing audio Recording... Stopped recording. Error transcribing audio Recording... Stopped recording. Error transcribing audio Recording... Stopped recording. Error transcribing audio

ardha27 commented 1 year ago

Read my readme on FAQ section

KiyoshiTheBoss commented 1 year ago

after i do that and save i got this error PS C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)> & "C:/Program Files/Python311/python.exe" "c:/Users/60107/Downloads/AI-Waifu-Vtuber-master (1)/AI-Waifu-Vtuber-master/run.py" Press and Hold Right Shift to record audio Recording... Stopped recording. Traceback (most recent call last): File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 243, in record_audio() File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 68, in record_audio transcribe_audio("input.wav") File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 77, in transcribe_audio transcript = openai.Audio.transcribe("whisper-1", audio_file) ^^^^^^^^^^^^ AttributeError: module 'openai' has no attribute 'Audio'

KiyoshiTheBoss commented 1 year ago

i update the open ai libraby and after that i got this eror

Recording... Stopped recording. Question: How are you? Traceback (most recent call last): File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 243, in record_audio() File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 68, in record_audio transcribe_audio("input.wav") File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 84, in transcribe_audio openai_answer() File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 108, in openai_answer prompt = getPrompt() ^^^^^^^^^^^ File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\utils\promptMaker.py", line 16, in getPrompt prompt.append(getIdentity("characterConfig/Pina/identity.txt")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\utils\promptMaker.py", line 9, in getIdentity with open(identityPath, "r", encoding="utf-8") as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'characterConfig/Pina/identity.txt'

ardha27 commented 1 year ago

It said that you don't have this file characterConfig/Pina/identity.txt. Did you already clone my repository?

KiyoshiTheBoss commented 1 year ago

oh need to clone it back?

KiyoshiTheBoss commented 1 year ago

It said that you don't have this file characterConfig/Pina/identity.txt. Did you already clone my repository?

yes i downlaod the repositary using zip file

ardha27 commented 1 year ago

Do you have this file on your zip? characterConfig/Pina/identity.txt

KiyoshiTheBoss commented 1 year ago

Do you have this file on your zip? characterConfig/Pina/identity.txt

yes there is

KiyoshiTheBoss commented 1 year ago

should i install back and and do extract here?

ardha27 commented 1 year ago

Ss me, from which directory you start the program

KiyoshiTheBoss commented 1 year ago

Ss me, from which directory you start the program

in twitter ?

KiyoshiTheBoss commented 1 year ago

like this ?

PS C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master> & "C:/Program Files/Python311/python.exe" "c:/Users/60107/Downloads/AI-Waifu-Vtuber-master (1)/AI-Waifu-Vtuber-master/run.py" Mode (1-Mic, 2-Youtube Live, 3-Twitch Live): 1 Press and Hold Right Shift to record audio Recording... Stopped recording. Question: Yes! 1, 2, 3... Traceback (most recent call last): File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 243, in
record_audio() File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 68, in record_audio
transcribe_audio("input.wav") File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 84, in transcribe_audio openai_answer() File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 108, in openai_answer prompt = getPrompt() ^^^^^^^^^^^ File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\utils\promptMaker.py", line 16, in getPrompt prompt.append(getIdentity("characterConfig/Pina/identity.txt")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\utils\promptMaker.py", line 9, in getIdentity with open(identityPath, "r", encoding="utf-8") as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'characterConfig/Pina/identity.txt'

ardha27 commented 1 year ago

Show me the command when you run it on terminal

KiyoshiTheBoss commented 1 year ago

it slowly getting better XD

PS C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master> python .\run.py Mode (1-Mic, 2-Youtube Live, 3-Twitch Live): 1 Press and Hold Right Shift to record audio Recording... Stopped recording. Question: Test, 1, 2, 3, hello. JP Answer: こんにちは。 Traceback (most recent call last): File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 243, in record_audio() File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 68, in record_audio transcribe_audio("input.wav") File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 84, in transcribe_audio openai_answer() File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 120, in openai_answer translate_text(message) File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 198, in translate_text voicevox_tts(tts) File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\utils\TTS.py", line 35, in voicevox_tts params_encoded = urllib.parse.urlencode({'text': katakana_text, 'speaker': 46})

ardha27 commented 1 year ago

did you already run VoiceVox?

KiyoshiTheBoss commented 1 year ago

ahhh i see okay i try do that

KiyoshiTheBoss commented 1 year ago

i run voicevox in collab PS C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master> python .\run.py Mode (1-Mic, 2-Youtube Live, 3-Twitch Live): 1 Press and Hold Right Shift to record audio Recording... Stopped recording. Question: Hello Yoda, how are you? JP Answer: 名前のユナ。私は大丈夫です。 Traceback (most recent call last): File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 243, in record_audio() File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 68, in record_audio transcribe_audio("input.wav") File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 84, in transcribe_audio openai_answer() File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 120, in openai_answer translate_text(message) File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 198, in translate_text voicevox_tts(tts) File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\utils\TTS.py", line 35, in voicevox_tts params_encoded = urllib.parse.urlencode({'text': katakana_text, 'speaker': 46}) ^^^^^^^^^^^^^

ardha27 commented 1 year ago

change the voicevox url link on TTS.py using the link you got from colab

KiyoshiTheBoss commented 1 year ago

like this as example https://lemon-groups-serve-35-199-176-248.loca.lt/

KiyoshiTheBoss commented 1 year ago

i dont understand how to use collab vox so i tried use locally

and still got this PS C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master> python .\run.py Mode (1-Mic, 2-Youtube Live, 3-Twitch Live): 1 Press and Hold Right Shift to record audio Recording... Stopped recording. Question: Yes, how are you? JP Answer: 私はうまく機能しています。 Traceback (most recent call last): File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 243, in record_audio() File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 68, in record_audio transcribe_audio("input.wav") File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 84, in transcribe_audio openai_answer() File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 120, in openai_answer translate_text(message) File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\run.py", line 198, in translate_text voicevox_tts(tts) File "C:\Users\60107\Downloads\AI-Waifu-Vtuber-master (1)\AI-Waifu-Vtuber-master\utils\TTS.py", line 35, in voicevox_tts params_encoded = urllib.parse.urlencode({'text': katakana_text, 'speaker': 46}) ^^^^^^^^^^^^^ NameError: name 'katakana_text' is not defined