Fix endpointing with microphone (#64)

This commit is contained in:
Fangjun Kuang
2023-02-25 14:30:44 +08:00
committed by GitHub
parent e4b79ad34b
commit fb1e24bebb
4 changed files with 15 additions and 6 deletions

View File

@@ -68,8 +68,9 @@ def main():
last_result = result
print(f"{segment_id}: {result}")
if result and is_endpoint:
segment_id += 1
if is_endpoint:
if result:
segment_id += 1
recognizer.reset(stream)