python-voiceio 1.18.6__tar.gz → 1.18.7__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 (247) hide show
  1. {python_voiceio-1.18.6/python_voiceio.egg-info → python_voiceio-1.18.7}/PKG-INFO +2 -2
  2. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/README.md +1 -1
  3. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/pyproject.toml +1 -1
  4. {python_voiceio-1.18.6 → python_voiceio-1.18.7/python_voiceio.egg-info}/PKG-INFO +2 -2
  5. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/python_voiceio.egg-info/SOURCES.txt +4 -0
  6. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_config.py +4 -0
  7. python_voiceio-1.18.7/tests/test_learn_summary.py +173 -0
  8. python_voiceio-1.18.7/tests/test_telemetry.py +223 -0
  9. python_voiceio-1.18.7/voiceio/__init__.py +1 -0
  10. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/app.py +2 -0
  11. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/doctor.py +5 -0
  12. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/learn.py +10 -0
  13. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/config.py +10 -0
  14. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/catalog.py +12 -0
  15. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/evaluate.py +8 -1
  16. python_voiceio-1.18.7/voiceio/learn/summary.py +224 -0
  17. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/report.py +7 -2
  18. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/service.py +19 -0
  19. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/steps.py +6 -1
  20. python_voiceio-1.18.7/voiceio/telemetry.py +161 -0
  21. python_voiceio-1.18.6/voiceio/__init__.py +0 -1
  22. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/LICENSE +0 -0
  23. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/python_voiceio.egg-info/dependency_links.txt +0 -0
  24. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/python_voiceio.egg-info/entry_points.txt +0 -0
  25. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/python_voiceio.egg-info/requires.txt +0 -0
  26. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/python_voiceio.egg-info/top_level.txt +0 -0
  27. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/setup.cfg +0 -0
  28. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_announce.py +0 -0
  29. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_app_wiring.py +0 -0
  30. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_audio_quality.py +0 -0
  31. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_audio_source.py +0 -0
  32. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_backend_probes.py +0 -0
  33. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_cancel.py +0 -0
  34. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_cli.py +0 -0
  35. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_clipboard_read.py +0 -0
  36. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_clipboard_typer.py +0 -0
  37. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_commands.py +0 -0
  38. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_concurrency_lockdown.py +0 -0
  39. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_context_terms.py +0 -0
  40. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_corrections.py +0 -0
  41. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_cuda_setup_hint.py +0 -0
  42. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_dead_mic.py +0 -0
  43. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_decoders.py +0 -0
  44. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_engine.py +0 -0
  45. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_errorlog.py +0 -0
  46. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_evdev_uaccess.py +0 -0
  47. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_evdev_x11_optional.py +0 -0
  48. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_fallback.py +0 -0
  49. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_fcitx_bridge.py +0 -0
  50. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_feedback_stream.py +0 -0
  51. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_focus.py +0 -0
  52. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_gpu_fallback.py +0 -0
  53. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_health.py +0 -0
  54. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_hints.py +0 -0
  55. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_history.py +0 -0
  56. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_hotkey_modes.py +0 -0
  57. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_ibus_engine_limits.py +0 -0
  58. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_ibus_engine_listener.py +0 -0
  59. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_ibus_pending.py +0 -0
  60. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_ibus_pids.py +0 -0
  61. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_ibus_ping.py +0 -0
  62. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_ibus_session.py +0 -0
  63. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_ibus_textlimit.py +0 -0
  64. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_ibus_typer.py +0 -0
  65. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_idle_audio.py +0 -0
  66. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_install_env.py +0 -0
  67. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_clean.py +0 -0
  68. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_import.py +0 -0
  69. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_language.py +0 -0
  70. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_metrics.py +0 -0
  71. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_pipeline.py +0 -0
  72. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_quiet.py +0 -0
  73. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_resume.py +0 -0
  74. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_review.py +0 -0
  75. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_learn_targets.py +0 -0
  76. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_llm.py +0 -0
  77. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_llm_api.py +0 -0
  78. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_mic_gain.py +0 -0
  79. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_modifier_guard.py +0 -0
  80. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_numbers.py +0 -0
  81. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_paste_last.py +0 -0
  82. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_pipeline.py +0 -0
  83. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_platform.py +0 -0
  84. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_postcorrect.py +0 -0
  85. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_postprocess.py +0 -0
  86. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_prebuffer.py +0 -0
  87. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_presence.py +0 -0
  88. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_prompt.py +0 -0
  89. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_quiet_audio.py +0 -0
  90. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_recorder_integration.py +0 -0
  91. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_replies.py +0 -0
  92. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_report.py +0 -0
  93. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_retention.py +0 -0
  94. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_robustness.py +0 -0
  95. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_security_hardening.py +0 -0
  96. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_server.py +0 -0
  97. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_service.py +0 -0
  98. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_setup.py +0 -0
  99. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_sherpa.py +0 -0
  100. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_spool.py +0 -0
  101. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_streaming.py +0 -0
  102. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_suggest.py +0 -0
  103. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_tokens.py +0 -0
  104. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_transcriber.py +0 -0
  105. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_tray.py +0 -0
  106. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_tts.py +0 -0
  107. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_typer_manager.py +0 -0
  108. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_vad.py +0 -0
  109. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_vocabulary.py +0 -0
  110. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_wordfreq.py +0 -0
  111. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/tests/test_worker_decode.py +0 -0
  112. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/__main__.py +0 -0
  113. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/announce.py +0 -0
  114. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/audio_source.py +0 -0
  115. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/backends.py +0 -0
  116. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/__init__.py +0 -0
  117. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/configcmd.py +0 -0
  118. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/corrections.py +0 -0
  119. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/history.py +0 -0
  120. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/models.py +0 -0
  121. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/replies.py +0 -0
  122. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/servicecmd.py +0 -0
  123. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/uninstall.py +0 -0
  124. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/cli/vocab.py +0 -0
  125. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/clipboard_read.py +0 -0
  126. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/commands.py +0 -0
  127. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/consent.py +0 -0
  128. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/context_terms.py +0 -0
  129. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/__init__.py +0 -0
  130. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/bias.py +0 -0
  131. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/__init__.py +0 -0
  132. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/base.py +0 -0
  133. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/faster_whisper/__init__.py +0 -0
  134. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/faster_whisper/worker.py +0 -0
  135. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/fetch.py +0 -0
  136. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/lanes.py +0 -0
  137. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/sherpa.py +0 -0
  138. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/decoders/whispercpp.py +0 -0
  139. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/engine.py +0 -0
  140. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/core/pipeline.py +0 -0
  141. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/corrections.py +0 -0
  142. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/data/60-voiceio-uaccess.rules +0 -0
  143. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/data/__init__.py +0 -0
  144. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/demo.py +0 -0
  145. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/display.py +0 -0
  146. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/errorlog.py +0 -0
  147. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/feedback.py +0 -0
  148. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/focus.py +0 -0
  149. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/health.py +0 -0
  150. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/hints.py +0 -0
  151. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/history.py +0 -0
  152. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/hotkeys/__init__.py +0 -0
  153. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/hotkeys/base.py +0 -0
  154. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/hotkeys/chain.py +0 -0
  155. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/hotkeys/evdev.py +0 -0
  156. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/hotkeys/pynput_backend.py +0 -0
  157. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/hotkeys/socket_backend.py +0 -0
  158. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/ibus/__init__.py +0 -0
  159. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/ibus/engine.py +0 -0
  160. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/ibus/install.py +0 -0
  161. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/ibus/pending.py +0 -0
  162. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/ibus/session.py +0 -0
  163. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/ibus/textlimit.py +0 -0
  164. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/idle_audio.py +0 -0
  165. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/install_env.py +0 -0
  166. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/__init__.py +0 -0
  167. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/augment.py +0 -0
  168. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/clean.py +0 -0
  169. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/importer.py +0 -0
  170. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/metrics.py +0 -0
  171. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/quiet.py +0 -0
  172. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/review.py +0 -0
  173. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/store.py +0 -0
  174. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/teacher.py +0 -0
  175. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/learn/train.py +0 -0
  176. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/llm.py +0 -0
  177. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/llm_api.py +0 -0
  178. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/mic_gain.py +0 -0
  179. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/models/__init__.py +0 -0
  180. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/models/silero_vad.onnx +0 -0
  181. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/numbers.py +0 -0
  182. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/pidlock.py +0 -0
  183. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/platform.py +0 -0
  184. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/postcorrect.py +0 -0
  185. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/postprocess.py +0 -0
  186. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/power.py +0 -0
  187. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/presence.py +0 -0
  188. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/privacy.py +0 -0
  189. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/prompt.py +0 -0
  190. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/quiet_audio.py +0 -0
  191. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/recorder.py +0 -0
  192. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/replies.py +0 -0
  193. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/retention.py +0 -0
  194. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/server/__init__.py +0 -0
  195. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/server/__main__.py +0 -0
  196. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/server/app.py +0 -0
  197. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/server/config.py +0 -0
  198. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/server/runtime.py +0 -0
  199. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/__init__.py +0 -0
  200. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/configfile.py +0 -0
  201. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/extras.py +0 -0
  202. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/hotkey.py +0 -0
  203. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/noninteractive.py +0 -0
  204. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/speech.py +0 -0
  205. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/system.py +0 -0
  206. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/setup/ui.py +0 -0
  207. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/sounds/__init__.py +0 -0
  208. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/sounds/alert.wav +0 -0
  209. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/sounds/commit.wav +0 -0
  210. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/sounds/start.wav +0 -0
  211. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/sounds/stop.wav +0 -0
  212. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/spool.py +0 -0
  213. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/streaming.py +0 -0
  214. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/suggest.py +0 -0
  215. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tokens.py +0 -0
  216. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tray/__init__.py +0 -0
  217. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tray/_icons.py +0 -0
  218. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tray/_indicator.py +0 -0
  219. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tray/_pystray.py +0 -0
  220. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tts/__init__.py +0 -0
  221. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tts/base.py +0 -0
  222. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tts/chain.py +0 -0
  223. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tts/edge_engine.py +0 -0
  224. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tts/espeak.py +0 -0
  225. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tts/piper_engine.py +0 -0
  226. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tts/player.py +0 -0
  227. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/tts/supertonic_engine.py +0 -0
  228. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/__init__.py +0 -0
  229. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/base.py +0 -0
  230. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/chain.py +0 -0
  231. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/clipboard.py +0 -0
  232. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/collecting.py +0 -0
  233. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/fcitx_bridge.py +0 -0
  234. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/ibus.py +0 -0
  235. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/manager.py +0 -0
  236. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/modifier_guard.py +0 -0
  237. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/paste.py +0 -0
  238. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/pynput_type.py +0 -0
  239. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/wtype.py +0 -0
  240. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/xdotool.py +0 -0
  241. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/typers/ydotool.py +0 -0
  242. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/ui.py +0 -0
  243. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/vad.py +0 -0
  244. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/vocab_stats.py +0 -0
  245. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/vocabulary.py +0 -0
  246. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/watchdog.py +0 -0
  247. {python_voiceio-1.18.6 → python_voiceio-1.18.7}/voiceio/wordfreq.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-voiceio
3
- Version: 1.18.6
3
+ Version: 1.18.7
4
4
  Summary: Voice dictation for Linux. Speak → text, locally, instantly.
5
5
  Author: Hugo Montenegro
6
6
  License-Expression: MIT
@@ -65,7 +65,7 @@ Dynamic: license-file
65
65
  **[Try it in your browser at voiceio.dev](https://voiceio.dev)**: no install, the model runs in the tab.
66
66
 
67
67
  - **Types anywhere.** Press your hotkey, speak, and the words stream into the focused app with a live underlined preview (IBus), on Wayland and X11: GNOME, KDE, Hyprland, sway, i3.
68
- - **Runs on your machine.** Whisper, or NVIDIA's Parakeet (text lands ~0.7 s after you stop talking instead of ~4.4 s, with every name you use as a hotword), decodes your speech locally. No account, no server, no telemetry; logs never contain your words.
68
+ - **Runs on your machine.** Whisper, or NVIDIA's Parakeet (text lands ~0.7 s after you stop talking instead of ~4.4 s, with every name you use as a hotword), decodes your speech locally. No account, no server, no telemetry unless you opt in to one anonymous weekly count; logs never contain your words.
69
69
  - **Learns your words.** Keep your recordings (opt-in, on your disk) and voiceio fine-tunes its model on them while the machine is idle. It switches only when the new model wins on clips it never trained on. On the author's voice: 12.1% → 4.9% word errors after one night on a laptop CPU.
70
70
 
71
71
  ## Install
@@ -12,7 +12,7 @@
12
12
  **[Try it in your browser at voiceio.dev](https://voiceio.dev)**: no install, the model runs in the tab.
13
13
 
14
14
  - **Types anywhere.** Press your hotkey, speak, and the words stream into the focused app with a live underlined preview (IBus), on Wayland and X11: GNOME, KDE, Hyprland, sway, i3.
15
- - **Runs on your machine.** Whisper, or NVIDIA's Parakeet (text lands ~0.7 s after you stop talking instead of ~4.4 s, with every name you use as a hotword), decodes your speech locally. No account, no server, no telemetry; logs never contain your words.
15
+ - **Runs on your machine.** Whisper, or NVIDIA's Parakeet (text lands ~0.7 s after you stop talking instead of ~4.4 s, with every name you use as a hotword), decodes your speech locally. No account, no server, no telemetry unless you opt in to one anonymous weekly count; logs never contain your words.
16
16
  - **Learns your words.** Keep your recordings (opt-in, on your disk) and voiceio fine-tunes its model on them while the machine is idle. It switches only when the new model wins on clips it never trained on. On the author's voice: 12.1% → 4.9% word errors after one night on a laptop CPU.
17
17
 
18
18
  ## Install
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-voiceio"
7
- version = "1.18.6"
7
+ version = "1.18.7"
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.6
3
+ Version: 1.18.7
4
4
  Summary: Voice dictation for Linux. Speak → text, locally, instantly.
5
5
  Author: Hugo Montenegro
6
6
  License-Expression: MIT
@@ -65,7 +65,7 @@ Dynamic: license-file
65
65
  **[Try it in your browser at voiceio.dev](https://voiceio.dev)**: no install, the model runs in the tab.
66
66
 
67
67
  - **Types anywhere.** Press your hotkey, speak, and the words stream into the focused app with a live underlined preview (IBus), on Wayland and X11: GNOME, KDE, Hyprland, sway, i3.
68
- - **Runs on your machine.** Whisper, or NVIDIA's Parakeet (text lands ~0.7 s after you stop talking instead of ~4.4 s, with every name you use as a hotword), decodes your speech locally. No account, no server, no telemetry; logs never contain your words.
68
+ - **Runs on your machine.** Whisper, or NVIDIA's Parakeet (text lands ~0.7 s after you stop talking instead of ~4.4 s, with every name you use as a hotword), decodes your speech locally. No account, no server, no telemetry unless you opt in to one anonymous weekly count; logs never contain your words.
69
69
  - **Learns your words.** Keep your recordings (opt-in, on your disk) and voiceio fine-tunes its model on them while the machine is idle. It switches only when the new model wins on clips it never trained on. On the author's voice: 12.1% → 4.9% word errors after one night on a laptop CPU.
70
70
 
71
71
  ## Install
@@ -55,6 +55,7 @@ tests/test_learn_pipeline.py
55
55
  tests/test_learn_quiet.py
56
56
  tests/test_learn_resume.py
57
57
  tests/test_learn_review.py
58
+ tests/test_learn_summary.py
58
59
  tests/test_learn_targets.py
59
60
  tests/test_llm.py
60
61
  tests/test_llm_api.py
@@ -83,6 +84,7 @@ tests/test_sherpa.py
83
84
  tests/test_spool.py
84
85
  tests/test_streaming.py
85
86
  tests/test_suggest.py
87
+ tests/test_telemetry.py
86
88
  tests/test_tokens.py
87
89
  tests/test_transcriber.py
88
90
  tests/test_tray.py
@@ -135,6 +137,7 @@ voiceio/service.py
135
137
  voiceio/spool.py
136
138
  voiceio/streaming.py
137
139
  voiceio/suggest.py
140
+ voiceio/telemetry.py
138
141
  voiceio/tokens.py
139
142
  voiceio/ui.py
140
143
  voiceio/vad.py
@@ -189,6 +192,7 @@ voiceio/learn/metrics.py
189
192
  voiceio/learn/quiet.py
190
193
  voiceio/learn/review.py
191
194
  voiceio/learn/store.py
195
+ voiceio/learn/summary.py
192
196
  voiceio/learn/teacher.py
193
197
  voiceio/learn/train.py
194
198
  voiceio/models/__init__.py
@@ -106,6 +106,10 @@ def test_example_config_matches_defaults():
106
106
  defaults = getattr(cfg, sec.name)
107
107
  assert sec.name in example, f"[{sec.name}] missing from example"
108
108
  for f in dataclasses.fields(defaults):
109
+ if (sec.name, f.name) == ("telemetry", "ping"):
110
+ # Unset (never asked) has no TOML spelling: documented commented out.
111
+ assert defaults.ping is None and "ping" not in example["telemetry"]
112
+ continue
109
113
  assert f.name in example[sec.name], f"{sec.name}.{f.name} missing"
110
114
  if (sec.name, f.name) == ("model", "name"):
111
115
  # "auto" resolves to the default decoder on construction
@@ -0,0 +1,173 @@
1
+ """`voiceio learn report`: numbers only, never words or paths."""
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+ import datetime as dt
6
+ import json
7
+ import os
8
+
9
+ import pytest
10
+
11
+ from voiceio import config, history, service
12
+ from voiceio.learn import metrics, summary
13
+ from voiceio.learn.store import learn_dir
14
+
15
+ NOW = dt.datetime(2026, 11, 19, 12, 0, 0).timestamp()
16
+ DAY = 86400
17
+ SECRETS = ("Kalshi", "HyperNEAT", "zorblax", "secret-plan.txt", "alice")
18
+
19
+
20
+ def _stamp(ts: float) -> str:
21
+ return dt.datetime.fromtimestamp(ts).strftime("%Y-%m-%d %H:%M:%S,000")
22
+
23
+
24
+ @pytest.fixture
25
+ def seeded(tmp_path, monkeypatch):
26
+ """A week of use whose every store holds words and paths."""
27
+ home = os.path.expanduser("~")
28
+ run = learn_dir() / "models" / "v0002-small-20261115-0300"
29
+ model = str(run / "ct2")
30
+ (run / "ct2").mkdir(parents=True)
31
+
32
+ history.HISTORY_PATH.parent.mkdir(parents=True, exist_ok=True)
33
+ rows = [
34
+ {"ts": NOW - 1 * DAY, "text": "Kalshi zorblax HyperNEAT", "raw": "kalchi zorblax",
35
+ "duration": 90.0, "context": f"{home}/secret-plan.txt - alice"},
36
+ {"ts": NOW - 3 * DAY, "text": "zorblax again", "duration": 30.0,
37
+ "audio": f"{home}/.local/state/voiceio/recordings/zorblax.wav"},
38
+ {"ts": NOW - 9 * DAY, "text": "too old", "duration": 600.0},
39
+ ]
40
+ history.HISTORY_PATH.write_text("".join(json.dumps(r) + "\n" for r in rows))
41
+
42
+ ds = learn_dir() / "datasets" / "v0002"
43
+ ds.mkdir(parents=True)
44
+ runs = learn_dir() / "runs"
45
+ runs.mkdir()
46
+ (runs / "eval-20261115-031500.json").write_text(json.dumps({
47
+ "decoder": f"faster-whisper:{model}", "dataset": "v0002", "mode": "offline",
48
+ "metrics": metrics.METRICS_VERSION, "wer": 0.0612, "term_recall": 0.794,
49
+ "clips": 84, "per_clip": [{"audio": f"{home}/zorblax.wav", "ref": "Kalshi zorblax",
50
+ "hyp": "kalchi zorblax"}],
51
+ }))
52
+ (learn_dir() / "labels.jsonl").write_text("".join(json.dumps({
53
+ "audio": f"rec-{i}.wav", "source": "teacher:large-v3-turbo", "ts": ts,
54
+ "segments": [{"start": 0.0, "end": 2.0, "text": "HyperNEAT zorblax"}],
55
+ }) + "\n" for i, ts in enumerate((NOW - DAY, NOW - 2 * DAY, NOW - 20 * DAY))))
56
+
57
+ log = tmp_path / "voiceio.log"
58
+ log.write_text("\n".join([
59
+ f"{_stamp(NOW - 20 * DAY)} voiceio.streaming ERROR Final transcribe/apply error",
60
+ f"{_stamp(NOW - 2 * DAY)} voiceio.typers.manager WARNING Typer 'ibus' failed: zorblax, trying fallback",
61
+ f"{_stamp(NOW - 2 * DAY)} voiceio.typers.manager INFO Switched to typer: clipboard",
62
+ f"{_stamp(NOW - DAY)} voiceio.streaming ERROR Final transcribe/apply error",
63
+ "Traceback (most recent call last):",
64
+ f' File "{home}/voiceio/streaming.py", line 280, in _final',
65
+ "ValueError: Kalshi zorblax",
66
+ f"{_stamp(NOW - DAY)} voiceio.app ERROR Processing failed",
67
+ f"{_stamp(NOW - DAY)} voiceio.tray ERROR Tray icon failed: alice",
68
+ ]) + "\n")
69
+
70
+ monkeypatch.setattr(service, "has_systemd", lambda: True)
71
+ monkeypatch.setattr(service, "learn_timer_enabled", lambda: True)
72
+ monkeypatch.setattr(service, "learn_last_run", lambda: (NOW - 2 * DAY, "success"))
73
+ cfg = config.Config()
74
+ cfg.model.name = model
75
+ return cfg, [log]
76
+
77
+
78
+ def test_report_counts_the_week(seeded):
79
+ cfg, logs = seeded
80
+ out = summary.build(NOW, cfg, log_paths=logs)
81
+ from voiceio import __version__
82
+ assert out == {
83
+ "schema": 1, "date": "2026-11-19", "window_days": 7, "version": __version__,
84
+ "model_family": "whisper", "model_name": "fine-tune v0002-small-20261115-0300",
85
+ "dictations_7d": 2, "audio_minutes_7d": 2.0,
86
+ "wer": 0.0612, "vocab_recall": 0.794, "eval_dataset": "v0002", "eval_clips": 84,
87
+ "eval_date": "2026-11-15",
88
+ "clipboard_fallbacks_7d": 1, "decoder_errors_7d": 2, "log_days_covered": 7,
89
+ "clips_labelled_7d": 2, "learn_scheduled": True, "learn_ran_7d": True,
90
+ "learn_last_run": "2026-11-17", "learn_last_result": "success",
91
+ "unavailable": {},
92
+ }
93
+
94
+
95
+ def _strings(value):
96
+ if isinstance(value, dict):
97
+ for k, v in value.items():
98
+ yield k
99
+ yield from _strings(v)
100
+ elif isinstance(value, str):
101
+ yield value
102
+
103
+
104
+ def test_no_words_or_paths_ever_leave(seeded):
105
+ cfg, logs = seeded
106
+ out = summary.build(NOW, cfg, log_paths=logs)
107
+ text = summary.to_json(out) + summary.format_text(out)
108
+ for secret in (*SECRETS, os.path.expanduser("~"), str(learn_dir()), "ct2", ".wav"):
109
+ assert secret not in text
110
+ assert not [s for s in _strings(out) if "/" in s]
111
+
112
+
113
+ def test_missing_data_is_null_with_a_reason(monkeypatch, tmp_path):
114
+ monkeypatch.setattr(service, "has_systemd", lambda: False)
115
+ cfg = config.Config()
116
+ cfg.model.name = "parakeet-tdt-0.6b-v2"
117
+ out = summary.build(NOW, cfg, log_paths=[tmp_path / "missing.log"])
118
+ assert out["model_family"] == "parakeet" and out["model_name"] == "parakeet-tdt-0.6b-v2"
119
+ for key in ("dictations_7d", "audio_minutes_7d", "wer", "clipboard_fallbacks_7d",
120
+ "decoder_errors_7d", "learn_scheduled", "learn_ran_7d"):
121
+ assert out[key] is None
122
+ assert out["unavailable"][key]
123
+ assert out["clips_labelled_7d"] == 0
124
+ assert "n/a — no dataset yet" in summary.format_text(out)
125
+
126
+
127
+ def test_eval_of_another_model_is_not_reported(seeded):
128
+ cfg, logs = seeded
129
+ cfg.model.name = "small"
130
+ out = summary.build(NOW, cfg, log_paths=logs)
131
+ assert out["wer"] is None
132
+ assert out["unavailable"]["wer"].startswith("no stored eval of the active model")
133
+
134
+
135
+ @pytest.mark.parametrize("name,label", [
136
+ ("small", "small"),
137
+ ("whispercpp:http://10.1.2.3:8080", "whisper.cpp server"),
138
+ ("sherpa:/home/alice/models/my-parakeet", "local my-parakeet"),
139
+ ("/opt/models/alice-tuned/ct2", "local ct2"),
140
+ ])
141
+ def test_model_label_is_never_a_path(name, label, monkeypatch):
142
+ from voiceio import report
143
+ monkeypatch.setattr(report, "_identities", lambda: [("alice", "<user>")])
144
+ assert summary.model_label(name) == label.replace("alice", "<user>")
145
+
146
+
147
+ def test_cli_prints_json_and_text(seeded, capsys, monkeypatch):
148
+ from voiceio.cli import learn as learn_cli
149
+ cfg, logs = seeded
150
+ monkeypatch.setattr(config, "load", lambda *a, **k: cfg)
151
+ monkeypatch.setattr(summary, "_log_paths", lambda: logs)
152
+ learn_cli.cmd_report(argparse.Namespace(json=True))
153
+ out = json.loads(capsys.readouterr().out)
154
+ assert out["model_family"] == "whisper"
155
+ learn_cli.cmd_report(argparse.Namespace(json=False))
156
+ text = capsys.readouterr().out
157
+ assert "decoder errors" in text and "zorblax" not in text
158
+
159
+
160
+ def test_learn_last_run_parses_systemctl(monkeypatch):
161
+ import subprocess
162
+
163
+ def fake(argv, **kw):
164
+ prop = argv[argv.index("-p") + 1]
165
+ out = {"LastTriggerUSec": "@1763260212\n", "Result": "success\n"}[prop]
166
+ return subprocess.CompletedProcess(argv, 0, stdout=out)
167
+
168
+ monkeypatch.setattr(service.subprocess, "run", fake)
169
+ assert service.learn_last_run() == (1763260212.0, "success")
170
+
171
+ monkeypatch.setattr(service.subprocess, "run",
172
+ lambda argv, **kw: subprocess.CompletedProcess(argv, 0, stdout="n/a\n"))
173
+ assert service.learn_last_run() == (None, "")
@@ -0,0 +1,223 @@
1
+ """The opt-in weekly install ping (voiceio/telemetry.py)."""
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+ import contextlib
6
+ import json
7
+ import threading
8
+
9
+ import pytest
10
+
11
+ from voiceio import config, report, telemetry
12
+ from voiceio.platform import Platform
13
+
14
+ SHIPPED_LIVE = telemetry.ENDPOINT_LIVE # before any fixture patches it
15
+ DAY = 86400.0
16
+ T0 = 1_800_000_000.0
17
+
18
+
19
+ @pytest.fixture(autouse=True)
20
+ def _live(monkeypatch):
21
+ """These tests run as if workers/ping were deployed, unless they say otherwise."""
22
+ monkeypatch.setattr(telemetry, "ENDPOINT_LIVE", True)
23
+
24
+
25
+ @pytest.fixture(autouse=True)
26
+ def _platform(monkeypatch):
27
+ from voiceio import platform as plat
28
+ monkeypatch.setattr(plat, "detect", lambda: Platform(
29
+ os="linux", display_server="wayland", desktop="gnome"))
30
+ monkeypatch.setattr(telemetry._py_platform, "freedesktop_os_release",
31
+ lambda: {"ID": "ubuntu", "VERSION_ID": "26.04", "NAME": "Ubuntu",
32
+ "PRETTY_NAME": "Ubuntu 26.04 LTS"})
33
+
34
+
35
+ @pytest.fixture
36
+ def sent(monkeypatch):
37
+ """Requests that reached the network helper: (url, body)."""
38
+ calls: list[tuple[str, dict]] = []
39
+
40
+ def fake(url, *, timeout, json_body=None):
41
+ calls.append((url, json.loads(json_body)))
42
+ return contextlib.nullcontext(type("R", (), {"read": lambda self: b""})())
43
+
44
+ monkeypatch.setattr(report, "_urlopen", fake)
45
+ return calls
46
+
47
+
48
+ def _turn(value: bool) -> None:
49
+ config.set_value("telemetry", "ping", value)
50
+
51
+
52
+ def test_payload_has_exactly_the_allowed_keys():
53
+ from voiceio import __version__
54
+ p = telemetry.payload("small")
55
+ assert tuple(p) == telemetry.FIELDS
56
+ assert p == {"v": __version__, "distro": "ubuntu 26.04", "desktop": "gnome",
57
+ "session": "wayland", "decoder": "whisper"}
58
+
59
+
60
+ @pytest.mark.parametrize("name,family", [
61
+ ("parakeet-tdt-0.6b-v2", "parakeet"), ("parakeet-tdt-0.6b-v3", "parakeet"),
62
+ ("small", "whisper"), ("whispercpp:http://10.0.0.5:8080", "whisper.cpp"),
63
+ ("sherpa:/home/alice/models/parakeet-custom", "sherpa-onnx"),
64
+ ])
65
+ def test_decoder_is_the_family_never_the_name(name, family):
66
+ assert telemetry.payload(name)["decoder"] == family
67
+
68
+
69
+ def test_a_fine_tune_path_never_leaks(sent):
70
+ from voiceio.learn.store import learn_dir
71
+ model = str(learn_dir() / "models" / "v0003-small-20261101-0300" / "ct2")
72
+ _turn(True)
73
+ assert telemetry.maybe_send(model, now=T0)
74
+ (_, body), = sent
75
+ text = json.dumps(body)
76
+ assert body["decoder"] == "whisper"
77
+ for leak in (model, str(learn_dir()), "v0003", "ct2", "/"):
78
+ assert leak not in text
79
+
80
+
81
+ def test_fields_are_cleaned_to_short_labels(monkeypatch):
82
+ from voiceio import platform as plat
83
+ monkeypatch.setattr(plat, "detect", lambda: Platform(
84
+ os="linux", display_server="wayland", desktop='x-"Cinnamon"/' + "a" * 80))
85
+ p = telemetry.payload("small")
86
+ assert p["desktop"].startswith("x--cinnamon")
87
+ assert len(p["desktop"]) <= telemetry.MAX_FIELD
88
+ assert all(not set(v) - set("abcdefghijklmnopqrstuvwxyz0123456789._+ -") for v in p.values())
89
+
90
+
91
+ def test_sends_once_per_seven_days(sent):
92
+ _turn(True)
93
+ assert telemetry.maybe_send("small", now=T0)
94
+ assert not telemetry.maybe_send("small", now=T0 + DAY)
95
+ assert not telemetry.maybe_send("small", now=T0 + 6.9 * DAY)
96
+ assert telemetry.maybe_send("small", now=T0 + 7 * DAY)
97
+ assert [url for url, _ in sent] == [telemetry.PING_URL] * 2
98
+ assert (config.LOG_DIR / "ping.json").exists()
99
+
100
+
101
+ def test_a_clock_set_back_does_not_block_it_for_years(sent):
102
+ _turn(True)
103
+ assert telemetry.maybe_send("small", now=T0)
104
+ assert telemetry.maybe_send("small", now=T0 - 30 * DAY)
105
+
106
+
107
+ @pytest.mark.parametrize("value", [None, False])
108
+ def test_off_or_never_asked_sends_nothing(monkeypatch, value):
109
+ monkeypatch.setattr(report, "_urlopen", lambda *a, **k: pytest.fail("sent"))
110
+ if value is not None:
111
+ _turn(value)
112
+ assert telemetry.setting() is value
113
+ assert not telemetry.maybe_send("small", now=T0)
114
+ assert not (config.LOG_DIR / "ping.json").exists()
115
+
116
+
117
+ def test_offline_never_raises_and_retries_later():
118
+ _turn(True) # conftest's network block refuses the request
119
+ assert not telemetry.maybe_send("small", now=T0)
120
+ assert not (config.LOG_DIR / "ping.json").exists()
121
+ assert telemetry.due(T0 + 60)
122
+
123
+
124
+ def test_a_broken_config_never_raises(monkeypatch):
125
+ monkeypatch.setattr(config, "load", lambda *a, **k: 1 / 0)
126
+ assert not telemetry.maybe_send("small", now=T0)
127
+
128
+
129
+ def test_daemon_thread_stops_with_the_daemon(monkeypatch, sent):
130
+ monkeypatch.setattr(telemetry, "START_DELAY_SECS", 0)
131
+ _turn(True)
132
+ shutdown = threading.Event()
133
+ checked = threading.Event()
134
+ real = telemetry.maybe_send
135
+ monkeypatch.setattr(telemetry, "maybe_send",
136
+ lambda name: (real(name), checked.set()))
137
+ thread = telemetry.start("small", shutdown)
138
+ assert checked.wait(5)
139
+ shutdown.set()
140
+ thread.join(5)
141
+ assert not thread.is_alive()
142
+ assert len(sent) == 1
143
+
144
+
145
+ def _tty(monkeypatch, answers: list[str]) -> list[str]:
146
+ asked: list[str] = []
147
+ monkeypatch.setattr(report, "_interactive", lambda: True)
148
+ monkeypatch.setattr(report, "_ask", lambda prompt: asked.append(prompt) or answers.pop(0))
149
+ return asked
150
+
151
+
152
+ @pytest.mark.parametrize("answer,stored", [("y", True), ("yes", True), ("n", False), ("", False)])
153
+ def test_asked_once_and_the_answer_is_stored(monkeypatch, answer, stored):
154
+ asked = _tty(monkeypatch, [answer])
155
+ telemetry.offer()
156
+ assert telemetry.setting() is stored
157
+ assert asked == ["\n " + telemetry.QUESTION]
158
+ telemetry.offer() # answered: never again
159
+ assert len(asked) == 1
160
+
161
+
162
+ def test_never_asked_without_a_terminal(monkeypatch):
163
+ monkeypatch.setattr(report, "_interactive", lambda: False)
164
+ monkeypatch.setattr(report, "_ask", lambda prompt: pytest.fail("asked"))
165
+ telemetry.offer()
166
+ assert telemetry.setting() is None
167
+
168
+
169
+ def test_setup_and_doctor_ask_the_same_question(monkeypatch):
170
+ """Doctor asks an install that was never asked; it calls the same offer()."""
171
+ import inspect
172
+
173
+ from voiceio.cli import doctor
174
+ from voiceio.setup import steps
175
+ assert "telemetry.offer()" in inspect.getsource(doctor._cmd_doctor)
176
+ assert "telemetry.offer()" in inspect.getsource(steps._step_finalize)
177
+ from voiceio.setup import noninteractive
178
+ assert "telemetry" not in inspect.getsource(noninteractive)
179
+
180
+
181
+ def test_question_names_every_field_sent():
182
+ q = telemetry.QUESTION.lower()
183
+ for word in ("version", "distro", "desktop", "session", "speech engine"):
184
+ assert word in q
185
+ assert q.endswith("[y/n] ")
186
+
187
+
188
+ def test_doctor_line(sent):
189
+ assert telemetry.status_line("small") == "Weekly anonymous count: not asked"
190
+ _turn(False)
191
+ assert telemetry.status_line("small") == "Weekly anonymous count: off"
192
+ _turn(True)
193
+ line = telemetry.status_line("small")
194
+ assert line.startswith("Weekly anonymous count: on\n sends: {")
195
+ assert json.loads(line.split("sends: ", 1)[1]) == telemetry.payload("small")
196
+
197
+
198
+ def test_config_set_turns_it_off(capsys):
199
+ from voiceio.cli import configcmd
200
+ _turn(True)
201
+ configcmd.cmd_set(argparse.Namespace(key="telemetry.ping", value="false"))
202
+ assert telemetry.setting() is False
203
+ configcmd.cmd_set(argparse.Namespace(key="telemetry.ping", value="true"))
204
+ assert telemetry.setting() is True
205
+
206
+
207
+ def test_shipped_with_the_endpoint_off():
208
+ """Flip ENDPOINT_LIVE only once workers/ping is deployed."""
209
+ assert SHIPPED_LIVE is False
210
+
211
+
212
+ def test_before_the_endpoint_is_live_nothing_is_asked_or_sent(monkeypatch):
213
+ monkeypatch.setattr(telemetry, "ENDPOINT_LIVE", False)
214
+ monkeypatch.setattr(report, "_interactive", lambda: True)
215
+ monkeypatch.setattr(report, "_ask", lambda prompt: pytest.fail("asked"))
216
+ monkeypatch.setattr(report, "_urlopen", lambda *a, **k: pytest.fail("sent"))
217
+ telemetry.offer()
218
+ assert telemetry.setting() is None
219
+ _turn(True) # even when set by hand
220
+ assert not telemetry.maybe_send("small", now=T0)
221
+ assert telemetry.start("small", threading.Event()) is None
222
+ assert telemetry.status_line("small") == ""
223
+ assert not (config.LOG_DIR / "ping.json").exists()
@@ -0,0 +1 @@
1
+ __version__ = "1.18.7"
@@ -1056,6 +1056,8 @@ class VoiceIO:
1056
1056
  )
1057
1057
  threading.Thread(target=self._recover_orphans, daemon=True,
1058
1058
  name="spool-recover").start()
1059
+ from voiceio import telemetry
1060
+ telemetry.start(self.cfg.model.name, self._shutdown)
1059
1061
 
1060
1062
  # Ctrl-C and `systemctl stop voiceio` must run the SAME cleanup path
1061
1063
  # (restore input source, engine shutdown) — the finally block below.
@@ -80,6 +80,9 @@ def _cmd_doctor(args: argparse.Namespace) -> None:
80
80
  report = check_health()
81
81
  print(format_report(report))
82
82
  print(format_usage(usage_findings()))
83
+ from voiceio import telemetry
84
+ if line := telemetry.status_line():
85
+ print(line)
83
86
  from voiceio.replies import nudge
84
87
  if line := nudge():
85
88
  print(f"\n{line}")
@@ -129,6 +132,7 @@ def _cmd_doctor(args: argparse.Namespace) -> None:
129
132
  healthy = report.all_ok and not perm_issues and not missing_deps and not stale_paths
130
133
  if args.report or _offer_report(args, healthy and not report.warnings):
131
134
  _share_report(args, report, missing_deps, [p for p, _, _ in perm_issues])
135
+ telemetry.offer()
132
136
  sys.exit(0 if healthy else 1)
133
137
 
134
138
  # Auto-fix mode
@@ -254,6 +258,7 @@ def _cmd_doctor(args: argparse.Namespace) -> None:
254
258
  and not stale_paths)
255
259
  if args.report or _offer_report(args, healthy):
256
260
  _share_report(args, report, missing_deps, [p for p, _, _ in perm_issues])
261
+ telemetry.offer()
257
262
  sys.exit(0 if report.all_ok and not stale_paths else 1)
258
263
 
259
264
 
@@ -19,6 +19,10 @@ def register(sub: argparse._SubParsersAction) -> None:
19
19
  lsub.add_parser("status", help="What has been captured, labeled and trained").set_defaults(
20
20
  func=cmd_status)
21
21
 
22
+ rp = lsub.add_parser("report", help="Numbers-only summary of the last 7 days (no words, no paths)")
23
+ rp.add_argument("--json", action="store_true", help="Print it as JSON")
24
+ rp.set_defaults(func=cmd_report)
25
+
22
26
  c = lsub.add_parser("clean", help="Remove test-fixture rows from your data files")
23
27
  c.add_argument("--apply", action="store_true", help="rewrite the files (backups first)")
24
28
  c.set_defaults(func=cmd_clean)
@@ -221,6 +225,12 @@ def cmd_status(args: argparse.Namespace) -> None:
221
225
  print(f"\nnext: voiceio learn {nxt}")
222
226
 
223
227
 
228
+ def cmd_report(args: argparse.Namespace) -> None:
229
+ from voiceio.learn import summary
230
+ data = summary.build()
231
+ print(summary.to_json(data) if args.json else summary.format_text(data))
232
+
233
+
224
234
  def _print_scores(ds: Path, active: str, runs: list[str]) -> str | None:
225
235
  """Scores on `ds` for the active model and each fine-tune; returns the
226
236
  run that beats the active model on everything, if any."""
@@ -330,6 +330,14 @@ class LearnConfig:
330
330
  min_new: int = 50
331
331
 
332
332
 
333
+ @dataclass
334
+ class TelemetryConfig:
335
+ # One anonymous count a week to voiceio.dev (voiceio/telemetry.py):
336
+ # version, distro, desktop, session type and decoder family, nothing
337
+ # else. None means never asked, and sends nothing, like false.
338
+ ping: bool | None = None
339
+
340
+
333
341
  @dataclass
334
342
  class Config:
335
343
  hotkey: HotkeyConfig = field(default_factory=HotkeyConfig)
@@ -348,6 +356,7 @@ class Config:
348
356
  data: DataConfig = field(default_factory=DataConfig)
349
357
  history: HistoryConfig = field(default_factory=HistoryConfig)
350
358
  learn: LearnConfig = field(default_factory=LearnConfig)
359
+ telemetry: TelemetryConfig = field(default_factory=TelemetryConfig)
351
360
 
352
361
 
353
362
  _REMOVED_KEYS = {
@@ -429,6 +438,7 @@ def load(path: Path | None = None) -> Config:
429
438
  data=_build(DataConfig, raw.get("data", {})),
430
439
  history=_build(HistoryConfig, raw.get("history", {})),
431
440
  learn=_build(LearnConfig, raw.get("learn", {})),
441
+ telemetry=_build(TelemetryConfig, raw.get("telemetry", {})),
432
442
  )
433
443
 
434
444
 
@@ -116,6 +116,18 @@ def runtime_of(name: str) -> str:
116
116
  return m.runtime if m is not None else "faster-whisper"
117
117
 
118
118
 
119
+ def family(name: str) -> str:
120
+ """'parakeet', 'whisper', 'whisper.cpp' or 'sherpa-onnx': the kind of
121
+ model, never the name itself (a fine-tune's name is a path under $HOME)."""
122
+ runtime = runtime_of(name)
123
+ if runtime == "faster-whisper":
124
+ return "whisper"
125
+ if runtime == "whisper.cpp":
126
+ return "whisper.cpp"
127
+ m = info(name)
128
+ return "parakeet" if m is not None and m.name.startswith("parakeet") else "sherpa-onnx"
129
+
130
+
119
131
  def is_whisper(name: str) -> bool:
120
132
  """Whether `voiceio learn` fine-tunes can stand in for this model: they
121
133
  are Whisper, so they only matter while dictation decodes with Whisper."""
@@ -163,6 +163,13 @@ def latest(model: str, dataset: str, mode: str = "offline", beam: int = 5) -> di
163
163
  """The newest saved run of `model` (a `[model] name`) on `dataset` scored
164
164
  by the current metrics, or None. `beam` is Whisper's beam width; a
165
165
  sherpa-onnx model has one decode setting."""
166
+ found = latest_run(model, dataset, mode, beam)
167
+ return found[1] if found else None
168
+
169
+
170
+ def latest_run(model: str, dataset: str, mode: str = "offline",
171
+ beam: int = 5) -> tuple[Path, dict] | None:
172
+ """`latest()` with the file it came from (its name holds the run's time)."""
166
173
  from voiceio.core.decoders.catalog import runtime_of
167
174
  runs = learn_dir() / "runs"
168
175
  if runtime_of(model) == "sherpa-onnx":
@@ -177,7 +184,7 @@ def latest(model: str, dataset: str, mode: str = "offline", beam: int = 5) -> di
177
184
  if (data.get("decoder", "").removesuffix("+draft") == want
178
185
  and data.get("dataset") == dataset and data.get("mode", "offline") == mode
179
186
  and data.get("metrics", 1) == metrics.METRICS_VERSION):
180
- return data
187
+ return path, data
181
188
  return None
182
189
 
183
190