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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RealtimeSTT
3
- Version: 0.3.8
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.3.1+cu118 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu118
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.3.1+cu121 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121
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.3.1` with the version of PyTorch that matches your system and requirements.
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.3.1+cu118 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu118
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.3.1+cu121 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121
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.3.1` with the version of PyTorch that matches your system and requirements.
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=websocket.ABNF.OPCODE_BINARY)
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 = websocket.WebSocketApp(self.control_url,
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 = websocket.WebSocketApp(self.data_url,
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=websocket.ABNF.OPCODE_BINARY)
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.8
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.3.1+cu118 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu118
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.3.1+cu121 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121
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.3.1` with the version of PyTorch that matches your system and requirements.
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
 
@@ -6,8 +6,7 @@ halo==0.0.31
6
6
  torch
7
7
  torchaudio
8
8
  scipy==1.14.1
9
- websocket==0.2.1
9
+ openwakeword>=0.4.0
10
10
  websockets==v12.0
11
11
  websocket-client==1.8.0
12
- openwakeword>=0.4.0
13
12
  numpy<2.0.0
@@ -9,7 +9,7 @@ with open('requirements.txt') as f:
9
9
 
10
10
  setuptools.setup(
11
11
  name="RealtimeSTT",
12
- version="0.3.8",
12
+ version="0.3.81",
13
13
  author="Kolja Beigel",
14
14
  author_email="kolja.beigel@web.de",
15
15
  description="A fast Voice Activity Detection and Transcription System",
File without changes
File without changes