Skip to content

Commit

Permalink
fix: disable ambient noise adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
m-barker committed Feb 5, 2024
1 parent baad4a5 commit 60c14d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class TranscribeSpeechAction(object):
self._model_params.warmup,
)
# Configure the speech recogniser object and adjust for ambient noise
self.recogniser = self._configure_recogniser()
self.recogniser = self._configure_recogniser(ambient_adj=False)
# Setup the action server and register execution callback
self._action_server = actionlib.SimpleActionServer(
self._action_name,
Expand All @@ -110,6 +110,7 @@ class TranscribeSpeechAction(object):
self._action_server.start()

def _timer_cb(self, _) -> None:
return
"""Adjusts the microphone for ambient noise, unless the action server is listening."""
if self._listening:
return
Expand Down

0 comments on commit 60c14d7

Please sign in to comment.