Skip to content

Commit a60e74d

Browse files
committed
Fixed Small Errors
1 parent 4288f2d commit a60e74d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
3.43 KB
Binary file not shown.

classes/whisper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import constants as constant
1111

1212

13-
class AudioTranscriber:
13+
class WhisperTranscriber:
1414
def __init__(self):
1515
logging.info("Loading Whisper model...")
1616
self.device = "cuda" if torch.cuda.is_available() else "cpu"

nova.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def initialize_components():
4141
"""
4242

4343
osc = VRChatOSC(constant.Network.LOCAL_IP, constant.Network.VRC_PORT)
44-
transcriber = WhisperTranscriber(constant.Audio.AUDIO_INPUT_INDEX)
44+
transcriber = WhisperTranscriber()
4545
system_prompt = SystemPrompt.get_full_prompt("normal")
4646
now = datetime.datetime.now()
4747
history = [
@@ -159,7 +159,7 @@ def run_code():
159159
user_speech = ""
160160
while not user_speech:
161161
osc.send_message("Listening")
162-
user_speech = transcriber.get_speech_input()
162+
user_speech = transcriber.get_voice_input()
163163

164164
print(f"HUMAN: {user_speech}")
165165
JsonWrapper.write(constant.FilePaths.HISTORY_PATH, user_speech)

0 commit comments

Comments
 (0)