Uberi / speech_recognition

Speech recognition module for Python, supporting several engines and APIs, online and offline.
https://pypi.python.org/pypi/SpeechRecognition/
BSD 3-Clause "New" or "Revised" License
8.46k stars 2.4k forks source link

Moved energy_threshold into an optional Recognizer() __init__ param. #762

Open jaggzh opened 3 months ago

jaggzh commented 3 months ago

Explanation: Between the hard-coded default of 300, and the automatic adjustment, is the ability to let the caller pick the value. In our case, our environment has people talking, and while fiddling with the damping and such, for the asymmetric moving avg, also should be moved into configurable params, I figured this was at least a start (and helped in our situation). :)