python-voiceio 1.18.12__tar.gz → 1.18.14__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.12/python_voiceio.egg-info → python_voiceio-1.18.14}/PKG-INFO +3 -1
  2. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/README.md +2 -0
  3. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/pyproject.toml +1 -1
  4. {python_voiceio-1.18.12 → python_voiceio-1.18.14/python_voiceio.egg-info}/PKG-INFO +3 -1
  5. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_cli.py +52 -0
  6. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_install_env.py +31 -0
  7. python_voiceio-1.18.14/voiceio/__init__.py +1 -0
  8. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/__init__.py +29 -0
  9. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/install_env.py +11 -2
  10. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/platform.py +14 -0
  11. python_voiceio-1.18.12/voiceio/__init__.py +0 -1
  12. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/LICENSE +0 -0
  13. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/python_voiceio.egg-info/SOURCES.txt +0 -0
  14. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/python_voiceio.egg-info/dependency_links.txt +0 -0
  15. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/python_voiceio.egg-info/entry_points.txt +0 -0
  16. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/python_voiceio.egg-info/requires.txt +0 -0
  17. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/python_voiceio.egg-info/top_level.txt +0 -0
  18. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/setup.cfg +0 -0
  19. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_announce.py +0 -0
  20. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_app_wiring.py +0 -0
  21. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_audio_quality.py +0 -0
  22. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_audio_source.py +0 -0
  23. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_backend_probes.py +0 -0
  24. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_cancel.py +0 -0
  25. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_clipboard_read.py +0 -0
  26. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_clipboard_typer.py +0 -0
  27. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_commands.py +0 -0
  28. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_concurrency_lockdown.py +0 -0
  29. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_config.py +0 -0
  30. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_context_terms.py +0 -0
  31. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_corrections.py +0 -0
  32. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_cuda_setup_hint.py +0 -0
  33. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_dead_mic.py +0 -0
  34. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_decoders.py +0 -0
  35. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_engine.py +0 -0
  36. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_errorlog.py +0 -0
  37. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_evdev_uaccess.py +0 -0
  38. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_evdev_x11_optional.py +0 -0
  39. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_fallback.py +0 -0
  40. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_fcitx_bridge.py +0 -0
  41. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_feedback_stream.py +0 -0
  42. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_focus.py +0 -0
  43. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_gpu_fallback.py +0 -0
  44. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_health.py +0 -0
  45. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_hints.py +0 -0
  46. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_history.py +0 -0
  47. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_hotkey_modes.py +0 -0
  48. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_ibus_engine_limits.py +0 -0
  49. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_ibus_engine_listener.py +0 -0
  50. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_ibus_pending.py +0 -0
  51. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_ibus_pids.py +0 -0
  52. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_ibus_ping.py +0 -0
  53. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_ibus_session.py +0 -0
  54. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_ibus_textlimit.py +0 -0
  55. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_ibus_typer.py +0 -0
  56. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_idle_audio.py +0 -0
  57. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_clean.py +0 -0
  58. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_import.py +0 -0
  59. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_language.py +0 -0
  60. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_metrics.py +0 -0
  61. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_pipeline.py +0 -0
  62. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_quiet.py +0 -0
  63. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_resume.py +0 -0
  64. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_review.py +0 -0
  65. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_summary.py +0 -0
  66. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_learn_targets.py +0 -0
  67. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_llm.py +0 -0
  68. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_llm_api.py +0 -0
  69. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_mic_gain.py +0 -0
  70. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_mic_test.py +0 -0
  71. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_modifier_guard.py +0 -0
  72. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_numbers.py +0 -0
  73. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_paste_last.py +0 -0
  74. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_pipeline.py +0 -0
  75. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_platform.py +0 -0
  76. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_postcorrect.py +0 -0
  77. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_postprocess.py +0 -0
  78. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_prebuffer.py +0 -0
  79. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_presence.py +0 -0
  80. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_prompt.py +0 -0
  81. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_quiet_audio.py +0 -0
  82. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_recorder_integration.py +0 -0
  83. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_replies.py +0 -0
  84. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_report.py +0 -0
  85. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_retention.py +0 -0
  86. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_robustness.py +0 -0
  87. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_security_hardening.py +0 -0
  88. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_server.py +0 -0
  89. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_service.py +0 -0
  90. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_setup.py +0 -0
  91. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_sherpa.py +0 -0
  92. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_spool.py +0 -0
  93. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_streaming.py +0 -0
  94. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_suggest.py +0 -0
  95. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_telemetry.py +0 -0
  96. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_tokens.py +0 -0
  97. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_transcriber.py +0 -0
  98. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_tray.py +0 -0
  99. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_tts.py +0 -0
  100. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_tts_socket.py +0 -0
  101. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_typer_manager.py +0 -0
  102. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_vad.py +0 -0
  103. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_vocabulary.py +0 -0
  104. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_wordfreq.py +0 -0
  105. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/tests/test_worker_decode.py +0 -0
  106. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/__main__.py +0 -0
  107. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/announce.py +0 -0
  108. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/app.py +0 -0
  109. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/audio_source.py +0 -0
  110. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/backends.py +0 -0
  111. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/configcmd.py +0 -0
  112. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/corrections.py +0 -0
  113. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/doctor.py +0 -0
  114. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/history.py +0 -0
  115. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/learn.py +0 -0
  116. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/models.py +0 -0
  117. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/replies.py +0 -0
  118. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/servicecmd.py +0 -0
  119. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/uninstall.py +0 -0
  120. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/cli/vocab.py +0 -0
  121. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/clipboard_read.py +0 -0
  122. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/commands.py +0 -0
  123. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/config.py +0 -0
  124. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/consent.py +0 -0
  125. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/context_terms.py +0 -0
  126. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/__init__.py +0 -0
  127. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/bias.py +0 -0
  128. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/__init__.py +0 -0
  129. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/base.py +0 -0
  130. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/catalog.py +0 -0
  131. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/faster_whisper/__init__.py +0 -0
  132. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/faster_whisper/worker.py +0 -0
  133. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/fetch.py +0 -0
  134. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/lanes.py +0 -0
  135. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/sherpa.py +0 -0
  136. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/decoders/whispercpp.py +0 -0
  137. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/engine.py +0 -0
  138. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/core/pipeline.py +0 -0
  139. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/corrections.py +0 -0
  140. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/data/60-voiceio-uaccess.rules +0 -0
  141. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/data/__init__.py +0 -0
  142. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/demo.py +0 -0
  143. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/display.py +0 -0
  144. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/errorlog.py +0 -0
  145. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/feedback.py +0 -0
  146. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/focus.py +0 -0
  147. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/health.py +0 -0
  148. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/hints.py +0 -0
  149. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/history.py +0 -0
  150. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/hotkeys/__init__.py +0 -0
  151. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/hotkeys/base.py +0 -0
  152. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/hotkeys/chain.py +0 -0
  153. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/hotkeys/evdev.py +0 -0
  154. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/hotkeys/pynput_backend.py +0 -0
  155. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/hotkeys/socket_backend.py +0 -0
  156. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/ibus/__init__.py +0 -0
  157. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/ibus/engine.py +0 -0
  158. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/ibus/install.py +0 -0
  159. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/ibus/pending.py +0 -0
  160. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/ibus/session.py +0 -0
  161. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/ibus/textlimit.py +0 -0
  162. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/idle_audio.py +0 -0
  163. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/__init__.py +0 -0
  164. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/augment.py +0 -0
  165. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/clean.py +0 -0
  166. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/evaluate.py +0 -0
  167. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/importer.py +0 -0
  168. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/lastrun.py +0 -0
  169. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/metrics.py +0 -0
  170. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/quiet.py +0 -0
  171. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/review.py +0 -0
  172. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/store.py +0 -0
  173. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/summary.py +0 -0
  174. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/teacher.py +0 -0
  175. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/learn/train.py +0 -0
  176. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/llm.py +0 -0
  177. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/llm_api.py +0 -0
  178. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/mic_gain.py +0 -0
  179. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/models/__init__.py +0 -0
  180. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/models/silero_vad.onnx +0 -0
  181. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/numbers.py +0 -0
  182. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/pidlock.py +0 -0
  183. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/postcorrect.py +0 -0
  184. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/postprocess.py +0 -0
  185. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/power.py +0 -0
  186. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/presence.py +0 -0
  187. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/privacy.py +0 -0
  188. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/prompt.py +0 -0
  189. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/quiet_audio.py +0 -0
  190. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/recorder.py +0 -0
  191. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/replies.py +0 -0
  192. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/report.py +0 -0
  193. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/retention.py +0 -0
  194. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/server/__init__.py +0 -0
  195. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/server/__main__.py +0 -0
  196. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/server/app.py +0 -0
  197. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/server/config.py +0 -0
  198. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/server/runtime.py +0 -0
  199. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/service.py +0 -0
  200. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/__init__.py +0 -0
  201. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/configfile.py +0 -0
  202. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/extras.py +0 -0
  203. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/hotkey.py +0 -0
  204. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/noninteractive.py +0 -0
  205. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/speech.py +0 -0
  206. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/steps.py +0 -0
  207. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/system.py +0 -0
  208. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/setup/ui.py +0 -0
  209. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/sounds/__init__.py +0 -0
  210. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/sounds/alert.wav +0 -0
  211. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/sounds/commit.wav +0 -0
  212. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/sounds/start.wav +0 -0
  213. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/sounds/stop.wav +0 -0
  214. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/spool.py +0 -0
  215. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/streaming.py +0 -0
  216. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/suggest.py +0 -0
  217. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/telemetry.py +0 -0
  218. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tokens.py +0 -0
  219. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tray/__init__.py +0 -0
  220. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tray/_icons.py +0 -0
  221. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tray/_indicator.py +0 -0
  222. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tray/_pystray.py +0 -0
  223. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tts/__init__.py +0 -0
  224. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tts/base.py +0 -0
  225. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tts/chain.py +0 -0
  226. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tts/edge_engine.py +0 -0
  227. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tts/espeak.py +0 -0
  228. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tts/piper_engine.py +0 -0
  229. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tts/player.py +0 -0
  230. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/tts/supertonic_engine.py +0 -0
  231. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/__init__.py +0 -0
  232. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/base.py +0 -0
  233. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/chain.py +0 -0
  234. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/clipboard.py +0 -0
  235. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/collecting.py +0 -0
  236. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/fcitx_bridge.py +0 -0
  237. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/ibus.py +0 -0
  238. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/manager.py +0 -0
  239. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/modifier_guard.py +0 -0
  240. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/paste.py +0 -0
  241. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/pynput_type.py +0 -0
  242. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/wtype.py +0 -0
  243. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/xdotool.py +0 -0
  244. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/typers/ydotool.py +0 -0
  245. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/ui.py +0 -0
  246. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/vad.py +0 -0
  247. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/vocab_stats.py +0 -0
  248. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/vocabulary.py +0 -0
  249. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/watchdog.py +0 -0
  250. {python_voiceio-1.18.12 → python_voiceio-1.18.14}/voiceio/wordfreq.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-voiceio
3
- Version: 1.18.12
3
+ Version: 1.18.14
4
4
  Summary: Voice dictation for Linux. Speak → text, locally, instantly.
5
5
  Author: Hugo Montenegro
6
6
  License-Expression: MIT
@@ -99,6 +99,8 @@ sudo apt install ./voiceio_*.deb
99
99
  voiceio setup
100
100
  ```
101
101
 
102
+ To upgrade, download the newer `.deb` from the [latest release](https://github.com/Hugo0/voiceio/releases/latest) and run `sudo apt install ./voiceio_*.deb` again (there is no apt repository, so `apt upgrade` won't find it). Run `voiceio` itself as your user, never with `sudo`: `voiceio doctor --fix` asks for your password when it needs to.
103
+
102
104
  Then press your hotkey, speak, and press it again (or hold it while you speak). `voiceio doctor` shows what works, `voiceio doctor --fix` repairs what it can, and `voiceio doctor --report` shares an anonymous install report on the [feedback board](https://voiceio.dev/#feedback) (it shows you the text and asks first). Doctor offers one when a check fails, and so does the tray's "Report a problem...". A report names the last error only by its type and `file:line`, never its message. NixOS, other extras and installing from source: [docs/linux.md](docs/linux.md). Agent runbook: [INSTALL.md](INSTALL.md).
103
105
 
104
106
  ## Make it yours
@@ -46,6 +46,8 @@ sudo apt install ./voiceio_*.deb
46
46
  voiceio setup
47
47
  ```
48
48
 
49
+ To upgrade, download the newer `.deb` from the [latest release](https://github.com/Hugo0/voiceio/releases/latest) and run `sudo apt install ./voiceio_*.deb` again (there is no apt repository, so `apt upgrade` won't find it). Run `voiceio` itself as your user, never with `sudo`: `voiceio doctor --fix` asks for your password when it needs to.
50
+
49
51
  Then press your hotkey, speak, and press it again (or hold it while you speak). `voiceio doctor` shows what works, `voiceio doctor --fix` repairs what it can, and `voiceio doctor --report` shares an anonymous install report on the [feedback board](https://voiceio.dev/#feedback) (it shows you the text and asks first). Doctor offers one when a check fails, and so does the tray's "Report a problem...". A report names the last error only by its type and `file:line`, never its message. NixOS, other extras and installing from source: [docs/linux.md](docs/linux.md). Agent runbook: [INSTALL.md](INSTALL.md).
50
52
 
51
53
  ## Make it yours
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-voiceio"
7
- version = "1.18.12"
7
+ version = "1.18.14"
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.12
3
+ Version: 1.18.14
4
4
  Summary: Voice dictation for Linux. Speak → text, locally, instantly.
5
5
  Author: Hugo Montenegro
6
6
  License-Expression: MIT
@@ -99,6 +99,8 @@ sudo apt install ./voiceio_*.deb
99
99
  voiceio setup
100
100
  ```
101
101
 
102
+ To upgrade, download the newer `.deb` from the [latest release](https://github.com/Hugo0/voiceio/releases/latest) and run `sudo apt install ./voiceio_*.deb` again (there is no apt repository, so `apt upgrade` won't find it). Run `voiceio` itself as your user, never with `sudo`: `voiceio doctor --fix` asks for your password when it needs to.
103
+
102
104
  Then press your hotkey, speak, and press it again (or hold it while you speak). `voiceio doctor` shows what works, `voiceio doctor --fix` repairs what it can, and `voiceio doctor --report` shares an anonymous install report on the [feedback board](https://voiceio.dev/#feedback) (it shows you the text and asks first). Doctor offers one when a check fails, and so does the tray's "Report a problem...". A report names the last error only by its type and `file:line`, never its message. NixOS, other extras and installing from source: [docs/linux.md](docs/linux.md). Agent runbook: [INSTALL.md](INSTALL.md).
103
105
 
104
106
  ## Make it yours
@@ -69,3 +69,55 @@ def test_config_show_redacts_secrets_and_set_writes(monkeypatch, capsys):
69
69
  def test_service_unit_runs_the_run_subcommand():
70
70
  from voiceio.service import _service_unit
71
71
  assert "ExecStart=/x/voiceio run\n" in _service_unit("/x/voiceio")
72
+
73
+
74
+ @pytest.mark.parametrize("argv", [("doctor", "--fix"), ("doctor",), ("setup", "--defaults"),
75
+ ("service", "install")])
76
+ @pytest.mark.parametrize("var", ["SUDO_USER", "DOAS_USER"])
77
+ def test_user_commands_refuse_sudo(monkeypatch, capsys, argv, var):
78
+ """Under sudo, voiceio would set up root's session: refuse, naming the fix."""
79
+ monkeypatch.setattr("os.geteuid", lambda: 0)
80
+ monkeypatch.setenv(var, "alice")
81
+ monkeypatch.setattr("voiceio.cli.doctor._cmd_doctor", lambda a: pytest.fail("ran"))
82
+ monkeypatch.setattr("voiceio.cli._cmd_setup", lambda a: pytest.fail("ran"))
83
+ monkeypatch.setattr("voiceio.cli.servicecmd._cmd_service", lambda a: pytest.fail("ran"))
84
+ with pytest.raises(SystemExit) as e:
85
+ run(monkeypatch, capsys, *argv)
86
+ msg = str(e.value.code)
87
+ assert msg.startswith("Don't run voiceio with sudo")
88
+ assert f"`voiceio {' '.join(argv)}` as alice" in msg
89
+
90
+
91
+ def test_sudo_guard_ignores_normal_users(monkeypatch, capsys):
92
+ monkeypatch.setattr("os.geteuid", lambda: 1000)
93
+ monkeypatch.setenv("SUDO_USER", "alice") # leaked into a user shell: not root, not sudo
94
+ called = []
95
+ monkeypatch.setattr("voiceio.cli._cmd_setup", lambda a: called.append(a))
96
+ run(monkeypatch, capsys, "setup", "--defaults")
97
+ assert called and capsys.readouterr().err == ""
98
+
99
+
100
+ @pytest.mark.parametrize("sudo_user", [None, "root"])
101
+ def test_root_login_warns_and_runs(monkeypatch, capsys, sudo_user):
102
+ """A container or root-only box: no one else to configure, so only warn."""
103
+ monkeypatch.setattr("os.geteuid", lambda: 0)
104
+ monkeypatch.delenv("DOAS_USER", raising=False)
105
+ if sudo_user:
106
+ monkeypatch.setenv("SUDO_USER", sudo_user)
107
+ else:
108
+ monkeypatch.delenv("SUDO_USER", raising=False)
109
+ called = []
110
+ monkeypatch.setattr("voiceio.cli._cmd_setup", lambda a: called.append(a))
111
+ monkeypatch.setattr(sys, "argv", ["voiceio", "setup", "--defaults"])
112
+ main()
113
+ assert called
114
+ assert "running as root" in capsys.readouterr().err
115
+
116
+
117
+ def test_daemon_commands_skip_the_sudo_guard(monkeypatch, capsys):
118
+ monkeypatch.setattr("os.geteuid", lambda: 0)
119
+ monkeypatch.setenv("SUDO_USER", "alice")
120
+ sent = []
121
+ monkeypatch.setattr("voiceio.cli._send", lambda c: sent.append(c))
122
+ run(monkeypatch, capsys, "toggle")
123
+ assert sent == ["toggle"]
@@ -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)
@@ -0,0 +1 @@
1
+ __version__ = "1.18.14"
@@ -84,6 +84,8 @@ def main() -> None:
84
84
  uninstall.register(sub)
85
85
 
86
86
  args = parser.parse_args()
87
+ if args.command in _USER_SCOPED:
88
+ _refuse_sudo(sys.argv[1:])
87
89
  if args.command is None:
88
90
  # A pre-1.0 systemd unit runs bare `voiceio`; keep it working until
89
91
  # `voiceio service install` (or doctor --fix) rewrites it.
@@ -94,6 +96,33 @@ def main() -> None:
94
96
  args.func(args)
95
97
 
96
98
 
99
+ # Commands that write the user's config, data, IBus files or systemd user
100
+ # units, or run the daemon. The rest only talk to the daemon or read.
101
+ _USER_SCOPED = frozenset({
102
+ "run", "setup", "doctor", "service", "uninstall", "demo", "learn", "models",
103
+ "vocab", "corrections", "config",
104
+ })
105
+
106
+
107
+ def _refuse_sudo(argv: list[str]) -> None:
108
+ """Exit when run through sudo/doas; warn when logged in as root.
109
+
110
+ Privileged steps (doctor --fix, setup) elevate by themselves, so sudo is
111
+ never needed and would set up root's session instead of the user's.
112
+ """
113
+ from voiceio import platform as plat
114
+ if user := plat.sudo_invoker():
115
+ import shlex
116
+ cmd = shlex.join(["voiceio", *argv])
117
+ raise SystemExit(
118
+ "Don't run voiceio with sudo: it would configure root's session instead of "
119
+ f"yours. Run `{cmd}` as {user}; it asks for your password itself when it "
120
+ "needs to install packages.")
121
+ if plat._is_root():
122
+ print("voiceio: running as root, so this uses root's own config and session.",
123
+ file=sys.stderr)
124
+
125
+
97
126
  def _cmd_run(args: argparse.Namespace) -> None:
98
127
  """Run the voiceio daemon (default command)."""
99
128
  from voiceio import config
@@ -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.
@@ -291,6 +291,20 @@ def _is_root() -> bool:
291
291
  return hasattr(os, "geteuid") and os.geteuid() == 0
292
292
 
293
293
 
294
+ def sudo_invoker() -> str | None:
295
+ """The user who ran us as root through sudo or doas, else None.
296
+
297
+ voiceio's user-scoped commands would then set up root's session (its
298
+ home, its systemd user manager, no Wayland or DBus) instead of theirs.
299
+ """
300
+ if not _is_root():
301
+ return None
302
+ for var in ("SUDO_USER", "DOAS_USER"):
303
+ if (user := os.environ.get(var, "")) and user != "root":
304
+ return user
305
+ return None
306
+
307
+
294
308
  # Flags that make a package manager prompt; dropped instead (emerge has no
295
309
  # subcommand to put a yes-flag after, and without --ask it never asks).
296
310
  _ASK_FLAGS: dict[str, tuple[str, ...]] = {"emerge": ("--ask", "-a")}
@@ -1 +0,0 @@
1
- __version__ = "1.18.12"