diff --git a/voice_recognition.py b/voice_recognition.py index 6344a11..524ed89 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -60,7 +60,7 @@ class WaveWriter: self.file_name_past = None self.file_name_present = location + self.username + str(self.present_file_id) - self.transcript_file_present = wave.Wave_write = wave.open( + self.transcript_file_present = wave.open( self.file_name_present, "wb" ) self.transcript_file_present.setnchannels(CHANNELS) @@ -68,7 +68,7 @@ class WaveWriter: self.transcript_file_present.setframerate(SAMPLING_RATE) self.file_name_future = location + self.username + str(self.present_file_id + 1) - self.transcript_file_future = wave.Wave_write = wave.open( + self.transcript_file_future = wave.open( self.file_name_future, "wb" ) self.file_name_future.setnchannels(CHANNELS) @@ -85,7 +85,7 @@ class WaveWriter: self.transcript_file_future = ( location + self.username + str(self.present_file_id + 1) ) - self.transcript_file_future = wave.Wave_write = wave.open( + self.transcript_file_future = wave.open( self.file_name_future, "wb" ) self.file_name_future.setnchannels(CHANNELS)