File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
import constants as constant
11
11
12
12
13
- class AudioTranscriber :
13
+ class WhisperTranscriber :
14
14
def __init__ (self ):
15
15
logging .info ("Loading Whisper model..." )
16
16
self .device = "cuda" if torch .cuda .is_available () else "cpu"
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def initialize_components():
41
41
"""
42
42
43
43
osc = VRChatOSC (constant .Network .LOCAL_IP , constant .Network .VRC_PORT )
44
- transcriber = WhisperTranscriber (constant . Audio . AUDIO_INPUT_INDEX )
44
+ transcriber = WhisperTranscriber ()
45
45
system_prompt = SystemPrompt .get_full_prompt ("normal" )
46
46
now = datetime .datetime .now ()
47
47
history = [
@@ -159,7 +159,7 @@ def run_code():
159
159
user_speech = ""
160
160
while not user_speech :
161
161
osc .send_message ("Listening" )
162
- user_speech = transcriber .get_speech_input ()
162
+ user_speech = transcriber .get_voice_input ()
163
163
164
164
print (f"HUMAN: { user_speech } " )
165
165
JsonWrapper .write (constant .FilePaths .HISTORY_PATH , user_speech )
You can’t perform that action at this time.
0 commit comments