Updated readme's for installation instructions

This commit is contained in:
dscripka 2023-01-28 11:17:37 -05:00
parent 4e77db111c
commit 9d08b95b32
3 changed files with 28 additions and 2 deletions

View file

@ -114,6 +114,8 @@ if __name__ == "__main__":
detect_time = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
print(f'Detected activation from \"{mdl}\" model at time {detect_time}!')
# Capture total of 5 seconds, with the audio associated with the
# activation around the ~4 second point
audio_context = np.array(list(owwModel.preprocessor.raw_data_buffer)[-16000*5:]).astype(np.int16)
fname = detect_time + f"_{mdl}.wav"
scipy.io.wavfile.write(os.path.join(os.path.abspath(args.output_dir), fname), 16000, audio_context)