|
|
@@ -552,7 +552,7 @@ class Recognizer(AudioSource):
|
|
|
# logging.debug('Waiting for start of phrase (energy: %i; energy threshold: %i)', energy, self.energy_threshold)
|
|
|
|
|
|
# read audio input until the phrase ends
|
|
|
- pause_count, phrase_count = 0, 0
|
|
|
+ pause_count, phrase_count = 0, 1
|
|
|
phrase_start_time = elapsed_time
|
|
|
while True:
|
|
|
# handle phrase being too long by cutting off the audio
|