python-voiceio 1.18.11__tar.gz → 1.18.13__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 (250) hide show
  1. {python_voiceio-1.18.11/python_voiceio.egg-info → python_voiceio-1.18.13}/PKG-INFO +1 -1
  2. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/pyproject.toml +1 -1
  3. {python_voiceio-1.18.11 → python_voiceio-1.18.13/python_voiceio.egg-info}/PKG-INFO +1 -1
  4. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/python_voiceio.egg-info/SOURCES.txt +1 -0
  5. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_install_env.py +31 -0
  6. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_tts.py +18 -0
  7. python_voiceio-1.18.13/tests/test_tts_socket.py +156 -0
  8. python_voiceio-1.18.13/voiceio/__init__.py +1 -0
  9. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/app.py +8 -2
  10. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/__init__.py +3 -0
  11. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/hotkeys/socket_backend.py +11 -7
  12. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/install_env.py +11 -2
  13. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/steps.py +5 -1
  14. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tts/piper_engine.py +5 -2
  15. python_voiceio-1.18.11/voiceio/__init__.py +0 -1
  16. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/LICENSE +0 -0
  17. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/README.md +0 -0
  18. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/python_voiceio.egg-info/dependency_links.txt +0 -0
  19. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/python_voiceio.egg-info/entry_points.txt +0 -0
  20. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/python_voiceio.egg-info/requires.txt +0 -0
  21. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/python_voiceio.egg-info/top_level.txt +0 -0
  22. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/setup.cfg +0 -0
  23. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_announce.py +0 -0
  24. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_app_wiring.py +0 -0
  25. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_audio_quality.py +0 -0
  26. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_audio_source.py +0 -0
  27. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_backend_probes.py +0 -0
  28. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_cancel.py +0 -0
  29. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_cli.py +0 -0
  30. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_clipboard_read.py +0 -0
  31. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_clipboard_typer.py +0 -0
  32. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_commands.py +0 -0
  33. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_concurrency_lockdown.py +0 -0
  34. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_config.py +0 -0
  35. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_context_terms.py +0 -0
  36. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_corrections.py +0 -0
  37. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_cuda_setup_hint.py +0 -0
  38. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_dead_mic.py +0 -0
  39. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_decoders.py +0 -0
  40. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_engine.py +0 -0
  41. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_errorlog.py +0 -0
  42. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_evdev_uaccess.py +0 -0
  43. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_evdev_x11_optional.py +0 -0
  44. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_fallback.py +0 -0
  45. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_fcitx_bridge.py +0 -0
  46. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_feedback_stream.py +0 -0
  47. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_focus.py +0 -0
  48. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_gpu_fallback.py +0 -0
  49. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_health.py +0 -0
  50. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_hints.py +0 -0
  51. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_history.py +0 -0
  52. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_hotkey_modes.py +0 -0
  53. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_ibus_engine_limits.py +0 -0
  54. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_ibus_engine_listener.py +0 -0
  55. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_ibus_pending.py +0 -0
  56. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_ibus_pids.py +0 -0
  57. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_ibus_ping.py +0 -0
  58. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_ibus_session.py +0 -0
  59. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_ibus_textlimit.py +0 -0
  60. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_ibus_typer.py +0 -0
  61. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_idle_audio.py +0 -0
  62. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_clean.py +0 -0
  63. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_import.py +0 -0
  64. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_language.py +0 -0
  65. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_metrics.py +0 -0
  66. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_pipeline.py +0 -0
  67. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_quiet.py +0 -0
  68. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_resume.py +0 -0
  69. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_review.py +0 -0
  70. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_summary.py +0 -0
  71. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_learn_targets.py +0 -0
  72. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_llm.py +0 -0
  73. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_llm_api.py +0 -0
  74. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_mic_gain.py +0 -0
  75. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_mic_test.py +0 -0
  76. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_modifier_guard.py +0 -0
  77. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_numbers.py +0 -0
  78. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_paste_last.py +0 -0
  79. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_pipeline.py +0 -0
  80. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_platform.py +0 -0
  81. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_postcorrect.py +0 -0
  82. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_postprocess.py +0 -0
  83. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_prebuffer.py +0 -0
  84. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_presence.py +0 -0
  85. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_prompt.py +0 -0
  86. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_quiet_audio.py +0 -0
  87. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_recorder_integration.py +0 -0
  88. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_replies.py +0 -0
  89. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_report.py +0 -0
  90. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_retention.py +0 -0
  91. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_robustness.py +0 -0
  92. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_security_hardening.py +0 -0
  93. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_server.py +0 -0
  94. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_service.py +0 -0
  95. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_setup.py +0 -0
  96. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_sherpa.py +0 -0
  97. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_spool.py +0 -0
  98. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_streaming.py +0 -0
  99. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_suggest.py +0 -0
  100. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_telemetry.py +0 -0
  101. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_tokens.py +0 -0
  102. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_transcriber.py +0 -0
  103. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_tray.py +0 -0
  104. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_typer_manager.py +0 -0
  105. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_vad.py +0 -0
  106. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_vocabulary.py +0 -0
  107. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_wordfreq.py +0 -0
  108. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/tests/test_worker_decode.py +0 -0
  109. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/__main__.py +0 -0
  110. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/announce.py +0 -0
  111. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/audio_source.py +0 -0
  112. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/backends.py +0 -0
  113. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/configcmd.py +0 -0
  114. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/corrections.py +0 -0
  115. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/doctor.py +0 -0
  116. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/history.py +0 -0
  117. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/learn.py +0 -0
  118. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/models.py +0 -0
  119. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/replies.py +0 -0
  120. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/servicecmd.py +0 -0
  121. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/uninstall.py +0 -0
  122. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/cli/vocab.py +0 -0
  123. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/clipboard_read.py +0 -0
  124. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/commands.py +0 -0
  125. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/config.py +0 -0
  126. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/consent.py +0 -0
  127. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/context_terms.py +0 -0
  128. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/__init__.py +0 -0
  129. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/bias.py +0 -0
  130. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/__init__.py +0 -0
  131. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/base.py +0 -0
  132. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/catalog.py +0 -0
  133. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/faster_whisper/__init__.py +0 -0
  134. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/faster_whisper/worker.py +0 -0
  135. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/fetch.py +0 -0
  136. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/lanes.py +0 -0
  137. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/sherpa.py +0 -0
  138. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/decoders/whispercpp.py +0 -0
  139. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/engine.py +0 -0
  140. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/core/pipeline.py +0 -0
  141. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/corrections.py +0 -0
  142. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/data/60-voiceio-uaccess.rules +0 -0
  143. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/data/__init__.py +0 -0
  144. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/demo.py +0 -0
  145. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/display.py +0 -0
  146. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/errorlog.py +0 -0
  147. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/feedback.py +0 -0
  148. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/focus.py +0 -0
  149. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/health.py +0 -0
  150. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/hints.py +0 -0
  151. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/history.py +0 -0
  152. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/hotkeys/__init__.py +0 -0
  153. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/hotkeys/base.py +0 -0
  154. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/hotkeys/chain.py +0 -0
  155. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/hotkeys/evdev.py +0 -0
  156. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/hotkeys/pynput_backend.py +0 -0
  157. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/ibus/__init__.py +0 -0
  158. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/ibus/engine.py +0 -0
  159. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/ibus/install.py +0 -0
  160. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/ibus/pending.py +0 -0
  161. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/ibus/session.py +0 -0
  162. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/ibus/textlimit.py +0 -0
  163. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/idle_audio.py +0 -0
  164. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/__init__.py +0 -0
  165. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/augment.py +0 -0
  166. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/clean.py +0 -0
  167. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/evaluate.py +0 -0
  168. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/importer.py +0 -0
  169. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/lastrun.py +0 -0
  170. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/metrics.py +0 -0
  171. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/quiet.py +0 -0
  172. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/review.py +0 -0
  173. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/store.py +0 -0
  174. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/summary.py +0 -0
  175. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/teacher.py +0 -0
  176. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/learn/train.py +0 -0
  177. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/llm.py +0 -0
  178. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/llm_api.py +0 -0
  179. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/mic_gain.py +0 -0
  180. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/models/__init__.py +0 -0
  181. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/models/silero_vad.onnx +0 -0
  182. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/numbers.py +0 -0
  183. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/pidlock.py +0 -0
  184. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/platform.py +0 -0
  185. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/postcorrect.py +0 -0
  186. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/postprocess.py +0 -0
  187. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/power.py +0 -0
  188. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/presence.py +0 -0
  189. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/privacy.py +0 -0
  190. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/prompt.py +0 -0
  191. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/quiet_audio.py +0 -0
  192. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/recorder.py +0 -0
  193. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/replies.py +0 -0
  194. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/report.py +0 -0
  195. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/retention.py +0 -0
  196. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/server/__init__.py +0 -0
  197. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/server/__main__.py +0 -0
  198. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/server/app.py +0 -0
  199. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/server/config.py +0 -0
  200. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/server/runtime.py +0 -0
  201. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/service.py +0 -0
  202. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/__init__.py +0 -0
  203. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/configfile.py +0 -0
  204. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/extras.py +0 -0
  205. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/hotkey.py +0 -0
  206. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/noninteractive.py +0 -0
  207. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/speech.py +0 -0
  208. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/system.py +0 -0
  209. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/setup/ui.py +0 -0
  210. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/sounds/__init__.py +0 -0
  211. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/sounds/alert.wav +0 -0
  212. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/sounds/commit.wav +0 -0
  213. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/sounds/start.wav +0 -0
  214. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/sounds/stop.wav +0 -0
  215. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/spool.py +0 -0
  216. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/streaming.py +0 -0
  217. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/suggest.py +0 -0
  218. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/telemetry.py +0 -0
  219. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tokens.py +0 -0
  220. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tray/__init__.py +0 -0
  221. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tray/_icons.py +0 -0
  222. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tray/_indicator.py +0 -0
  223. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tray/_pystray.py +0 -0
  224. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tts/__init__.py +0 -0
  225. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tts/base.py +0 -0
  226. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tts/chain.py +0 -0
  227. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tts/edge_engine.py +0 -0
  228. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tts/espeak.py +0 -0
  229. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tts/player.py +0 -0
  230. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/tts/supertonic_engine.py +0 -0
  231. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/__init__.py +0 -0
  232. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/base.py +0 -0
  233. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/chain.py +0 -0
  234. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/clipboard.py +0 -0
  235. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/collecting.py +0 -0
  236. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/fcitx_bridge.py +0 -0
  237. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/ibus.py +0 -0
  238. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/manager.py +0 -0
  239. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/modifier_guard.py +0 -0
  240. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/paste.py +0 -0
  241. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/pynput_type.py +0 -0
  242. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/wtype.py +0 -0
  243. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/xdotool.py +0 -0
  244. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/typers/ydotool.py +0 -0
  245. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/ui.py +0 -0
  246. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/vad.py +0 -0
  247. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/vocab_stats.py +0 -0
  248. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/vocabulary.py +0 -0
  249. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/watchdog.py +0 -0
  250. {python_voiceio-1.18.11 → python_voiceio-1.18.13}/voiceio/wordfreq.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-voiceio
3
- Version: 1.18.11
3
+ Version: 1.18.13
4
4
  Summary: Voice dictation for Linux. Speak → text, locally, instantly.
5
5
  Author: Hugo Montenegro
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-voiceio"
7
- version = "1.18.11"
7
+ version = "1.18.13"
8
8
  description = "Voice dictation for Linux. Speak → text, locally, instantly."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-voiceio
3
- Version: 1.18.11
3
+ Version: 1.18.13
4
4
  Summary: Voice dictation for Linux. Speak → text, locally, instantly.
5
5
  Author: Hugo Montenegro
6
6
  License-Expression: MIT
@@ -90,6 +90,7 @@ tests/test_tokens.py
90
90
  tests/test_transcriber.py
91
91
  tests/test_tray.py
92
92
  tests/test_tts.py
93
+ tests/test_tts_socket.py
93
94
  tests/test_typer_manager.py
94
95
  tests/test_vad.py
95
96
  tests/test_vocabulary.py
@@ -61,6 +61,37 @@ def test_persistent_installs_are_not_ephemeral(monkeypatch, tmp_path):
61
61
  assert not install_env.running_ephemeral()
62
62
 
63
63
 
64
+ def test_a_tagged_venv_created_by_uv_is_not_ephemeral(monkeypatch, tmp_path):
65
+ # uv writes CACHEDIR.TAG into every venv it creates (`uv tool install`,
66
+ # `uv sync`), so a tag on a venv root is not a cache root (issue #14).
67
+ monkeypatch.setenv("UV_CACHE_DIR", str(tmp_path / "cache"))
68
+ for env in (tmp_path / ".local/share/uv/tools/python-voiceio",
69
+ tmp_path / "project" / ".venv"):
70
+ (env / "bin").mkdir(parents=True)
71
+ (env / "CACHEDIR.TAG").write_text(TAG)
72
+ (env / "pyvenv.cfg").write_text("home = /usr/bin\nuv = 0.13.9\n")
73
+ bin_path = env / "bin" / "voiceio"
74
+ bin_path.write_text("")
75
+ assert not install_env.in_uv_cache(bin_path)
76
+ monkeypatch.setattr(sys, "prefix", str(env))
77
+ assert not install_env.running_ephemeral()
78
+ assert not service._refuse_ephemeral(str(bin_path))
79
+
80
+
81
+ def test_a_venv_inside_another_cache_dir_is_still_ephemeral(monkeypatch, tmp_path):
82
+ # `uvx --cache-dir DIR`: the env under DIR is tagged and a venv, but DIR
83
+ # itself is the tagged cache root uv prunes.
84
+ monkeypatch.setenv("UV_CACHE_DIR", str(tmp_path / "default"))
85
+ cache = tmp_path / "custom"
86
+ env = cache / "archive-v0" / "abc123"
87
+ (env / "bin").mkdir(parents=True)
88
+ (cache / "CACHEDIR.TAG").write_text(TAG)
89
+ (env / "CACHEDIR.TAG").write_text(TAG)
90
+ (env / "pyvenv.cfg").write_text("home = /usr/bin\nuv = 0.13.9\n")
91
+ (env / "bin" / "voiceio").write_text("")
92
+ assert install_env.in_uv_cache(env / "bin" / "voiceio")
93
+
94
+
64
95
  def test_service_install_refuses_a_uv_cache_binary(monkeypatch, tmp_path, uv_cache, capsys):
65
96
  monkeypatch.setattr(sys, "prefix", str(uv_cache))
66
97
  monkeypatch.setattr(service, "has_systemd", lambda: True)
@@ -391,6 +391,7 @@ def test_piper_skips_download_when_model_present(tmp_path):
391
391
  from voiceio.tts import piper_engine
392
392
 
393
393
  (tmp_path / "en_US-lessac-medium.onnx").write_bytes(b"onnx")
394
+ (tmp_path / "en_US-lessac-medium.onnx.json").write_text("{}")
394
395
  modules = _fake_piper()
395
396
  engine = piper_engine.PiperEngine()
396
397
 
@@ -401,6 +402,23 @@ def test_piper_skips_download_when_model_present(tmp_path):
401
402
  modules["piper.download_voices"].download_voice.assert_not_called()
402
403
 
403
404
 
405
+ def test_piper_redownloads_a_voice_missing_its_config(tmp_path):
406
+ """An interrupted download leaves the .onnx without its .onnx.json:
407
+ loading that raised FileNotFoundError on every start."""
408
+ from voiceio.tts import piper_engine
409
+
410
+ (tmp_path / "en_US-lessac-medium.onnx").write_bytes(b"onnx")
411
+ modules = _fake_piper()
412
+ engine = piper_engine.PiperEngine()
413
+
414
+ with patch.dict("sys.modules", modules), \
415
+ patch.object(piper_engine, "_models_dir", return_value=tmp_path):
416
+ engine._ensure_voice()
417
+
418
+ modules["piper.download_voices"].download_voice.assert_called_once_with(
419
+ "en_US-lessac-medium", tmp_path)
420
+
421
+
404
422
  def test_piper_never_writes_to_the_cwd(tmp_path):
405
423
  """piper's `download_dir` defaults to the current working directory. A
406
424
  daemon's cwd is not ours to litter in."""
@@ -0,0 +1,156 @@
1
+ """One socket listener per daemon: `voiceio toggle` dictates, `voiceio speak`
2
+ reads aloud. A second SocketHotkey for the TTS key used to steal the socket
3
+ path, so the toggle shortcut read the clipboard aloud instead of recording."""
4
+ from __future__ import annotations
5
+
6
+ import socket
7
+ import sys
8
+ import threading
9
+ import time
10
+ from unittest.mock import MagicMock, patch
11
+
12
+ import pytest
13
+
14
+ from voiceio.config import Config
15
+ from voiceio.hotkeys import socket_backend as sb
16
+ from voiceio.typers.base import TyperBackend
17
+
18
+ pytestmark = pytest.mark.skipif(sys.platform == "win32", reason="Unix socket path")
19
+
20
+
21
+ @pytest.fixture
22
+ def sock_path(tmp_path, monkeypatch):
23
+ monkeypatch.setattr(sb, "SOCKET_PATH", tmp_path / "v.sock")
24
+ return tmp_path / "v.sock"
25
+
26
+
27
+ def _make_app(tts_engine):
28
+ """The hotkey chain resolves to the socket backend (no evdev, no pynput)."""
29
+ typer = MagicMock(spec=TyperBackend)
30
+ typer.name = "clipboard"
31
+ with patch("voiceio.app.hotkey_chain.select", side_effect=lambda *a, **k: sb.SocketHotkey()), \
32
+ patch("voiceio.app.typer_chain.select", return_value=typer), \
33
+ patch("voiceio.app.build_decoder", return_value=MagicMock()), \
34
+ patch("voiceio.tts.select", return_value=tts_engine), \
35
+ patch("voiceio.tts.player.TTSPlayer", return_value=MagicMock()), \
36
+ patch("voiceio.app.plat.detect") as detect:
37
+ detect.return_value = MagicMock(display_server="wayland", desktop="gnome")
38
+ from voiceio.app import VoiceIO
39
+ vio = VoiceIO(Config())
40
+ return vio
41
+
42
+
43
+ def _start(vio):
44
+ """What run() does with the hotkeys."""
45
+ vio._start_hotkeys()
46
+ if vio._tts_hotkey:
47
+ vio._tts_hotkey.start(vio.cfg.tts.hotkey, vio.on_tts_hotkey)
48
+
49
+
50
+ def _stop(vio):
51
+ vio._hotkey.stop()
52
+ if vio._socket is not None:
53
+ vio._socket.stop()
54
+ if vio._tts_hotkey:
55
+ vio._tts_hotkey.stop()
56
+
57
+
58
+ def _wait_for(cond, timeout=3.0):
59
+ deadline = time.monotonic() + timeout
60
+ while not cond() and time.monotonic() < deadline:
61
+ time.sleep(0.02)
62
+ return cond()
63
+
64
+
65
+ def test_toggle_dictates_when_tts_is_on_and_the_chain_is_socket(sock_path):
66
+ engine = MagicMock()
67
+ engine.name = "espeak"
68
+ vio = _make_app(engine)
69
+ assert vio._hotkey.name == "socket"
70
+ assert vio._socket is None and vio._tts_hotkey is None
71
+
72
+ vio.on_hotkey = MagicMock()
73
+ vio.on_tts_hotkey = MagicMock()
74
+ binds = []
75
+ real_start = sb.SocketHotkey.start
76
+ with patch.object(sb.SocketHotkey, "start", autospec=True,
77
+ side_effect=lambda self, *a, **k: (binds.append(self),
78
+ real_start(self, *a, **k))):
79
+ _start(vio)
80
+ try:
81
+ assert len(binds) == 1
82
+ assert sb.send_command("toggle")
83
+ assert _wait_for(lambda: vio.on_hotkey.called)
84
+ time.sleep(0.1)
85
+ vio.on_tts_hotkey.assert_not_called()
86
+
87
+ assert sb.send_command("speak")
88
+ assert _wait_for(lambda: vio.on_tts_hotkey.called)
89
+ vio.on_hotkey.assert_called_once()
90
+ finally:
91
+ _stop(vio)
92
+
93
+
94
+ def test_speak_is_ignored_without_a_tts_engine(sock_path):
95
+ vio = _make_app(None)
96
+ vio.on_hotkey = MagicMock()
97
+ vio.on_tts_hotkey = MagicMock()
98
+ _start(vio)
99
+ try:
100
+ assert sb.send_command("speak")
101
+ assert sb.send_command("toggle")
102
+ assert _wait_for(lambda: vio.on_hotkey.called)
103
+ vio.on_tts_hotkey.assert_not_called()
104
+ finally:
105
+ _stop(vio)
106
+
107
+
108
+ def test_non_socket_tts_backend_still_gets_its_own_key():
109
+ key_backend = MagicMock()
110
+ key_backend.name = "evdev"
111
+ typer = MagicMock(spec=TyperBackend)
112
+ typer.name = "clipboard"
113
+ engine = MagicMock()
114
+ engine.name = "espeak"
115
+ with patch("voiceio.app.hotkey_chain.select", return_value=key_backend), \
116
+ patch("voiceio.app.typer_chain.select", return_value=typer), \
117
+ patch("voiceio.app.build_decoder", return_value=MagicMock()), \
118
+ patch("voiceio.tts.select", return_value=engine), \
119
+ patch("voiceio.tts.player.TTSPlayer", return_value=MagicMock()), \
120
+ patch("voiceio.app.plat.detect") as detect:
121
+ detect.return_value = MagicMock(display_server="wayland", desktop="gnome")
122
+ from voiceio.app import VoiceIO
123
+ vio = VoiceIO(Config())
124
+ assert vio._tts_hotkey is key_backend
125
+ vio._socket = MagicMock()
126
+ vio._start_hotkeys()
127
+ vio._socket.handle.assert_any_call("speak", vio.on_tts_hotkey)
128
+
129
+
130
+ def _free_udp_port():
131
+ s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
132
+ s.bind(("127.0.0.1", 0))
133
+ port = s.getsockname()[1]
134
+ s.close()
135
+ return port
136
+
137
+
138
+ @pytest.mark.parametrize("udp", [False, True], ids=["unix", "windows-udp"])
139
+ def test_debounce_is_per_command(sock_path, monkeypatch, udp):
140
+ if udp:
141
+ monkeypatch.setattr(sb, "_IS_WINDOWS", True)
142
+ monkeypatch.setattr(sb, "_UDP_PORT", _free_udp_port())
143
+ got = []
144
+ done = threading.Event()
145
+ hk = sb.SocketHotkey()
146
+ hk.start("x", lambda: got.append("toggle"))
147
+ hk.handle("speak", lambda: got.append("speak"))
148
+ hk.handle("cancel", lambda: done.set())
149
+ try:
150
+ for command in ("toggle", "speak", "toggle", "speak", "cancel"):
151
+ assert sb.send_command(command)
152
+ assert done.wait(3)
153
+ # A toggle doesn't suppress a speak; repeats of each are debounced.
154
+ assert got == ["toggle", "speak"]
155
+ finally:
156
+ hk.stop()
@@ -0,0 +1 @@
1
+ __version__ = "1.18.13"
@@ -199,8 +199,12 @@ class VoiceIO:
199
199
  self._tts_engine = tts_select(cfg.tts)
200
200
  if self._tts_engine:
201
201
  self._tts_player = TTSPlayer()
202
- # Create a second hotkey backend for TTS
203
- self._tts_hotkey = hotkey_chain.select(platform, cfg.hotkey.backend)
202
+ # A key backend of its own for the TTS key. Never a second
203
+ # socket listener: it would steal the path from dictation.
204
+ # On the socket path, `voiceio speak` is the TTS key.
205
+ tts_hotkey = hotkey_chain.select(platform, cfg.hotkey.backend)
206
+ if tts_hotkey.name != "socket":
207
+ self._tts_hotkey = tts_hotkey
204
208
  log.info("TTS: engine=%s, hotkey=%s", self._tts_engine.name, cfg.tts.hotkey)
205
209
  elif cfg.tts.engine == "auto":
206
210
  # The default config: read aloud once an engine is installed.
@@ -1004,6 +1008,8 @@ class VoiceIO:
1004
1008
  control.handle("release", self.on_hotkey_release)
1005
1009
  control.handle("cancel", self.cancel)
1006
1010
  control.handle("paste-last", self.paste_last)
1011
+ if self._tts_engine is not None:
1012
+ control.handle("speak", self.on_tts_hotkey)
1007
1013
  if hasattr(control, "handle_payload"):
1008
1014
  control.handle_payload("say", self.on_say)
1009
1015
  if self._cancel_hotkey is not None:
@@ -43,6 +43,9 @@ def main() -> None:
43
43
  edge.add_argument("--release", dest="edge", action="store_const", const="release",
44
44
  help="key up: ends a held push-to-talk recording")
45
45
  p_toggle.set_defaults(func=lambda a: _send(a.edge or "toggle"))
46
+ sub.add_parser("speak", help="Read the selected text aloud, or stop reading "
47
+ "(bind it to a shortcut; same as the TTS hotkey)"
48
+ ).set_defaults(func=lambda a: _send("speak"))
46
49
  sub.add_parser("cancel", help="Abandon the current dictation: nothing is typed or kept"
47
50
  ).set_defaults(func=lambda a: _send("cancel"))
48
51
 
@@ -29,14 +29,17 @@ class SocketHotkey:
29
29
  """Listens on a Unix DGRAM socket (or UDP on Windows) for commands.
30
30
 
31
31
  "toggle" fires on_trigger (it is the hotkey: debounced against evdev
32
- seeing the same keypress); handle() adds others ("press", "release"...).
32
+ seeing the same keypress); handle() adds others ("press", "release",
33
+ "speak"...). One listener per daemon owns the socket path: every
34
+ command routes through it.
33
35
  A DE shortcut runs a command on key down only, so this backend reports
34
36
  no release unless the compositor binds one (`voiceio toggle --release`).
35
37
  """
36
38
 
37
39
  name = "socket"
38
- # Commands that may be the same keypress also seen by evdev/pynput.
39
- _DEBOUNCED = frozenset({"toggle", "press"})
40
+ # Debounced commands -> debounce group. "toggle" and "press" may be the
41
+ # same keypress (also seen by evdev/pynput); "speak" is its own key.
42
+ _DEBOUNCED = {"toggle": "hotkey", "press": "hotkey", "speak": "speak"}
40
43
 
41
44
  def __init__(self) -> None:
42
45
  self._handlers: dict[str, Callable[[], None]] = {}
@@ -63,7 +66,7 @@ class SocketHotkey:
63
66
  on_release: Callable[[], None] | None = None) -> None:
64
67
  self._handlers["toggle"] = on_trigger
65
68
  self._running = True
66
- self._last_trigger: float = 0
69
+ self._last_trigger: dict[str, float] = {}
67
70
 
68
71
  if _IS_WINDOWS:
69
72
  self._sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
@@ -91,11 +94,12 @@ class SocketHotkey:
91
94
  fn = self._handlers.get(command)
92
95
  if fn is None:
93
96
  continue
94
- if command in self._DEBOUNCED:
97
+ group = self._DEBOUNCED.get(command)
98
+ if group is not None:
95
99
  now = time.monotonic()
96
- if now - self._last_trigger < DEBOUNCE_SECS:
100
+ if now - self._last_trigger.get(group, -DEBOUNCE_SECS) < DEBOUNCE_SECS:
97
101
  continue
98
- self._last_trigger = now
102
+ self._last_trigger[group] = now
99
103
  fn()
100
104
  except socket.timeout:
101
105
  continue
@@ -21,6 +21,7 @@ PIPX_INSTALL = "pipx install 'python-voiceio[desktop]'"
21
21
  # deleted at any time. uv writes it at the root of every cache it uses,
22
22
  # including the temporary one of `uvx --no-cache`.
23
23
  CACHEDIR_TAG = "CACHEDIR.TAG"
24
+ PYVENV_CFG = "pyvenv.cfg"
24
25
  _CACHEDIR_SIGNATURE = "Signature: 8a477f597d28d172789f06886806bc55"
25
26
 
26
27
 
@@ -40,6 +41,13 @@ def uv_cache_dir() -> Path:
40
41
 
41
42
 
42
43
  def _is_cachedir(d: Path) -> bool:
44
+ # uv tags venv roots too (every `uv tool install` env, every `uv venv` and
45
+ # `uv sync` .venv), so a tag alone does not mean "uv prunes this". Only
46
+ # cache roots get pruned, and a cache root is never itself a venv. A uvx
47
+ # environment is tagged and has a pyvenv.cfg, but it lives under the
48
+ # tagged cache root, which the parent scan still finds.
49
+ if (d / PYVENV_CFG).exists():
50
+ return False
43
51
  try:
44
52
  with open(d / CACHEDIR_TAG, encoding="utf-8", errors="replace") as f:
45
53
  return f.read(len(_CACHEDIR_SIGNATURE)) == _CACHEDIR_SIGNATURE
@@ -51,8 +59,9 @@ def in_uv_cache(path: str | os.PathLike) -> bool:
51
59
  """True when ``path`` lies inside uv's cache (or any tagged cache dir).
52
60
 
53
61
  Two checks, either suffices: the path is under uv_cache_dir(), or one of
54
- its parent directories carries a CACHEDIR.TAG (catches `--cache-dir`,
55
- `--no-cache` and a UV_CACHE_DIR that differed when the file was written).
62
+ its parent directories carries a CACHEDIR.TAG and is not itself a venv
63
+ (catches `--cache-dir`, `--no-cache` and a UV_CACHE_DIR that differed when
64
+ the file was written; uv also tags the venvs it creates, see _is_cachedir).
56
65
  uv sets no variable that marks an ephemeral run: `$UV` is also set by
57
66
  `uv run` in a project and inherited by every child, and pyvenv.cfg's
58
67
  `uv = ...` line is also in `uv tool install` and `uv venv` environments.
@@ -387,7 +387,11 @@ def _select_output_backend(state: SetupState) -> None:
387
387
 
388
388
  def _step_tts(state: SetupState) -> None:
389
389
  _print_step(5, _TOTAL_STEPS, "Text-to-speech")
390
- print(f" {DIM}Select text and press ctrl+alt+s to hear it spoken.{RESET}")
390
+ if state.backend == "socket":
391
+ print(f" {DIM}Select text and run 'voiceio speak' (bind it to a shortcut)"
392
+ f" to hear it spoken.{RESET}")
393
+ else:
394
+ print(f" {DIM}Select text and press ctrl+alt+s to hear it spoken.{RESET}")
391
395
  print(f" {DIM}Engines: piper (offline), edge-tts (cloud), espeak-ng (system).{RESET}")
392
396
  if not _tts_engine_installed():
393
397
  print(f" {DIM}None is installed yet: 'Enabled' stays silent until you install one,"
@@ -61,8 +61,11 @@ class PiperEngine:
61
61
  models_dir = _models_dir()
62
62
  models_dir.mkdir(parents=True, exist_ok=True)
63
63
  model_path = models_dir / f"{self._model_name}.onnx"
64
+ config_path = Path(f"{model_path}.json")
64
65
 
65
- if not model_path.exists():
66
+ # Both files: an interrupted download leaves the .onnx without its
67
+ # .json, and loading that raises FileNotFoundError on every start.
68
+ if not (model_path.exists() and config_path.exists()):
66
69
  log.info("TTS: downloading piper voice '%s'...", self._model_name)
67
70
  download_voice(self._model_name, models_dir)
68
71
 
@@ -72,7 +75,7 @@ class PiperEngine:
72
75
  # ours to write into.
73
76
  self._voice = PiperVoice.load(
74
77
  model_path,
75
- config_path=f"{model_path}.json",
78
+ config_path=config_path,
76
79
  download_dir=models_dir,
77
80
  )
78
81
  self._sample_rate = self._voice.config.sample_rate
@@ -1 +0,0 @@
1
- __version__ = "1.18.11"