Kitt-AI/snowboy

Pass data as parameter directly to audio_recorder_callback without save it to file

hyansuper opened this issue · 0 comments

I think it will be better to pass recorded data as parameter directly to audio_recorder_callback, or at least as an option.
I suggest change this 2 lines to:

# fname = self.saveMessage()
audio_recorder_callback(b''.join(self.recordedData))

because in most use cases, the recorded file will be deleted immediately after recognition.