From 523eb719f1e6f11783c4c9a35d63b3a68599805f Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Sun, 10 Jun 2018 22:16:48 +0800 Subject: [PATCH] listen: not-wake-up: increase the random value's range the old range is too narrow and therefore make data override often happen. Signed-off-by: Wu Zhangjin --- precise/pocketsphinx/scripts/listen.py | 2 +- precise/scripts/listen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/precise/pocketsphinx/scripts/listen.py b/precise/pocketsphinx/scripts/listen.py index 0e69064..225917b 100755 --- a/precise/pocketsphinx/scripts/listen.py +++ b/precise/pocketsphinx/scripts/listen.py @@ -41,7 +41,7 @@ usage = ''' Samples between inferences ''' -session_id, chunk_num = '%03d' % randint(0, 999), 0 +session_id, chunk_num = '%09d' % randint(0, 999999999), 0 def main(): diff --git a/precise/scripts/listen.py b/precise/scripts/listen.py index 1c9c2ee..ff508d8 100755 --- a/precise/scripts/listen.py +++ b/precise/scripts/listen.py @@ -43,7 +43,7 @@ usage = ''' Prefix for saved filenames ''' -session_id, chunk_num = '%03d' % randint(0, 999), 0 +session_id, chunk_num = '%09d' % randint(0, 999999999), 0 def main():