Skip to content

Commit

Permalink
Update docs with detect_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hansen committed Jun 4, 2020
1 parent 4566ef0 commit c441396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c441396

Please sign in to comment.