diff --git a/voice_recognition.py b/voice_recognition.py index b203d08..a8a73f3 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -43,7 +43,7 @@ class SRBuffer(voice_recv.AudioSink): - def __init__(self, destination: wave._File): + def __init__(self, destination): super().__init__() self._file: wave.Wave_write = wave.open(destination, 'wb') @@ -70,7 +70,7 @@ class SRBuffer(voice_recv.AudioSink): class Transcriber(commands.Cog): def __init__(self, bot): - def callback(user, data: voice_recv.VoiceData): + def callback(user, data): logger.info(f"Got packet from {user}") self.bot = bot