RealTimeSTT 0.3.99__tar.gz → 0.3.100__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.
- {realtimestt-0.3.99/realtimestt.egg-info → realtimestt-0.3.100}/PKG-INFO +6 -2
- {realtimestt-0.3.99 → realtimestt-0.3.100}/README.md +5 -1
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT/audio_recorder.py +24 -7
- {realtimestt-0.3.99 → realtimestt-0.3.100/realtimestt.egg-info}/PKG-INFO +6 -2
- {realtimestt-0.3.99 → realtimestt-0.3.100}/setup.py +1 -1
- {realtimestt-0.3.99 → realtimestt-0.3.100}/LICENSE +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/MANIFEST.in +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT/__init__.py +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT/audio_input.py +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT/audio_recorder_client.py +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT/warmup_audio.wav +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT_server/__init__.py +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT_server/install_packages.py +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT_server/stt_cli_client.py +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/RealtimeSTT_server/stt_server.py +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/realtimestt.egg-info/SOURCES.txt +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/realtimestt.egg-info/dependency_links.txt +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/realtimestt.egg-info/entry_points.txt +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/realtimestt.egg-info/requires.txt +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/realtimestt.egg-info/top_level.txt +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/requirements.txt +0 -0
- {realtimestt-0.3.99 → realtimestt-0.3.100}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: realtimestt
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.100
|
|
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
|
|
@@ -67,7 +67,7 @@ https://github.com/user-attachments/assets/797e6552-27cd-41b1-a7f3-e5cbc72094f5
|
|
|
67
67
|
|
|
68
68
|
### Updates
|
|
69
69
|
|
|
70
|
-
Latest Version: v0.3.
|
|
70
|
+
Latest Version: v0.3.100
|
|
71
71
|
|
|
72
72
|
See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
|
|
73
73
|
|
|
@@ -553,6 +553,10 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
|
|
|
553
553
|
|
|
554
554
|
- **pre_recording_buffer_duration** (float, default=0.2): The time span, in seconds, during which audio is buffered prior to formal recording. This helps counterbalancing the latency inherent in speech activity detection, ensuring no initial audio is missed.
|
|
555
555
|
|
|
556
|
+
- **on_vad_start**: A callable function triggered when the system has detected the start of voice activity presence.
|
|
557
|
+
|
|
558
|
+
- **on_vad_stop**: A callable function triggered when the system has detected the stop of voice activity presence.
|
|
559
|
+
|
|
556
560
|
- **on_vad_detect_start**: A callable function triggered when the system starts to listen for voice activity.
|
|
557
561
|
|
|
558
562
|
- **on_vad_detect_stop**: A callable function triggered when the system stops to listen for voice activity.
|
|
@@ -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.
|
|
33
|
+
Latest Version: v0.3.100
|
|
34
34
|
|
|
35
35
|
See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
|
|
36
36
|
|
|
@@ -516,6 +516,10 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
|
|
|
516
516
|
|
|
517
517
|
- **pre_recording_buffer_duration** (float, default=0.2): The time span, in seconds, during which audio is buffered prior to formal recording. This helps counterbalancing the latency inherent in speech activity detection, ensuring no initial audio is missed.
|
|
518
518
|
|
|
519
|
+
- **on_vad_start**: A callable function triggered when the system has detected the start of voice activity presence.
|
|
520
|
+
|
|
521
|
+
- **on_vad_stop**: A callable function triggered when the system has detected the stop of voice activity presence.
|
|
522
|
+
|
|
519
523
|
- **on_vad_detect_start**: A callable function triggered when the system starts to listen for voice activity.
|
|
520
524
|
|
|
521
525
|
- **on_vad_detect_stop**: A callable function triggered when the system stops to listen for voice activity.
|
|
@@ -273,6 +273,8 @@ class AudioToTextRecorder:
|
|
|
273
273
|
pre_recording_buffer_duration: float = (
|
|
274
274
|
INIT_PRE_RECORDING_BUFFER_DURATION
|
|
275
275
|
),
|
|
276
|
+
on_vad_start=None,
|
|
277
|
+
on_vad_stop=None,
|
|
276
278
|
on_vad_detect_start=None,
|
|
277
279
|
on_vad_detect_stop=None,
|
|
278
280
|
|
|
@@ -422,10 +424,18 @@ class AudioToTextRecorder:
|
|
|
422
424
|
- pre_recording_buffer_duration (float, default=0.2): Duration in
|
|
423
425
|
seconds for the audio buffer to maintain pre-roll audio
|
|
424
426
|
(compensates speech activity detection latency)
|
|
427
|
+
- on_vad_start (callable, default=None): Callback function to be called
|
|
428
|
+
when the system detected the start of voice activity presence.
|
|
429
|
+
- on_vad_stop (callable, default=None): Callback function to be called
|
|
430
|
+
when the system detected the stop (end) of voice activity presence.
|
|
425
431
|
- on_vad_detect_start (callable, default=None): Callback function to
|
|
426
|
-
be called when the system listens for voice activity.
|
|
432
|
+
be called when the system listens for voice activity. This is not
|
|
433
|
+
called when VAD actually happens (use on_vad_start for this), but
|
|
434
|
+
when the system starts listening for it.
|
|
427
435
|
- on_vad_detect_stop (callable, default=None): Callback function to be
|
|
428
|
-
called when the system stops listening for voice activity.
|
|
436
|
+
called when the system stops listening for voice activity. This is
|
|
437
|
+
not called when VAD actually stops (use on_vad_stop for this), but
|
|
438
|
+
when the system stops listening for it.
|
|
429
439
|
- wakeword_backend (str, default="pvporcupine"): Specifies the backend
|
|
430
440
|
library to use for wake word detection. Supported options include
|
|
431
441
|
'pvporcupine' for using the Porcupine wake word engine or 'oww' for
|
|
@@ -550,6 +560,8 @@ class AudioToTextRecorder:
|
|
|
550
560
|
self.on_recording_stop = on_recording_stop
|
|
551
561
|
self.on_wakeword_detected = on_wakeword_detected
|
|
552
562
|
self.on_wakeword_timeout = on_wakeword_timeout
|
|
563
|
+
self.on_vad_start = on_vad_start
|
|
564
|
+
self.on_vad_stop = on_vad_stop
|
|
553
565
|
self.on_vad_detect_start = on_vad_detect_start
|
|
554
566
|
self.on_vad_detect_stop = on_vad_detect_stop
|
|
555
567
|
self.on_wakeword_detection_start = on_wakeword_detection_start
|
|
@@ -1985,8 +1997,8 @@ class AudioToTextRecorder:
|
|
|
1985
1997
|
|
|
1986
1998
|
if self._is_voice_active():
|
|
1987
1999
|
|
|
1988
|
-
if self.
|
|
1989
|
-
self.
|
|
2000
|
+
if self.on_vad_start:
|
|
2001
|
+
self.on_vad_start()
|
|
1990
2002
|
|
|
1991
2003
|
if self.use_extended_logging:
|
|
1992
2004
|
logger.debug('Debug: Voice activity detected')
|
|
@@ -2106,8 +2118,8 @@ class AudioToTextRecorder:
|
|
|
2106
2118
|
if self.speech_end_silence_start and time.time() - \
|
|
2107
2119
|
self.speech_end_silence_start >= \
|
|
2108
2120
|
self.post_speech_silence_duration:
|
|
2109
|
-
if self.
|
|
2110
|
-
self.
|
|
2121
|
+
if self.on_vad_stop:
|
|
2122
|
+
self.on_vad_stop()
|
|
2111
2123
|
|
|
2112
2124
|
if self.use_extended_logging:
|
|
2113
2125
|
logger.debug('Debug: Formatting silence start time')
|
|
@@ -2524,12 +2536,17 @@ class AudioToTextRecorder:
|
|
|
2524
2536
|
logger.info(f"State changed from '{old_state}' to '{new_state}'")
|
|
2525
2537
|
|
|
2526
2538
|
# Execute callbacks based on transitioning FROM a particular state
|
|
2527
|
-
if old_state == "
|
|
2539
|
+
if old_state == "listening":
|
|
2540
|
+
if self.on_vad_detect_stop:
|
|
2541
|
+
self.on_vad_detect_stop()
|
|
2542
|
+
elif old_state == "wakeword":
|
|
2528
2543
|
if self.on_wakeword_detection_end:
|
|
2529
2544
|
self.on_wakeword_detection_end()
|
|
2530
2545
|
|
|
2531
2546
|
# Execute callbacks based on transitioning TO a particular state
|
|
2532
2547
|
if new_state == "listening":
|
|
2548
|
+
if self.on_vad_detect_start:
|
|
2549
|
+
self.on_vad_detect_start()
|
|
2533
2550
|
self._set_spinner("speak now")
|
|
2534
2551
|
if self.spinner and self.halo:
|
|
2535
2552
|
self.halo._interval = 250
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: realtimestt
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.100
|
|
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
|
|
@@ -67,7 +67,7 @@ https://github.com/user-attachments/assets/797e6552-27cd-41b1-a7f3-e5cbc72094f5
|
|
|
67
67
|
|
|
68
68
|
### Updates
|
|
69
69
|
|
|
70
|
-
Latest Version: v0.3.
|
|
70
|
+
Latest Version: v0.3.100
|
|
71
71
|
|
|
72
72
|
See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
|
|
73
73
|
|
|
@@ -553,6 +553,10 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
|
|
|
553
553
|
|
|
554
554
|
- **pre_recording_buffer_duration** (float, default=0.2): The time span, in seconds, during which audio is buffered prior to formal recording. This helps counterbalancing the latency inherent in speech activity detection, ensuring no initial audio is missed.
|
|
555
555
|
|
|
556
|
+
- **on_vad_start**: A callable function triggered when the system has detected the start of voice activity presence.
|
|
557
|
+
|
|
558
|
+
- **on_vad_stop**: A callable function triggered when the system has detected the stop of voice activity presence.
|
|
559
|
+
|
|
556
560
|
- **on_vad_detect_start**: A callable function triggered when the system starts to listen for voice activity.
|
|
557
561
|
|
|
558
562
|
- **on_vad_detect_stop**: A callable function triggered when the system stops to listen for voice activity.
|
|
@@ -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.
|
|
17
|
+
version="0.3.100",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|