RealTimeSTT 0.3.8__tar.gz → 0.3.81__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.8 → RealtimeSTT-0.3.81}/PKG-INFO +4 -4
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/README.md +3 -3
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT/audio_recorder_client.py +7 -6
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT.egg-info/PKG-INFO +4 -4
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT.egg-info/requires.txt +1 -2
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/setup.py +1 -1
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/LICENSE +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT/__init__.py +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT/audio_input.py +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT/audio_recorder.py +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT.egg-info/SOURCES.txt +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT.egg-info/dependency_links.txt +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT.egg-info/entry_points.txt +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT.egg-info/top_level.txt +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT_server/__init__.py +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT_server/install_packages.py +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT_server/stt_cli_client.py +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/RealtimeSTT_server/stt_server.py +0 -0
- {RealtimeSTT-0.3.8 → RealtimeSTT-0.3.81}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: RealtimeSTT
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.81
|
|
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
|
|
@@ -130,17 +130,17 @@ To upgrade your PyTorch installation to enable GPU support with CUDA, follow the
|
|
|
130
130
|
To update PyTorch and Torchaudio to support CUDA 11.8, use the following commands:
|
|
131
131
|
|
|
132
132
|
```bash
|
|
133
|
-
pip install torch==2.
|
|
133
|
+
pip install torch==2.5.1+cu118 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu118
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
#### For CUDA 12.X:
|
|
137
137
|
To update PyTorch and Torchaudio to support CUDA 12.X, execute the following:
|
|
138
138
|
|
|
139
139
|
```bash
|
|
140
|
-
pip install torch==2.
|
|
140
|
+
pip install torch==2.5.1+cu121 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
Replace `2.
|
|
143
|
+
Replace `2.5.1` with the version of PyTorch that matches your system and requirements.
|
|
144
144
|
|
|
145
145
|
### Steps That Might Be Necessary Before
|
|
146
146
|
|
|
@@ -115,17 +115,17 @@ To upgrade your PyTorch installation to enable GPU support with CUDA, follow the
|
|
|
115
115
|
To update PyTorch and Torchaudio to support CUDA 11.8, use the following commands:
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
|
-
pip install torch==2.
|
|
118
|
+
pip install torch==2.5.1+cu118 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu118
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
#### For CUDA 12.X:
|
|
122
122
|
To update PyTorch and Torchaudio to support CUDA 12.X, execute the following:
|
|
123
123
|
|
|
124
124
|
```bash
|
|
125
|
-
pip install torch==2.
|
|
125
|
+
pip install torch==2.5.1+cu121 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
Replace `2.
|
|
128
|
+
Replace `2.5.1` with the version of PyTorch that matches your system and requirements.
|
|
129
129
|
|
|
130
130
|
### Steps That Might Be Necessary Before
|
|
131
131
|
|
|
@@ -4,8 +4,9 @@ debug_mode = False
|
|
|
4
4
|
from typing import Iterable, List, Optional, Union
|
|
5
5
|
from urllib.parse import urlparse
|
|
6
6
|
from datetime import datetime
|
|
7
|
+
from websocket import WebSocketApp
|
|
8
|
+
from websocket import ABNF
|
|
7
9
|
import subprocess
|
|
8
|
-
import websocket
|
|
9
10
|
import threading
|
|
10
11
|
import platform
|
|
11
12
|
import logging
|
|
@@ -307,7 +308,7 @@ class AudioToTextRecorderClient:
|
|
|
307
308
|
message = struct.pack('<I', metadata_length) + metadata_json.encode('utf-8') + chunk
|
|
308
309
|
|
|
309
310
|
if self.is_running:
|
|
310
|
-
self.data_ws.send(message, opcode=
|
|
311
|
+
self.data_ws.send(message, opcode=ABNF.OPCODE_BINARY)
|
|
311
312
|
|
|
312
313
|
def set_microphone(self, microphone_on=True):
|
|
313
314
|
"""
|
|
@@ -334,7 +335,7 @@ class AudioToTextRecorderClient:
|
|
|
334
335
|
|
|
335
336
|
try:
|
|
336
337
|
# Connect to control WebSocket
|
|
337
|
-
self.control_ws =
|
|
338
|
+
self.control_ws = WebSocketApp(self.control_url,
|
|
338
339
|
on_message=self.on_control_message,
|
|
339
340
|
on_error=self.on_error,
|
|
340
341
|
on_close=self.on_close,
|
|
@@ -345,7 +346,7 @@ class AudioToTextRecorderClient:
|
|
|
345
346
|
self.control_ws_thread.start()
|
|
346
347
|
|
|
347
348
|
# Connect to data WebSocket
|
|
348
|
-
self.data_ws =
|
|
349
|
+
self.data_ws = WebSocketApp(self.data_url,
|
|
349
350
|
on_message=self.on_data_message,
|
|
350
351
|
on_error=self.on_error,
|
|
351
352
|
on_close=self.on_close,
|
|
@@ -500,7 +501,7 @@ class AudioToTextRecorderClient:
|
|
|
500
501
|
raise Exception("Failed to set up audio recording.")
|
|
501
502
|
|
|
502
503
|
# Initialize WAV file writer if output_wav_file is provided
|
|
503
|
-
if self.output_wav_file:
|
|
504
|
+
if self.output_wav_file and not self.wav_file:
|
|
504
505
|
self.wav_file = wave.open(self.output_wav_file, 'wb')
|
|
505
506
|
self.wav_file.setnchannels(1)
|
|
506
507
|
self.wav_file.setsampwidth(2)
|
|
@@ -536,7 +537,7 @@ class AudioToTextRecorderClient:
|
|
|
536
537
|
if self.is_running:
|
|
537
538
|
if log_outgoing_chunks:
|
|
538
539
|
print(".", flush=True, end='')
|
|
539
|
-
self.data_ws.send(message, opcode=
|
|
540
|
+
self.data_ws.send(message, opcode=ABNF.OPCODE_BINARY)
|
|
540
541
|
except KeyboardInterrupt:
|
|
541
542
|
if self.debug_mode:
|
|
542
543
|
print("KeyboardInterrupt in record_and_send_audio, exiting...")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: RealtimeSTT
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.81
|
|
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
|
|
@@ -130,17 +130,17 @@ To upgrade your PyTorch installation to enable GPU support with CUDA, follow the
|
|
|
130
130
|
To update PyTorch and Torchaudio to support CUDA 11.8, use the following commands:
|
|
131
131
|
|
|
132
132
|
```bash
|
|
133
|
-
pip install torch==2.
|
|
133
|
+
pip install torch==2.5.1+cu118 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu118
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
#### For CUDA 12.X:
|
|
137
137
|
To update PyTorch and Torchaudio to support CUDA 12.X, execute the following:
|
|
138
138
|
|
|
139
139
|
```bash
|
|
140
|
-
pip install torch==2.
|
|
140
|
+
pip install torch==2.5.1+cu121 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
Replace `2.
|
|
143
|
+
Replace `2.5.1` with the version of PyTorch that matches your system and requirements.
|
|
144
144
|
|
|
145
145
|
### Steps That Might Be Necessary Before
|
|
146
146
|
|
|
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
|