RealTimeSTT 0.3.103__tar.gz → 0.3.104__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {realtimestt-0.3.103/realtimestt.egg-info → realtimestt-0.3.104}/PKG-INFO +4 -2
  2. {realtimestt-0.3.103 → realtimestt-0.3.104}/README.md +3 -1
  3. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT/audio_recorder.py +11 -1
  4. {realtimestt-0.3.103 → realtimestt-0.3.104/realtimestt.egg-info}/PKG-INFO +4 -2
  5. {realtimestt-0.3.103 → realtimestt-0.3.104}/setup.py +1 -1
  6. {realtimestt-0.3.103 → realtimestt-0.3.104}/LICENSE +0 -0
  7. {realtimestt-0.3.103 → realtimestt-0.3.104}/MANIFEST.in +0 -0
  8. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT/__init__.py +0 -0
  9. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT/audio_input.py +0 -0
  10. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT/audio_recorder_client.py +0 -0
  11. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT/safepipe.py +0 -0
  12. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT/warmup_audio.wav +0 -0
  13. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT_server/__init__.py +0 -0
  14. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT_server/install_packages.py +0 -0
  15. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT_server/stt_cli_client.py +0 -0
  16. {realtimestt-0.3.103 → realtimestt-0.3.104}/RealtimeSTT_server/stt_server.py +0 -0
  17. {realtimestt-0.3.103 → realtimestt-0.3.104}/realtimestt.egg-info/SOURCES.txt +0 -0
  18. {realtimestt-0.3.103 → realtimestt-0.3.104}/realtimestt.egg-info/dependency_links.txt +0 -0
  19. {realtimestt-0.3.103 → realtimestt-0.3.104}/realtimestt.egg-info/entry_points.txt +0 -0
  20. {realtimestt-0.3.103 → realtimestt-0.3.104}/realtimestt.egg-info/requires.txt +0 -0
  21. {realtimestt-0.3.103 → realtimestt-0.3.104}/realtimestt.egg-info/top_level.txt +0 -0
  22. {realtimestt-0.3.103 → realtimestt-0.3.104}/requirements.txt +0 -0
  23. {realtimestt-0.3.103 → realtimestt-0.3.104}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: realtimestt
3
- Version: 0.3.103
3
+ Version: 0.3.104
4
4
  Summary: A fast Voice Activity Detection and Transcription System
5
5
  Home-page: https://github.com/KoljaB/RealTimeSTT
6
6
  Author: Kolja Beigel
@@ -66,7 +66,7 @@ https://github.com/user-attachments/assets/797e6552-27cd-41b1-a7f3-e5cbc72094f5
66
66
 
67
67
  ### Updates
68
68
 
69
- Latest Version: v0.3.100
69
+ Latest Version: v0.3.104
70
70
 
71
71
  See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
72
72
 
@@ -513,6 +513,8 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
513
513
 
514
514
  - **no_log_file** (bool, default=False): If set, the system will skip writing the debug log file, reducing disk I/O. Useful if logging to a file is not needed and performance is a priority.
515
515
 
516
+ - **start_callback_in_new_thread** (bool, default=False): If set, the system will create a new thread for all callback functions. This can be useful if the callback function is blocking and you want to avoid blocking the realtimestt application thread.
517
+
516
518
  #### Real-time Transcription Parameters
517
519
 
518
520
  > **Note**: *When enabling realtime description a GPU installation is strongly advised. Using realtime transcription may create high GPU loads.*
@@ -30,7 +30,7 @@ https://github.com/user-attachments/assets/797e6552-27cd-41b1-a7f3-e5cbc72094f5
30
30
 
31
31
  ### Updates
32
32
 
33
- Latest Version: v0.3.100
33
+ Latest Version: v0.3.104
34
34
 
35
35
  See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
36
36
 
@@ -477,6 +477,8 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
477
477
 
478
478
  - **no_log_file** (bool, default=False): If set, the system will skip writing the debug log file, reducing disk I/O. Useful if logging to a file is not needed and performance is a priority.
479
479
 
480
+ - **start_callback_in_new_thread** (bool, default=False): If set, the system will create a new thread for all callback functions. This can be useful if the callback function is blocking and you want to avoid blocking the realtimestt application thread.
481
+
480
482
  #### Real-time Transcription Parameters
481
483
 
482
484
  > **Note**: *When enabling realtime description a GPU installation is strongly advised. Using realtime transcription may create high GPU loads.*
@@ -334,6 +334,7 @@ class AudioToTextRecorder:
334
334
  use_extended_logging: bool = False,
335
335
  faster_whisper_vad_filter: bool = True,
336
336
  normalize_audio: bool = False,
337
+ start_callback_in_new_thread: bool = False,
337
338
  ):
338
339
  """
339
340
  Initializes an audio recorder and transcription
@@ -566,6 +567,10 @@ class AudioToTextRecorder:
566
567
  - normalize_audio (bool, default=False): If set to True, the system will
567
568
  normalize the audio to a specific range before processing. This can
568
569
  help improve the quality of the transcription.
570
+ - start_callback_in_new_thread (bool, default=False): If set to True,
571
+ the callback functions will be executed in a
572
+ new thread. This can help improve performance by allowing the
573
+ callback to run concurrently with other operations.
569
574
 
570
575
  Raises:
571
576
  Exception: Errors related to initializing transcription
@@ -681,6 +686,7 @@ class AudioToTextRecorder:
681
686
  self.faster_whisper_vad_filter = faster_whisper_vad_filter
682
687
  self.normalize_audio = normalize_audio
683
688
  self.awaiting_speech_end = False
689
+ self.start_callback_in_new_thread = start_callback_in_new_thread
684
690
 
685
691
  # ----------------------------------------------------------------------------
686
692
  # Named logger configuration
@@ -1015,8 +1021,12 @@ class AudioToTextRecorder:
1015
1021
  worker.run()
1016
1022
 
1017
1023
  def _run_callback(self, cb, *args, **kwargs):
1018
- if cb:
1024
+ if self.start_callback_in_new_thread:
1025
+ # Run the callback in a new thread to avoid blocking the main thread
1019
1026
  threading.Thread(target=cb, args=args, kwargs=kwargs, daemon=True).start()
1027
+ else:
1028
+ # Run the callback in the main thread to avoid threading issues
1029
+ cb(*args, **kwargs)
1020
1030
 
1021
1031
  @staticmethod
1022
1032
  def _audio_data_worker(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: realtimestt
3
- Version: 0.3.103
3
+ Version: 0.3.104
4
4
  Summary: A fast Voice Activity Detection and Transcription System
5
5
  Home-page: https://github.com/KoljaB/RealTimeSTT
6
6
  Author: Kolja Beigel
@@ -66,7 +66,7 @@ https://github.com/user-attachments/assets/797e6552-27cd-41b1-a7f3-e5cbc72094f5
66
66
 
67
67
  ### Updates
68
68
 
69
- Latest Version: v0.3.100
69
+ Latest Version: v0.3.104
70
70
 
71
71
  See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
72
72
 
@@ -513,6 +513,8 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
513
513
 
514
514
  - **no_log_file** (bool, default=False): If set, the system will skip writing the debug log file, reducing disk I/O. Useful if logging to a file is not needed and performance is a priority.
515
515
 
516
+ - **start_callback_in_new_thread** (bool, default=False): If set, the system will create a new thread for all callback functions. This can be useful if the callback function is blocking and you want to avoid blocking the realtimestt application thread.
517
+
516
518
  #### Real-time Transcription Parameters
517
519
 
518
520
  > **Note**: *When enabling realtime description a GPU installation is strongly advised. Using realtime transcription may create high GPU loads.*
@@ -14,7 +14,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
14
14
 
15
15
  setuptools.setup(
16
16
  name="realtimestt",
17
- version="0.3.103",
17
+ version="0.3.104",
18
18
  author="Kolja Beigel",
19
19
  author_email="kolja.beigel@web.de",
20
20
  description="A fast Voice Activity Detection and Transcription System",
File without changes
File without changes
File without changes