python-voiceio 1.18.1__tar.gz → 1.18.3__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 (240) hide show
  1. {python_voiceio-1.18.1/python_voiceio.egg-info → python_voiceio-1.18.3}/PKG-INFO +1 -1
  2. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/pyproject.toml +1 -1
  3. {python_voiceio-1.18.1 → python_voiceio-1.18.3/python_voiceio.egg-info}/PKG-INFO +1 -1
  4. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/python_voiceio.egg-info/SOURCES.txt +1 -0
  5. python_voiceio-1.18.3/tests/test_cuda_setup_hint.py +202 -0
  6. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_report.py +5 -0
  7. python_voiceio-1.18.3/voiceio/__init__.py +1 -0
  8. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/health.py +30 -23
  9. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/platform.py +86 -0
  10. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/report.py +2 -0
  11. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/steps.py +18 -3
  12. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/system.py +5 -0
  13. python_voiceio-1.18.1/voiceio/__init__.py +0 -1
  14. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/LICENSE +0 -0
  15. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/README.md +0 -0
  16. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/python_voiceio.egg-info/dependency_links.txt +0 -0
  17. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/python_voiceio.egg-info/entry_points.txt +0 -0
  18. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/python_voiceio.egg-info/requires.txt +0 -0
  19. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/python_voiceio.egg-info/top_level.txt +0 -0
  20. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/setup.cfg +0 -0
  21. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_announce.py +0 -0
  22. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_app_wiring.py +0 -0
  23. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_audio_quality.py +0 -0
  24. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_audio_source.py +0 -0
  25. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_backend_probes.py +0 -0
  26. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_cancel.py +0 -0
  27. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_cli.py +0 -0
  28. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_clipboard_read.py +0 -0
  29. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_clipboard_typer.py +0 -0
  30. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_commands.py +0 -0
  31. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_concurrency_lockdown.py +0 -0
  32. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_config.py +0 -0
  33. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_context_terms.py +0 -0
  34. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_corrections.py +0 -0
  35. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_dead_mic.py +0 -0
  36. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_decoders.py +0 -0
  37. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_engine.py +0 -0
  38. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_errorlog.py +0 -0
  39. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_evdev_uaccess.py +0 -0
  40. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_evdev_x11_optional.py +0 -0
  41. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_fallback.py +0 -0
  42. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_fcitx_bridge.py +0 -0
  43. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_feedback_stream.py +0 -0
  44. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_focus.py +0 -0
  45. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_gpu_fallback.py +0 -0
  46. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_health.py +0 -0
  47. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_hints.py +0 -0
  48. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_history.py +0 -0
  49. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_hotkey_modes.py +0 -0
  50. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_ibus_engine_limits.py +0 -0
  51. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_ibus_engine_listener.py +0 -0
  52. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_ibus_pending.py +0 -0
  53. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_ibus_pids.py +0 -0
  54. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_ibus_ping.py +0 -0
  55. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_ibus_session.py +0 -0
  56. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_ibus_textlimit.py +0 -0
  57. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_ibus_typer.py +0 -0
  58. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_idle_audio.py +0 -0
  59. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_install_env.py +0 -0
  60. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_clean.py +0 -0
  61. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_import.py +0 -0
  62. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_language.py +0 -0
  63. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_metrics.py +0 -0
  64. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_pipeline.py +0 -0
  65. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_quiet.py +0 -0
  66. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_resume.py +0 -0
  67. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_review.py +0 -0
  68. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_learn_targets.py +0 -0
  69. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_llm.py +0 -0
  70. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_llm_api.py +0 -0
  71. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_mic_gain.py +0 -0
  72. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_modifier_guard.py +0 -0
  73. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_numbers.py +0 -0
  74. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_paste_last.py +0 -0
  75. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_pipeline.py +0 -0
  76. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_platform.py +0 -0
  77. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_postcorrect.py +0 -0
  78. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_postprocess.py +0 -0
  79. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_prebuffer.py +0 -0
  80. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_presence.py +0 -0
  81. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_prompt.py +0 -0
  82. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_quiet_audio.py +0 -0
  83. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_recorder_integration.py +0 -0
  84. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_retention.py +0 -0
  85. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_robustness.py +0 -0
  86. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_security_hardening.py +0 -0
  87. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_server.py +0 -0
  88. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_service.py +0 -0
  89. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_setup.py +0 -0
  90. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_sherpa.py +0 -0
  91. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_spool.py +0 -0
  92. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_streaming.py +0 -0
  93. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_suggest.py +0 -0
  94. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_tokens.py +0 -0
  95. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_transcriber.py +0 -0
  96. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_tray.py +0 -0
  97. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_tts.py +0 -0
  98. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_typer_manager.py +0 -0
  99. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_vad.py +0 -0
  100. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_vocabulary.py +0 -0
  101. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_wordfreq.py +0 -0
  102. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/tests/test_worker_decode.py +0 -0
  103. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/__main__.py +0 -0
  104. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/announce.py +0 -0
  105. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/app.py +0 -0
  106. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/audio_source.py +0 -0
  107. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/backends.py +0 -0
  108. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/__init__.py +0 -0
  109. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/configcmd.py +0 -0
  110. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/corrections.py +0 -0
  111. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/doctor.py +0 -0
  112. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/history.py +0 -0
  113. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/learn.py +0 -0
  114. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/models.py +0 -0
  115. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/servicecmd.py +0 -0
  116. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/uninstall.py +0 -0
  117. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/cli/vocab.py +0 -0
  118. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/clipboard_read.py +0 -0
  119. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/commands.py +0 -0
  120. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/config.py +0 -0
  121. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/consent.py +0 -0
  122. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/context_terms.py +0 -0
  123. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/__init__.py +0 -0
  124. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/bias.py +0 -0
  125. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/__init__.py +0 -0
  126. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/base.py +0 -0
  127. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/catalog.py +0 -0
  128. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/faster_whisper/__init__.py +0 -0
  129. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/faster_whisper/worker.py +0 -0
  130. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/fetch.py +0 -0
  131. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/lanes.py +0 -0
  132. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/sherpa.py +0 -0
  133. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/decoders/whispercpp.py +0 -0
  134. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/engine.py +0 -0
  135. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/core/pipeline.py +0 -0
  136. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/corrections.py +0 -0
  137. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/data/60-voiceio-uaccess.rules +0 -0
  138. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/data/__init__.py +0 -0
  139. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/demo.py +0 -0
  140. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/display.py +0 -0
  141. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/errorlog.py +0 -0
  142. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/feedback.py +0 -0
  143. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/focus.py +0 -0
  144. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/hints.py +0 -0
  145. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/history.py +0 -0
  146. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/hotkeys/__init__.py +0 -0
  147. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/hotkeys/base.py +0 -0
  148. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/hotkeys/chain.py +0 -0
  149. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/hotkeys/evdev.py +0 -0
  150. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/hotkeys/pynput_backend.py +0 -0
  151. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/hotkeys/socket_backend.py +0 -0
  152. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/ibus/__init__.py +0 -0
  153. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/ibus/engine.py +0 -0
  154. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/ibus/install.py +0 -0
  155. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/ibus/pending.py +0 -0
  156. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/ibus/session.py +0 -0
  157. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/ibus/textlimit.py +0 -0
  158. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/idle_audio.py +0 -0
  159. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/install_env.py +0 -0
  160. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/__init__.py +0 -0
  161. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/augment.py +0 -0
  162. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/clean.py +0 -0
  163. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/evaluate.py +0 -0
  164. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/importer.py +0 -0
  165. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/metrics.py +0 -0
  166. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/quiet.py +0 -0
  167. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/review.py +0 -0
  168. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/store.py +0 -0
  169. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/teacher.py +0 -0
  170. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/learn/train.py +0 -0
  171. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/llm.py +0 -0
  172. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/llm_api.py +0 -0
  173. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/mic_gain.py +0 -0
  174. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/models/__init__.py +0 -0
  175. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/models/silero_vad.onnx +0 -0
  176. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/numbers.py +0 -0
  177. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/pidlock.py +0 -0
  178. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/postcorrect.py +0 -0
  179. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/postprocess.py +0 -0
  180. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/power.py +0 -0
  181. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/presence.py +0 -0
  182. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/privacy.py +0 -0
  183. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/prompt.py +0 -0
  184. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/quiet_audio.py +0 -0
  185. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/recorder.py +0 -0
  186. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/retention.py +0 -0
  187. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/server/__init__.py +0 -0
  188. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/server/__main__.py +0 -0
  189. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/server/app.py +0 -0
  190. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/server/config.py +0 -0
  191. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/server/runtime.py +0 -0
  192. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/service.py +0 -0
  193. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/__init__.py +0 -0
  194. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/configfile.py +0 -0
  195. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/extras.py +0 -0
  196. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/hotkey.py +0 -0
  197. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/noninteractive.py +0 -0
  198. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/speech.py +0 -0
  199. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/setup/ui.py +0 -0
  200. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/sounds/__init__.py +0 -0
  201. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/sounds/alert.wav +0 -0
  202. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/sounds/commit.wav +0 -0
  203. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/sounds/start.wav +0 -0
  204. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/sounds/stop.wav +0 -0
  205. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/spool.py +0 -0
  206. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/streaming.py +0 -0
  207. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/suggest.py +0 -0
  208. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tokens.py +0 -0
  209. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tray/__init__.py +0 -0
  210. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tray/_icons.py +0 -0
  211. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tray/_indicator.py +0 -0
  212. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tray/_pystray.py +0 -0
  213. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tts/__init__.py +0 -0
  214. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tts/base.py +0 -0
  215. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tts/chain.py +0 -0
  216. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tts/edge_engine.py +0 -0
  217. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tts/espeak.py +0 -0
  218. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tts/piper_engine.py +0 -0
  219. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tts/player.py +0 -0
  220. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/tts/supertonic_engine.py +0 -0
  221. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/__init__.py +0 -0
  222. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/base.py +0 -0
  223. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/chain.py +0 -0
  224. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/clipboard.py +0 -0
  225. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/collecting.py +0 -0
  226. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/fcitx_bridge.py +0 -0
  227. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/ibus.py +0 -0
  228. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/manager.py +0 -0
  229. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/modifier_guard.py +0 -0
  230. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/paste.py +0 -0
  231. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/pynput_type.py +0 -0
  232. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/wtype.py +0 -0
  233. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/xdotool.py +0 -0
  234. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/typers/ydotool.py +0 -0
  235. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/ui.py +0 -0
  236. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/vad.py +0 -0
  237. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/vocab_stats.py +0 -0
  238. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/vocabulary.py +0 -0
  239. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/watchdog.py +0 -0
  240. {python_voiceio-1.18.1 → python_voiceio-1.18.3}/voiceio/wordfreq.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-voiceio
3
- Version: 1.18.1
3
+ Version: 1.18.3
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.1"
7
+ version = "1.18.3"
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.1
3
+ Version: 1.18.3
4
4
  Summary: Voice dictation for Linux. Speak → text, locally, instantly.
5
5
  Author: Hugo Montenegro
6
6
  License-Expression: MIT
@@ -21,6 +21,7 @@ tests/test_concurrency_lockdown.py
21
21
  tests/test_config.py
22
22
  tests/test_context_terms.py
23
23
  tests/test_corrections.py
24
+ tests/test_cuda_setup_hint.py
24
25
  tests/test_dead_mic.py
25
26
  tests/test_decoders.py
26
27
  tests/test_engine.py
@@ -0,0 +1,202 @@
1
+ """Setup names the CUDA library it can't load instead of a bare "will use CPU"."""
2
+ from __future__ import annotations
3
+
4
+ import sys
5
+ from types import SimpleNamespace
6
+
7
+ import pytest
8
+
9
+ from voiceio import platform as plat
10
+ from voiceio.setup import steps
11
+
12
+
13
+ def _gpu(monkeypatch, count: int, missing: set[str]):
14
+ monkeypatch.setitem(sys.modules, "ctranslate2",
15
+ SimpleNamespace(get_cuda_device_count=lambda: count))
16
+ real = __import__("ctypes").CDLL
17
+
18
+ def cdll(name, *a, **k):
19
+ if name in missing:
20
+ raise OSError(name)
21
+ return real("libc.so.6")
22
+ monkeypatch.setattr("ctypes.CDLL", cdll)
23
+
24
+
25
+ @pytest.fixture
26
+ def mgr(monkeypatch):
27
+ def use(name):
28
+ monkeypatch.setattr(plat, "_detect_pkg_manager", lambda: name)
29
+ return use
30
+
31
+
32
+ def test_no_gpu_is_none(monkeypatch):
33
+ _gpu(monkeypatch, 0, {"libcudnn.so.9"})
34
+ assert plat.missing_cuda_libs() is None
35
+
36
+
37
+ def test_gpu_names_missing_libs(monkeypatch):
38
+ _gpu(monkeypatch, 1, {"libcudnn.so.9"})
39
+ assert plat.missing_cuda_libs() == ["libcudnn.so.9"]
40
+ _gpu(monkeypatch, 1, set())
41
+ assert plat.missing_cuda_libs() == []
42
+
43
+
44
+ @pytest.mark.parametrize("name,pkg", [
45
+ ("emerge", "sudo emerge --ask dev-libs/cudnn"),
46
+ ("pacman", "sudo pacman -S cudnn"),
47
+ ("apt", "sudo apt install nvidia-cudnn"),
48
+ ])
49
+ def test_cudnn_hint_names_the_package(mgr, name, pkg):
50
+ mgr(name)
51
+ hint = plat.cuda_libs_hint(["libcudnn.so.9"])
52
+ assert "separate package from the CUDA toolkit" in hint and f"({pkg}" in hint
53
+ assert "ldconfig -p | grep -E 'cublas.so.12|cudnn.so.9'" in hint
54
+
55
+
56
+ def test_unknown_manager_stays_generic(mgr):
57
+ mgr("dnf")
58
+ hint = plat.cuda_libs_hint(["libcudnn.so.9"])
59
+ assert "(" not in hint.split(".")[0]
60
+
61
+
62
+ def test_cublas_only_skips_cudnn_note(mgr):
63
+ mgr("emerge")
64
+ hint = plat.cuda_libs_hint(["libcublas.so.12"])
65
+ assert "cuDNN" not in hint and hint.startswith("The libraries must be on the loader path")
66
+
67
+
68
+ def test_setup_prints_reason_when_gpu_present(mgr, capsys):
69
+ mgr("emerge")
70
+ steps._print_cuda_check({"cuda": True, "cuda_missing": ["libcudnn.so.9"]})
71
+ out = capsys.readouterr().out
72
+ assert "GPU found, but libcudnn.so.9 can't be loaded: will use CPU" in out
73
+ assert "dev-libs/cudnn" in out and "ldconfig -p" in out
74
+ assert "will use GPU" not in out
75
+
76
+
77
+ @pytest.mark.parametrize("missing", [None, []])
78
+ def test_setup_short_line_without_gpu(capsys, missing):
79
+ steps._print_cuda_check({"cuda": False, "cuda_missing": missing})
80
+ out = capsys.readouterr().out
81
+ assert "will use CPU (still fast)" in out and "ldconfig" not in out
82
+
83
+
84
+ def test_setup_gpu_ok(capsys):
85
+ steps._print_cuda_check({"cuda": True, "cuda_missing": []})
86
+ assert "will use GPU" in capsys.readouterr().out
87
+ steps._print_cuda_check({"cuda": True}) # older checks dicts
88
+ assert "will use GPU" in capsys.readouterr().out
89
+
90
+
91
+ # ── GPU present, but CTranslate2 sees no CUDA device ─────────────────────
92
+
93
+ def _os_gpu(monkeypatch, present: bool, libcuda: bool):
94
+ monkeypatch.setattr(plat, "nvidia_gpu_present", lambda: present)
95
+ real = __import__("ctypes").CDLL
96
+
97
+ def cdll(name, *a, **k):
98
+ if name == "libcuda.so.1" and not libcuda:
99
+ raise OSError(name)
100
+ return real("libc.so.6")
101
+ monkeypatch.setattr("ctypes.CDLL", cdll)
102
+
103
+
104
+ _DEVICE_MSG = ("NVIDIA GPU found, but CTranslate2 sees no CUDA device: check that the "
105
+ "driver's libcuda.so.1 loads (ldconfig -p | grep libcuda.so.1) and that "
106
+ "nvidia-smi works.")
107
+
108
+
109
+ def test_device_problem_when_os_sees_gpu(monkeypatch):
110
+ monkeypatch.setitem(sys.modules, "ctranslate2",
111
+ SimpleNamespace(get_cuda_device_count=lambda: 0))
112
+ _os_gpu(monkeypatch, True, libcuda=True)
113
+ assert plat.cuda_device_problem() == _DEVICE_MSG
114
+
115
+
116
+ def test_device_problem_names_libcuda(monkeypatch):
117
+ monkeypatch.setitem(sys.modules, "ctranslate2",
118
+ SimpleNamespace(get_cuda_device_count=lambda: 0))
119
+ _os_gpu(monkeypatch, True, libcuda=False)
120
+ assert plat.cuda_device_problem().startswith(
121
+ "NVIDIA GPU found, but CTranslate2 sees no CUDA device (libcuda.so.1 can't be loaded): ")
122
+
123
+
124
+ @pytest.mark.parametrize("count,present", [(0, False), (1, True)])
125
+ def test_no_device_problem(monkeypatch, count, present):
126
+ monkeypatch.setitem(sys.modules, "ctranslate2",
127
+ SimpleNamespace(get_cuda_device_count=lambda: count))
128
+ _os_gpu(monkeypatch, present, libcuda=False)
129
+ assert plat.cuda_device_problem() == ""
130
+
131
+
132
+ def test_device_problem_needs_ctranslate2(monkeypatch):
133
+ monkeypatch.setitem(sys.modules, "ctranslate2", None) # import raises
134
+ _os_gpu(monkeypatch, True, libcuda=False)
135
+ assert plat.cuda_device_problem() == ""
136
+
137
+
138
+ def test_nvidia_gpu_present_via_proc_or_smi(monkeypatch):
139
+ import subprocess
140
+ monkeypatch.setattr(plat.os.path, "exists", lambda p: p == "/dev/nvidia0")
141
+ assert plat.nvidia_gpu_present()
142
+ monkeypatch.setattr(plat.os.path, "exists", lambda p: False)
143
+ monkeypatch.setattr(plat.shutil, "which", lambda b: None)
144
+ assert not plat.nvidia_gpu_present()
145
+ monkeypatch.setattr(plat.shutil, "which", lambda b: "/usr/bin/nvidia-smi")
146
+ ok = SimpleNamespace(returncode=0, stdout="GPU 0: NVIDIA GeForce RTX 3060 (UUID: x)\n")
147
+ monkeypatch.setattr(subprocess, "run", lambda *a, **k: ok)
148
+ assert plat.nvidia_gpu_present()
149
+
150
+ def hang(*a, **k):
151
+ raise subprocess.TimeoutExpired("nvidia-smi", 3)
152
+ monkeypatch.setattr(subprocess, "run", hang)
153
+ assert not plat.nvidia_gpu_present()
154
+
155
+
156
+ def test_setup_prints_device_problem(capsys):
157
+ steps._print_cuda_check({"cuda": False, "cuda_missing": None,
158
+ "cuda_device_problem": _DEVICE_MSG})
159
+ out = capsys.readouterr().out
160
+ assert "will use CPU" in out and _DEVICE_MSG in out and "still fast" not in out
161
+
162
+
163
+ def test_doctor_prints_device_problem(monkeypatch):
164
+ from voiceio import health
165
+ from voiceio.config import Config
166
+ cfg = Config()
167
+ cfg.model.name, cfg.model.device = "small", "auto"
168
+ monkeypatch.setattr("voiceio.config.load", lambda: cfg)
169
+ monkeypatch.setattr(plat, "missing_cuda_libs", lambda: None)
170
+ monkeypatch.setattr(plat, "cuda_device_problem", lambda: _DEVICE_MSG)
171
+ assert health._gpu_libs_warning() == _DEVICE_MSG
172
+ monkeypatch.setattr(plat, "cuda_device_problem", lambda: "")
173
+ assert health._gpu_libs_warning() == ""
174
+
175
+
176
+ def test_doctor_says_which_device_whisper_decodes_on(monkeypatch):
177
+ from voiceio import health
178
+ from voiceio.config import Config
179
+ from voiceio.platform import Platform
180
+ cfg = Config()
181
+ cfg.model.name, cfg.model.device = "small", "auto"
182
+ monkeypatch.setattr("voiceio.config.load", lambda: cfg)
183
+ monkeypatch.setattr(plat, "missing_cuda_libs", lambda: [])
184
+ assert health._whisper_gpu() == ("cuda", "")
185
+ text = health.format_report(health.HealthReport(
186
+ platform=Platform(os="linux", display_server="x11", desktop="kde"),
187
+ whisper_device="cuda"))
188
+ assert "Whisper decodes on" in text and "cuda" in text
189
+
190
+ monkeypatch.setattr(plat, "missing_cuda_libs", lambda: None)
191
+ monkeypatch.setattr(plat, "cuda_device_problem", lambda: "")
192
+ assert health._whisper_gpu() == ("cpu (no CUDA device)", "")
193
+ monkeypatch.setattr(plat, "cuda_device_problem", lambda: "NVIDIA GPU found, but")
194
+ assert health._whisper_gpu() == ("cpu (see warnings)", "NVIDIA GPU found, but")
195
+ monkeypatch.setattr(plat, "missing_cuda_libs", lambda: ["libcudnn.so.9"])
196
+ device, warning = health._whisper_gpu()
197
+ assert device == "cpu (see warnings)" and "libcudnn.so.9" in warning
198
+
199
+ cfg.model.device = "cpu"
200
+ assert health._whisper_gpu() == ("cpu (model.device = cpu)", "")
201
+ cfg.model.name = "parakeet-tdt-0.6b-v3"
202
+ assert health._whisper_gpu() == ("", "")
@@ -375,3 +375,8 @@ def test_network_guard_blocks_real_hosts():
375
375
  s.connect(("93.184.216.34", 443))
376
376
  finally:
377
377
  s.close()
378
+
379
+
380
+ def test_report_says_which_device_whisper_decodes_on():
381
+ assert "device: cuda" in report.build_report(_health(whisper_device="cuda"), cfg=Config())
382
+ assert "device:" not in report.build_report(_health(), cfg=Config())
@@ -0,0 +1 @@
1
+ __version__ = "1.18.3"
@@ -51,6 +51,8 @@ class HealthReport:
51
51
  tray_fix_hint: str = ""
52
52
  features: FeatureGroups = field(default_factory=FeatureGroups)
53
53
  warnings: list[str] = field(default_factory=list)
54
+ # Where Whisper decodes: "cuda", or "cpu (why)". "" for other backends.
55
+ whisper_device: str = ""
54
56
 
55
57
  @property
56
58
  def all_ok(self) -> bool:
@@ -123,7 +125,8 @@ def check_health(p: plat.Platform | None = None) -> HealthReport:
123
125
  "Grant it in System Settings → Privacy & Security → Accessibility."
124
126
  )
125
127
 
126
- if gpu := _gpu_libs_warning():
128
+ report.whisper_device, gpu = _whisper_gpu()
129
+ if gpu:
127
130
  report.warnings.append(gpu)
128
131
  if kde := _kde_input_method_warning(report.platform):
129
132
  report.warnings.append(kde)
@@ -170,37 +173,37 @@ def _kde_input_method_warning(p: plat.Platform, kwinrc: Path | None = None) -> s
170
173
  "System Settings → Keyboard → Virtual Keyboard → IBus Wayland, then log out and in.")
171
174
 
172
175
 
173
- # What CTranslate2 4.x's CUDA build loads at the first encode.
174
- _CUDA_LIBS = ("libcublas.so.12", "libcudnn.so.9")
175
-
176
-
177
176
  def _gpu_libs_warning() -> str:
178
177
  """Why Whisper can't use the GPU it sees, when that's a missing CUDA
179
178
  library (a torch for another CUDA major, pulled in by the train extra,
180
179
  is the usual way). The daemon then decodes on CPU instead."""
180
+ return _whisper_gpu()[1]
181
+
182
+
183
+ def _whisper_gpu() -> tuple[str, str]:
184
+ """(device Whisper decodes on, warning). The device is "cuda" or
185
+ "cpu (why)", and "" for a non-Whisper model; a CPU fallback with a
186
+ warning points at it rather than repeating it."""
181
187
  try:
182
188
  from voiceio.config import load
183
189
  cfg = load().model
184
190
  from voiceio.core.decoders.catalog import is_whisper
185
- if cfg.device not in ("auto", "cuda") or not is_whisper(cfg.name):
186
- return ""
187
- import ctranslate2
188
- if ctranslate2.get_cuda_device_count() == 0:
189
- return ""
190
- except Exception: # noqa: BLE001 — no faster-whisper, or no CUDA build
191
- return ""
192
- import ctypes
193
- missing = []
194
- for lib in _CUDA_LIBS:
195
- try:
196
- ctypes.CDLL(lib)
197
- except OSError:
198
- missing.append(lib)
191
+ if not is_whisper(cfg.name):
192
+ return "", ""
193
+ if cfg.device not in ("auto", "cuda"):
194
+ return f"cpu (model.device = {cfg.device})", ""
195
+ except Exception: # noqa: BLE001
196
+ return "", ""
197
+ missing = plat.missing_cuda_libs()
198
+ if missing is None:
199
+ problem = plat.cuda_device_problem()
200
+ return ("cpu (see warnings)" if problem else "cpu (no CUDA device)"), problem
199
201
  if not missing:
200
- return ""
201
- return (f"A GPU is present but {', '.join(missing)} can't be loaded, so Whisper "
202
- "decodes on CPU. Set model.device = \"cpu\" in config.toml to stay on CPU, "
203
- "or install the CUDA 12 runtime (cuBLAS 12 and cuDNN 9) to use the GPU.")
202
+ return "cuda", ""
203
+ return "cpu (see warnings)", (
204
+ f"A GPU is present but {', '.join(missing)} can't be loaded, so Whisper "
205
+ f"decodes on CPU. {plat.cuda_libs_hint(missing)}. Or set "
206
+ "model.device = \"cpu\" in config.toml to stay on CPU.")
204
207
 
205
208
 
206
209
  def _check_features() -> FeatureGroups:
@@ -535,6 +538,10 @@ def format_report(report: HealthReport) -> str:
535
538
  lines[-1] += f" {DIM}{report.tray_reason}{RESET}"
536
539
  if report.tray_fix_hint:
537
540
  lines.append(f" {DIM}→ {report.tray_fix_hint}{RESET}")
541
+ if report.whisper_device:
542
+ fallback = "warnings" in report.whisper_device # a GPU it can't use
543
+ lines.append(_check_line("Whisper decodes on", not fallback,
544
+ report.whisper_device, warn=fallback))
538
545
 
539
546
  # IBus pipeline
540
547
  if report.ibus_checks is not None:
@@ -386,6 +386,7 @@ _PKG_NAMES: dict[str, dict[str, str]] = {
386
386
  "portaudio19-dev": "portaudio",
387
387
  "gir1.2-ayatanaappindicator3-0.1": "libayatana-appindicator",
388
388
  "espeak-ng": "espeak-ng",
389
+ "cudnn": "cudnn",
389
390
  },
390
391
  "zypper": {
391
392
  "gir1.2-ibus-1.0": "typelib-1_0-IBus-1_0",
@@ -407,6 +408,9 @@ _PKG_NAMES: dict[str, dict[str, str]] = {
407
408
  },
408
409
  # Gentoo atoms. Names not listed stay bare (`emerge ydotool`), which
409
410
  # emerge resolves when the name is unique in the tree.
411
+ "apt": {
412
+ "cudnn": "nvidia-cudnn",
413
+ },
410
414
  "emerge": {
411
415
  "ibus": "app-i18n/ibus",
412
416
  "gir1.2-ibus-1.0": "app-i18n/ibus", # typelib comes with USE=introspection
@@ -418,6 +422,7 @@ _PKG_NAMES: dict[str, dict[str, str]] = {
418
422
  "xclip": "x11-misc/xclip",
419
423
  "wl-clipboard": "gui-apps/wl-clipboard",
420
424
  "wtype": "gui-apps/wtype",
425
+ "cudnn": "dev-libs/cudnn",
421
426
  },
422
427
  "nix": {
423
428
  "gir1.2-ibus-1.0": "ibus",
@@ -463,6 +468,87 @@ def pkg_install(*packages: str) -> str:
463
468
  return f"{prefix} {' '.join(mapped)}"
464
469
 
465
470
 
471
+ # ── CUDA libraries ───────────────────────────────────────────────────────────
472
+
473
+ # What CTranslate2 4.x's CUDA build loads at the first encode.
474
+ CUDA_LIBS = ("libcublas.so.12", "libcudnn.so.9")
475
+
476
+
477
+ def missing_cuda_libs() -> list[str] | None:
478
+ """The CUDA_LIBS the loader can't open, or None when CTranslate2 sees no
479
+ NVIDIA GPU (or has no CUDA build). [] means the GPU is usable."""
480
+ try:
481
+ import ctranslate2
482
+ if ctranslate2.get_cuda_device_count() == 0:
483
+ return None
484
+ except Exception: # noqa: BLE001 — no faster-whisper, or no CUDA build
485
+ return None
486
+ import ctypes
487
+ missing = []
488
+ for lib in CUDA_LIBS:
489
+ try:
490
+ ctypes.CDLL(lib)
491
+ except OSError:
492
+ missing.append(lib)
493
+ return missing
494
+
495
+
496
+ def nvidia_gpu_present() -> bool:
497
+ """An NVIDIA GPU with its kernel driver loaded, asked of the OS rather
498
+ than of CTranslate2 (which reports 0 devices when libcuda won't load)."""
499
+ if os.path.exists("/proc/driver/nvidia/version") or os.path.exists("/dev/nvidia0"):
500
+ return True
501
+ if not shutil.which("nvidia-smi"):
502
+ return False
503
+ import subprocess
504
+ try:
505
+ r = subprocess.run(["nvidia-smi", "-L"], capture_output=True, text=True, timeout=3)
506
+ except (OSError, subprocess.SubprocessError):
507
+ return False
508
+ return r.returncode == 0 and "GPU" in r.stdout
509
+
510
+
511
+ def cuda_device_problem() -> str:
512
+ """Why CTranslate2 sees no CUDA device on a machine that has an NVIDIA
513
+ GPU, or "" (no GPU, no CTranslate2, or it sees the device)."""
514
+ try:
515
+ import ctranslate2
516
+ except Exception: # noqa: BLE001 — no faster-whisper installed
517
+ return ""
518
+ try:
519
+ if ctranslate2.get_cuda_device_count() > 0:
520
+ return ""
521
+ except Exception: # noqa: BLE001 — treat a failing query as no device
522
+ pass
523
+ if not nvidia_gpu_present():
524
+ return ""
525
+ import ctypes
526
+ try:
527
+ ctypes.CDLL("libcuda.so.1")
528
+ why = ""
529
+ except OSError:
530
+ why = " (libcuda.so.1 can't be loaded)"
531
+ return (f"NVIDIA GPU found, but CTranslate2 sees no CUDA device{why}: check that "
532
+ "the driver's libcuda.so.1 loads (ldconfig -p | grep libcuda.so.1) and "
533
+ "that nvidia-smi works.")
534
+
535
+
536
+ def cuda_libs_hint(missing: list[str]) -> str:
537
+ """Where to look for the libraries missing_cuda_libs() named."""
538
+ hint = ""
539
+ if any("cudnn" in lib for lib in missing):
540
+ hint = "cuDNN 9 is a separate package from the CUDA toolkit"
541
+ # Only the managers whose package name we know; others stay generic.
542
+ mgr = _detect_pkg_manager()
543
+ if "cudnn" in _PKG_NAMES.get(mgr, {}):
544
+ # Older Debian/Ubuntu releases package cuDNN 8; NVIDIA's repo has 9.
545
+ alt = " or NVIDIA's CUDA repo" if mgr == "apt" else ""
546
+ hint += f" ({pkg_install('cudnn')}{alt})"
547
+ hint += ". "
548
+ return (hint + "The libraries must be on the loader path: "
549
+ "ldconfig -p | grep -E 'cublas.so.12|cudnn.so.9'")
550
+
551
+
466
552
  # ── System-dependency preflight ──────────────────────────────────────────────
467
553
  #
468
554
  # The #1 install funnel killer is missing *system* packages: a C toolchain to
@@ -193,6 +193,8 @@ def build_report(
193
193
  if health.ibus_checks is not None and not health.ibus_checks.voiceio_running else ""),
194
194
  f"model: {_model_label(cfg.model.name)}",
195
195
  ]
196
+ if health.whisper_device:
197
+ lines.append(f"device: {health.whisper_device}")
196
198
  if unavailable:
197
199
  lines.append("fallbacks unavailable: " + ", ".join(unavailable))
198
200
  lines.append("failed: " + "; ".join(failed) if failed else "failed: none")
@@ -179,9 +179,7 @@ def _print_capability_checks(checks: dict) -> None:
179
179
  "fallback" if checks["xdotool"] else f"optional: {pkg_install('xdotool')}",
180
180
  optional=True)
181
181
 
182
- _print_check("CUDA GPU", checks["cuda"],
183
- "will use GPU" if checks["cuda"] else "will use CPU (still fast)",
184
- optional=True)
182
+ _print_cuda_check(checks)
185
183
 
186
184
  if checks["is_linux"]:
187
185
  from voiceio.hotkeys.evdev import NOT_NEEDED_ON_X11
@@ -194,6 +192,23 @@ def _print_capability_checks(checks: dict) -> None:
194
192
  _print_check("Keyboard access (evdev)", False, evdev_access_hint())
195
193
 
196
194
 
195
+ def _print_cuda_check(checks: dict) -> None:
196
+ missing = checks.get("cuda_missing")
197
+ if missing: # an NVIDIA GPU, but CTranslate2 can't load its libraries
198
+ from voiceio.platform import cuda_libs_hint
199
+ _print_check("CUDA GPU", False,
200
+ f"GPU found, but {', '.join(missing)} can't be loaded: will use CPU",
201
+ optional=True)
202
+ print(f" {DIM}{cuda_libs_hint(missing)}{RESET}")
203
+ elif problem := checks.get("cuda_device_problem"):
204
+ _print_check("CUDA GPU", False, "will use CPU", optional=True)
205
+ print(f" {DIM}{problem}{RESET}")
206
+ else:
207
+ _print_check("CUDA GPU", checks["cuda"],
208
+ "will use GPU" if checks["cuda"] else "will use CPU (still fast)",
209
+ optional=True)
210
+
211
+
197
212
  def _print_tray_check() -> bool:
198
213
  from voiceio.tray import probe_availability
199
214
  tray_ok, tray_reason, tray_fix_hint = probe_availability()
@@ -131,6 +131,11 @@ def _check_system() -> dict:
131
131
  checks["cuda"] = "cuda" in ctranslate2.get_supported_compute_types("cuda")
132
132
  except Exception:
133
133
  checks["cuda"] = False
134
+ from voiceio.platform import missing_cuda_libs
135
+ checks["cuda_missing"] = missing_cuda_libs() # None: CTranslate2 sees no GPU
136
+ if checks["cuda_missing"] is None:
137
+ from voiceio.platform import cuda_device_problem
138
+ checks["cuda_device_problem"] = cuda_device_problem()
134
139
 
135
140
  # evdev keyboard access (Linux only): udev uaccess rule or input group
136
141
  checks["evdev_access"] = False
@@ -1 +0,0 @@
1
- __version__ = "1.18.1"
File without changes