diff --git a/AudioTranscriber.py b/AudioTranscriber.py index 352aa7d..6aa1e31 100644 --- a/AudioTranscriber.py +++ b/AudioTranscriber.py @@ -1,5 +1,4 @@ import numpy as np -import soundcard as sc import whisper import torch import wave @@ -18,7 +17,6 @@ class AudioTranscriber: audio_data = (audio_data * (2**15 - 1)).astype(np.int16) wav_file.writeframes(audio_data.tobytes()) result = self.audio_model.transcribe(f'temp_{id(self)}.wav', fp16=torch.cuda.is_available()) - print(torch.cuda.is_available()) text = result['text'].strip() return text diff --git a/GPTResponder.py b/GPTResponder.py index 8538aab..e7fddf4 100644 --- a/GPTResponder.py +++ b/GPTResponder.py @@ -1,7 +1,6 @@ import openai from keys import OPENAI_API_KEY from prompts import create_prompt, INITIAL_RESPONSE -import time openai.api_key = OPENAI_API_KEY