python-voiceio 1.18.1__tar.gz → 1.18.2__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.
- {python_voiceio-1.18.1/python_voiceio.egg-info → python_voiceio-1.18.2}/PKG-INFO +1 -1
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/pyproject.toml +1 -1
- {python_voiceio-1.18.1 → python_voiceio-1.18.2/python_voiceio.egg-info}/PKG-INFO +1 -1
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/python_voiceio.egg-info/SOURCES.txt +1 -0
- python_voiceio-1.18.2/tests/test_cuda_setup_hint.py +173 -0
- python_voiceio-1.18.2/voiceio/__init__.py +1 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/health.py +6 -17
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/platform.py +86 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/steps.py +18 -3
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/system.py +5 -0
- python_voiceio-1.18.1/voiceio/__init__.py +0 -1
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/LICENSE +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/README.md +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/python_voiceio.egg-info/dependency_links.txt +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/python_voiceio.egg-info/entry_points.txt +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/python_voiceio.egg-info/requires.txt +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/python_voiceio.egg-info/top_level.txt +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/setup.cfg +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_announce.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_app_wiring.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_audio_quality.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_audio_source.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_backend_probes.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_cancel.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_cli.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_clipboard_read.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_clipboard_typer.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_commands.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_concurrency_lockdown.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_config.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_context_terms.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_corrections.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_dead_mic.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_decoders.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_engine.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_errorlog.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_evdev_uaccess.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_evdev_x11_optional.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_fallback.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_fcitx_bridge.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_feedback_stream.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_focus.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_gpu_fallback.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_health.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_hints.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_history.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_hotkey_modes.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_ibus_engine_limits.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_ibus_engine_listener.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_ibus_pending.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_ibus_pids.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_ibus_ping.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_ibus_session.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_ibus_textlimit.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_ibus_typer.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_idle_audio.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_install_env.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_clean.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_import.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_language.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_metrics.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_pipeline.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_quiet.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_resume.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_review.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_learn_targets.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_llm.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_llm_api.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_mic_gain.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_modifier_guard.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_numbers.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_paste_last.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_pipeline.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_platform.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_postcorrect.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_postprocess.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_prebuffer.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_presence.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_prompt.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_quiet_audio.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_recorder_integration.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_report.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_retention.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_robustness.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_security_hardening.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_server.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_service.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_setup.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_sherpa.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_spool.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_streaming.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_suggest.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_tokens.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_transcriber.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_tray.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_tts.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_typer_manager.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_vad.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_vocabulary.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_wordfreq.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/tests/test_worker_decode.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/__main__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/announce.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/app.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/audio_source.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/backends.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/configcmd.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/corrections.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/doctor.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/history.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/learn.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/models.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/servicecmd.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/uninstall.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/cli/vocab.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/clipboard_read.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/commands.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/config.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/consent.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/context_terms.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/bias.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/base.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/catalog.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/faster_whisper/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/faster_whisper/worker.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/fetch.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/lanes.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/sherpa.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/decoders/whispercpp.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/engine.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/core/pipeline.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/corrections.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/data/60-voiceio-uaccess.rules +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/data/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/demo.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/display.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/errorlog.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/feedback.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/focus.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/hints.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/history.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/hotkeys/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/hotkeys/base.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/hotkeys/chain.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/hotkeys/evdev.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/hotkeys/pynput_backend.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/hotkeys/socket_backend.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/ibus/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/ibus/engine.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/ibus/install.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/ibus/pending.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/ibus/session.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/ibus/textlimit.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/idle_audio.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/install_env.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/augment.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/clean.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/evaluate.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/importer.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/metrics.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/quiet.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/review.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/store.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/teacher.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/learn/train.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/llm.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/llm_api.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/mic_gain.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/models/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/models/silero_vad.onnx +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/numbers.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/pidlock.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/postcorrect.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/postprocess.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/power.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/presence.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/privacy.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/prompt.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/quiet_audio.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/recorder.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/report.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/retention.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/server/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/server/__main__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/server/app.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/server/config.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/server/runtime.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/service.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/configfile.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/extras.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/hotkey.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/noninteractive.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/speech.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/setup/ui.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/sounds/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/sounds/alert.wav +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/sounds/commit.wav +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/sounds/start.wav +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/sounds/stop.wav +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/spool.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/streaming.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/suggest.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tokens.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tray/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tray/_icons.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tray/_indicator.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tray/_pystray.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tts/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tts/base.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tts/chain.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tts/edge_engine.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tts/espeak.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tts/piper_engine.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tts/player.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/tts/supertonic_engine.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/__init__.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/base.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/chain.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/clipboard.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/collecting.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/fcitx_bridge.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/ibus.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/manager.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/modifier_guard.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/paste.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/pynput_type.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/wtype.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/xdotool.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/typers/ydotool.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/ui.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/vad.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/vocab_stats.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/vocabulary.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/watchdog.py +0 -0
- {python_voiceio-1.18.1 → python_voiceio-1.18.2}/voiceio/wordfreq.py +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
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() == ""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.18.2"
|
|
@@ -170,10 +170,6 @@ def _kde_input_method_warning(p: plat.Platform, kwinrc: Path | None = None) -> s
|
|
|
170
170
|
"System Settings → Keyboard → Virtual Keyboard → IBus Wayland, then log out and in.")
|
|
171
171
|
|
|
172
172
|
|
|
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
173
|
def _gpu_libs_warning() -> str:
|
|
178
174
|
"""Why Whisper can't use the GPU it sees, when that's a missing CUDA
|
|
179
175
|
library (a torch for another CUDA major, pulled in by the train extra,
|
|
@@ -184,23 +180,16 @@ def _gpu_libs_warning() -> str:
|
|
|
184
180
|
from voiceio.core.decoders.catalog import is_whisper
|
|
185
181
|
if cfg.device not in ("auto", "cuda") or not is_whisper(cfg.name):
|
|
186
182
|
return ""
|
|
187
|
-
|
|
188
|
-
if ctranslate2.get_cuda_device_count() == 0:
|
|
189
|
-
return ""
|
|
190
|
-
except Exception: # noqa: BLE001 — no faster-whisper, or no CUDA build
|
|
183
|
+
except Exception: # noqa: BLE001
|
|
191
184
|
return ""
|
|
192
|
-
|
|
193
|
-
missing
|
|
194
|
-
|
|
195
|
-
try:
|
|
196
|
-
ctypes.CDLL(lib)
|
|
197
|
-
except OSError:
|
|
198
|
-
missing.append(lib)
|
|
185
|
+
missing = plat.missing_cuda_libs()
|
|
186
|
+
if missing is None:
|
|
187
|
+
return plat.cuda_device_problem()
|
|
199
188
|
if not missing:
|
|
200
189
|
return ""
|
|
201
190
|
return (f"A GPU is present but {', '.join(missing)} can't be loaded, so Whisper "
|
|
202
|
-
"decodes on CPU.
|
|
203
|
-
"
|
|
191
|
+
f"decodes on CPU. {plat.cuda_libs_hint(missing)}. Or set "
|
|
192
|
+
"model.device = \"cpu\" in config.toml to stay on CPU.")
|
|
204
193
|
|
|
205
194
|
|
|
206
195
|
def _check_features() -> FeatureGroups:
|
|
@@ -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
|
|
@@ -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
|
-
|
|
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
|
|
File without changes
|
{python_voiceio-1.18.1 → python_voiceio-1.18.2}/python_voiceio.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|