mirror of
https://github.com/dscripka/openWakeWord.git
synced 2026-08-27 18:17:20 -04:00
Updated readme's for installation instructions
This commit is contained in:
parent
4e77db111c
commit
9d08b95b32
3 changed files with 28 additions and 2 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue