Merge pull request #971 from reginaneon/patch-1

Fixing wakeword save
pull/981/head
Augusto Monteiro 2017-08-09 13:53:58 -04:00 committed by GitHub
commit f2e9d6b2cf
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ class ResponsiveRecognizer(speech_recognition.Recognizer):
# if a wake word is success full then record audio in temp
# file.
if self.save_wake_words and said_wake_word:
audio = self.create_audio_data(audio_data, source)
audio = self._create_audio_data(audio_data, source)
stamp = str(datetime.datetime.now())
filename = "/tmp/mycroft_wake_success%s.wav" % stamp
with open(filename, 'wb') as filea: