RealTimeSTT 0.2.1__tar.gz → 0.2.2__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.2.1 → RealtimeSTT-0.2.2}/PKG-INFO +4 -12
- {realtimestt-0.2.1 → RealtimeSTT-0.2.2}/README.md +3 -1
- {realtimestt-0.2.1 → RealtimeSTT-0.2.2}/RealtimeSTT/audio_recorder.py +13 -3
- {realtimestt-0.2.1/RealTimeSTT.egg-info → RealtimeSTT-0.2.2/RealtimeSTT.egg-info}/PKG-INFO +4 -12
- {realtimestt-0.2.1/RealTimeSTT.egg-info → RealtimeSTT-0.2.2/RealtimeSTT.egg-info}/SOURCES.txt +0 -5
- {realtimestt-0.2.1 → RealtimeSTT-0.2.2}/setup.py +1 -1
- {realtimestt-0.2.1 → RealtimeSTT-0.2.2}/LICENSE +0 -0
- {realtimestt-0.2.1 → RealtimeSTT-0.2.2}/RealtimeSTT/__init__.py +0 -0
- {realtimestt-0.2.1/RealTimeSTT.egg-info → RealtimeSTT-0.2.2/RealtimeSTT.egg-info}/dependency_links.txt +0 -0
- {realtimestt-0.2.1/RealTimeSTT.egg-info → RealtimeSTT-0.2.2/RealtimeSTT.egg-info}/requires.txt +0 -0
- {realtimestt-0.2.1/RealTimeSTT.egg-info → RealtimeSTT-0.2.2/RealtimeSTT.egg-info}/top_level.txt +0 -0
- {realtimestt-0.2.1 → RealtimeSTT-0.2.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: RealtimeSTT
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
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
|
|
@@ -12,16 +12,6 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Requires-Python: >=3.6
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: PyAudio==0.2.14
|
|
16
|
-
Requires-Dist: faster-whisper==1.0.3
|
|
17
|
-
Requires-Dist: pvporcupine==1.9.5
|
|
18
|
-
Requires-Dist: webrtcvad==2.0.10
|
|
19
|
-
Requires-Dist: halo==0.0.31
|
|
20
|
-
Requires-Dist: torch==2.3.1
|
|
21
|
-
Requires-Dist: torchaudio==2.3.1
|
|
22
|
-
Requires-Dist: scipy==1.12.0
|
|
23
|
-
Requires-Dist: websockets==v12.0
|
|
24
|
-
Requires-Dist: openwakeword==0.6.0
|
|
25
15
|
|
|
26
16
|
|
|
27
17
|
# RealtimeSTT
|
|
@@ -47,7 +37,7 @@ https://github.com/KoljaB/RealtimeSTT/assets/7604638/207cb9a2-4482-48e7-9d2b-072
|
|
|
47
37
|
|
|
48
38
|
### Updates
|
|
49
39
|
|
|
50
|
-
Latest Version: v0.2.
|
|
40
|
+
Latest Version: v0.2.2
|
|
51
41
|
|
|
52
42
|
See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
|
|
53
43
|
|
|
@@ -358,6 +348,8 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
|
|
|
358
348
|
|
|
359
349
|
- **silero_use_onnx** (bool, default=False): Enables usage of the pre-trained model from Silero in the ONNX (Open Neural Network Exchange) format instead of the PyTorch format. Default is False. Recommended for faster performance.
|
|
360
350
|
|
|
351
|
+
- **silero_deactivity_detection** (bool, default=False): Enables the Silero model for end-of-speech detection. More robust against background noise. Utilizes additional GPU resources but improves accuracy in noisy environments. When False, uses the default WebRTC VAD, which is more sensitive but may continue recording longer due to background sounds.
|
|
352
|
+
|
|
361
353
|
- **webrtc_sensitivity** (int, default=3): Sensitivity for the WebRTC Voice Activity Detection engine ranging from 0 (least aggressive / most sensitive) to 3 (most aggressive, least sensitive). Default is 3.
|
|
362
354
|
|
|
363
355
|
- **post_speech_silence_duration** (float, default=0.2): Duration in seconds of silence that must follow speech before the recording is considered to be completed. This ensures that any brief pauses during speech don't prematurely end the recording.
|
|
@@ -22,7 +22,7 @@ https://github.com/KoljaB/RealtimeSTT/assets/7604638/207cb9a2-4482-48e7-9d2b-072
|
|
|
22
22
|
|
|
23
23
|
### Updates
|
|
24
24
|
|
|
25
|
-
Latest Version: v0.2.
|
|
25
|
+
Latest Version: v0.2.2
|
|
26
26
|
|
|
27
27
|
See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
|
|
28
28
|
|
|
@@ -333,6 +333,8 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
|
|
|
333
333
|
|
|
334
334
|
- **silero_use_onnx** (bool, default=False): Enables usage of the pre-trained model from Silero in the ONNX (Open Neural Network Exchange) format instead of the PyTorch format. Default is False. Recommended for faster performance.
|
|
335
335
|
|
|
336
|
+
- **silero_deactivity_detection** (bool, default=False): Enables the Silero model for end-of-speech detection. More robust against background noise. Utilizes additional GPU resources but improves accuracy in noisy environments. When False, uses the default WebRTC VAD, which is more sensitive but may continue recording longer due to background sounds.
|
|
337
|
+
|
|
336
338
|
- **webrtc_sensitivity** (int, default=3): Sensitivity for the WebRTC Voice Activity Detection engine ranging from 0 (least aggressive / most sensitive) to 3 (most aggressive, least sensitive). Default is 3.
|
|
337
339
|
|
|
338
340
|
- **post_speech_silence_duration** (float, default=0.2): Duration in seconds of silence that must follow speech before the recording is considered to be completed. This ensures that any brief pauses during speech don't prematurely end the recording.
|
|
@@ -115,6 +115,7 @@ class AudioToTextRecorder:
|
|
|
115
115
|
# Voice activation parameters
|
|
116
116
|
silero_sensitivity: float = INIT_SILERO_SENSITIVITY,
|
|
117
117
|
silero_use_onnx: bool = False,
|
|
118
|
+
silero_deactivity_detection: bool = False,
|
|
118
119
|
webrtc_sensitivity: int = INIT_WEBRTC_SENSITIVITY,
|
|
119
120
|
post_speech_silence_duration: float = (
|
|
120
121
|
INIT_POST_SPEECH_SILENCE_DURATION
|
|
@@ -228,6 +229,12 @@ class AudioToTextRecorder:
|
|
|
228
229
|
pre-trained model from Silero in the ONNX (Open Neural Network
|
|
229
230
|
Exchange) format instead of the PyTorch format. This is
|
|
230
231
|
recommended for faster performance.
|
|
232
|
+
- silero_deactivity_detection (bool, default=False): Enables the Silero
|
|
233
|
+
model for end-of-speech detection. More robust against background
|
|
234
|
+
noise. Utilizes additional GPU resources but improves accuracy in
|
|
235
|
+
noisy environments. When False, uses the default WebRTC VAD,
|
|
236
|
+
which is more sensitive but may continue recording longer due
|
|
237
|
+
to background sounds.
|
|
231
238
|
- webrtc_sensitivity (int, default=WEBRTC_SENSITIVITY): Sensitivity
|
|
232
239
|
for the WebRTC Voice Activity Detection engine ranging from 0
|
|
233
240
|
(least aggressive / most sensitive) to 3 (most aggressive,
|
|
@@ -381,6 +388,7 @@ class AudioToTextRecorder:
|
|
|
381
388
|
self.silero_working = False
|
|
382
389
|
self.speech_end_silence_start = 0
|
|
383
390
|
self.silero_sensitivity = silero_sensitivity
|
|
391
|
+
self.silero_deactivity_detection = silero_deactivity_detection
|
|
384
392
|
self.listen_start = 0
|
|
385
393
|
self.spinner = spinner
|
|
386
394
|
self.halo = None
|
|
@@ -1350,14 +1358,16 @@ class AudioToTextRecorder:
|
|
|
1350
1358
|
|
|
1351
1359
|
# Stop the recording if silence is detected after speech
|
|
1352
1360
|
if self.stop_recording_on_voice_deactivity:
|
|
1361
|
+
is_speech = (
|
|
1362
|
+
self._is_silero_speech(data) if self.silero_deactivity_detection
|
|
1363
|
+
else self._is_webrtc_speech(data, True)
|
|
1364
|
+
)
|
|
1353
1365
|
|
|
1354
|
-
if not
|
|
1355
|
-
|
|
1366
|
+
if not is_speech:
|
|
1356
1367
|
# Voice deactivity was detected, so we start
|
|
1357
1368
|
# measuring silence time before stopping recording
|
|
1358
1369
|
if self.speech_end_silence_start == 0:
|
|
1359
1370
|
self.speech_end_silence_start = time.time()
|
|
1360
|
-
|
|
1361
1371
|
else:
|
|
1362
1372
|
self.speech_end_silence_start = 0
|
|
1363
1373
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: RealtimeSTT
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
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
|
|
@@ -12,16 +12,6 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Requires-Python: >=3.6
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: PyAudio==0.2.14
|
|
16
|
-
Requires-Dist: faster-whisper==1.0.3
|
|
17
|
-
Requires-Dist: pvporcupine==1.9.5
|
|
18
|
-
Requires-Dist: webrtcvad==2.0.10
|
|
19
|
-
Requires-Dist: halo==0.0.31
|
|
20
|
-
Requires-Dist: torch==2.3.1
|
|
21
|
-
Requires-Dist: torchaudio==2.3.1
|
|
22
|
-
Requires-Dist: scipy==1.12.0
|
|
23
|
-
Requires-Dist: websockets==v12.0
|
|
24
|
-
Requires-Dist: openwakeword==0.6.0
|
|
25
15
|
|
|
26
16
|
|
|
27
17
|
# RealtimeSTT
|
|
@@ -47,7 +37,7 @@ https://github.com/KoljaB/RealtimeSTT/assets/7604638/207cb9a2-4482-48e7-9d2b-072
|
|
|
47
37
|
|
|
48
38
|
### Updates
|
|
49
39
|
|
|
50
|
-
Latest Version: v0.2.
|
|
40
|
+
Latest Version: v0.2.2
|
|
51
41
|
|
|
52
42
|
See [release history](https://github.com/KoljaB/RealtimeSTT/releases).
|
|
53
43
|
|
|
@@ -358,6 +348,8 @@ When you initialize the `AudioToTextRecorder` class, you have various options to
|
|
|
358
348
|
|
|
359
349
|
- **silero_use_onnx** (bool, default=False): Enables usage of the pre-trained model from Silero in the ONNX (Open Neural Network Exchange) format instead of the PyTorch format. Default is False. Recommended for faster performance.
|
|
360
350
|
|
|
351
|
+
- **silero_deactivity_detection** (bool, default=False): Enables the Silero model for end-of-speech detection. More robust against background noise. Utilizes additional GPU resources but improves accuracy in noisy environments. When False, uses the default WebRTC VAD, which is more sensitive but may continue recording longer due to background sounds.
|
|
352
|
+
|
|
361
353
|
- **webrtc_sensitivity** (int, default=3): Sensitivity for the WebRTC Voice Activity Detection engine ranging from 0 (least aggressive / most sensitive) to 3 (most aggressive, least sensitive). Default is 3.
|
|
362
354
|
|
|
363
355
|
- **post_speech_silence_duration** (float, default=0.2): Duration in seconds of silence that must follow speech before the recording is considered to be completed. This ensures that any brief pauses during speech don't prematurely end the recording.
|
{realtimestt-0.2.1/RealTimeSTT.egg-info → RealtimeSTT-0.2.2/RealtimeSTT.egg-info}/SOURCES.txt
RENAMED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
LICENSE
|
|
2
2
|
README.md
|
|
3
3
|
setup.py
|
|
4
|
-
RealTimeSTT.egg-info/PKG-INFO
|
|
5
|
-
RealTimeSTT.egg-info/SOURCES.txt
|
|
6
|
-
RealTimeSTT.egg-info/dependency_links.txt
|
|
7
|
-
RealTimeSTT.egg-info/requires.txt
|
|
8
|
-
RealTimeSTT.egg-info/top_level.txt
|
|
9
4
|
RealtimeSTT/__init__.py
|
|
10
5
|
RealtimeSTT/audio_recorder.py
|
|
11
6
|
RealtimeSTT.egg-info/PKG-INFO
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{realtimestt-0.2.1/RealTimeSTT.egg-info → RealtimeSTT-0.2.2/RealtimeSTT.egg-info}/requires.txt
RENAMED
|
File without changes
|
{realtimestt-0.2.1/RealTimeSTT.egg-info → RealtimeSTT-0.2.2/RealtimeSTT.egg-info}/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|