浏览代码

fixes for ubuntu

KoljaB 7 月之前
父节点
当前提交
3e8d7cb66e
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      RealtimeSTT/audio_recorder.py

+ 0 - 8
RealtimeSTT/audio_recorder.py

@@ -895,7 +895,6 @@ class AudioToTextRecorder:
         Raises:
             Exception: If there is an error while initializing the audio recording.
         """
-        # logging.error("### TEST")
         import pyaudio
         import numpy as np
         from scipy import signal
@@ -969,8 +968,6 @@ class AudioToTextRecorder:
         def setup_audio():  
             nonlocal audio_interface, stream, device_sample_rate, input_device_index
             try:
-                print(f"### start #######")
-
                 audio_interface = pyaudio.PyAudio()
                 if input_device_index is None:
                     try:
@@ -987,13 +984,8 @@ class AudioToTextRecorder:
                 else:
                     sample_rates_to_try.append(48000)  # Fallback sample rate
 
-                for rate in sample_rates_to_try:
-                    logging.error(f"rates to try: {rate}")
-                    # print(f"rates to try: {rate}")
-
                 for rate in sample_rates_to_try:
                     try:
-                        logging.error(f"trying rate: {rate}")
                         device_sample_rate = rate
                         stream = initialize_audio_stream(audio_interface, input_device_index, device_sample_rate, chunk_size)
                         if stream is not None: