s2t 0.1.3.post1.dev1__tar.gz → 0.1.5__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 (30) hide show
  1. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/PKG-INFO +1 -1
  2. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/recorder.py +3 -16
  3. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t.egg-info/PKG-INFO +1 -1
  4. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/.gitignore +0 -0
  5. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/.pre-commit-config.yaml +0 -0
  6. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/AGENTS.md +0 -0
  7. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/CONTRIBUTING.md +0 -0
  8. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/MANIFEST.in +0 -0
  9. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/Makefile +0 -0
  10. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/README.md +0 -0
  11. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/docs/RELEASING.md +0 -0
  12. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/docs/SESSION_STATE.md +0 -0
  13. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/pyproject.toml +0 -0
  14. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/scripts/bench_transcribe.py +0 -0
  15. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/setup.cfg +0 -0
  16. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/__init__.py +0 -0
  17. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/cli.py +0 -0
  18. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/config.py +0 -0
  19. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/outputs.py +0 -0
  20. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/py.typed +0 -0
  21. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/translator/__init__.py +0 -0
  22. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/translator/argos_backend.py +0 -0
  23. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/types.py +0 -0
  24. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/utils.py +0 -0
  25. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t/whisper_engine.py +0 -0
  26. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t.egg-info/SOURCES.txt +0 -0
  27. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t.egg-info/dependency_links.txt +0 -0
  28. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t.egg-info/entry_points.txt +0 -0
  29. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t.egg-info/requires.txt +0 -0
  30. {s2t-0.1.3.post1.dev1 → s2t-0.1.5}/src/s2t.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: s2t
3
- Version: 0.1.3.post1.dev1
3
+ Version: 0.1.5
4
4
  Summary: Speech to Text (s2t): Record audio, run Whisper, export formats, and copy transcript to clipboard.
5
5
  Author: Maintainers
6
6
  License-Expression: LicenseRef-Proprietary
@@ -194,7 +194,8 @@ class Recorder:
194
194
  # Log unexpected key reader errors to aid debugging, but keep recording running.
195
195
  print(f"Warning: key reader stopped unexpectedly: {e}", file=sys.stderr)
196
196
 
197
- audio_q: queue.Queue[tuple[str, Any]] = queue.Queue(maxsize=128)
197
+ # Unbounded audio queue to avoid drops on slower machines; control signals are separate.
198
+ audio_q: queue.Queue[tuple[str, Any]] = queue.Queue()
198
199
  chunk_index = 1
199
200
  chunk_paths: list[Path] = []
200
201
  chunk_frames: list[int] = []
@@ -290,25 +291,11 @@ class Recorder:
290
291
  frames_written += len(data)
291
292
  tx_queue.put((-1, Path(), 0, 0.0))
292
293
 
293
- # Timestamp of last dropped-frame warning (throttling for verbose mode)
294
- last_drop_log = 0.0
295
-
296
294
  def cb(indata: Any, frames: int, time_info: Any, status: Any) -> None:
297
- nonlocal last_drop_log
298
295
  if status:
299
296
  print(status, file=sys.stderr)
300
297
  if not self._paused:
301
- try:
302
- audio_q.put_nowait(("frames", indata.copy()))
303
- except queue.Full:
304
- # Drop frame if the queue is saturated; throttle warnings.
305
- now = time.perf_counter()
306
- if self.verbose and (now - last_drop_log) > 1.0:
307
- print(
308
- "Warning: audio queue full; dropping input frames.",
309
- file=sys.stderr,
310
- )
311
- last_drop_log = now
298
+ audio_q.put(("frames", indata.copy()))
312
299
 
313
300
  key_t = threading.Thread(target=key_reader, daemon=True)
314
301
  writer_t = threading.Thread(target=writer_fn, daemon=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: s2t
3
- Version: 0.1.3.post1.dev1
3
+ Version: 0.1.5
4
4
  Summary: Speech to Text (s2t): Record audio, run Whisper, export formats, and copy transcript to clipboard.
5
5
  Author: Maintainers
6
6
  License-Expression: LicenseRef-Proprietary
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