From c441396755cb6cbd79ea7643f061f9fc11507f06 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 4 Jun 2020 11:49:41 -0400 Subject: [PATCH] Update docs with detect_timestamp --- docs/commands.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/commands.md b/docs/commands.md index 1637989..de50ad0 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -397,10 +397,11 @@ $ voice2json wait-wake Once the wake word is spoken, `voice2json` will output: ```json -{ "keyword": "/path/to/model_file.pb", "detect_seconds": 1.2345 } +{ "keyword": "/path/to/model_file.pb", "detect_seconds": 1.2345, "detect_timestamp": 1234567890 } ``` where `keyword` is the path to the detected keyword file and `detect_seconds` is the time of detection relative to when `voice2json` was started. +The `detect_timestamp` field is computed with [`time.time()`](https://docs.python.org/3/library/time.html#time.time) ### Custom Wake Word