python-voiceio 1.18.6__tar.gz → 1.18.8__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.6/python_voiceio.egg-info → python_voiceio-1.18.8}/PKG-INFO +2 -2
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/README.md +1 -1
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/pyproject.toml +1 -1
- {python_voiceio-1.18.6 → python_voiceio-1.18.8/python_voiceio.egg-info}/PKG-INFO +2 -2
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/python_voiceio.egg-info/SOURCES.txt +5 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_config.py +4 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_pipeline.py +58 -0
- python_voiceio-1.18.8/tests/test_learn_summary.py +268 -0
- python_voiceio-1.18.8/tests/test_telemetry.py +223 -0
- python_voiceio-1.18.8/voiceio/__init__.py +1 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/app.py +2 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/doctor.py +5 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/learn.py +22 -1
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/config.py +10 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/catalog.py +12 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/evaluate.py +8 -1
- python_voiceio-1.18.8/voiceio/learn/lastrun.py +86 -0
- python_voiceio-1.18.8/voiceio/learn/summary.py +237 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/report.py +7 -2
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/service.py +54 -1
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/steps.py +6 -1
- python_voiceio-1.18.8/voiceio/telemetry.py +162 -0
- python_voiceio-1.18.6/voiceio/__init__.py +0 -1
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/LICENSE +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/python_voiceio.egg-info/dependency_links.txt +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/python_voiceio.egg-info/entry_points.txt +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/python_voiceio.egg-info/requires.txt +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/python_voiceio.egg-info/top_level.txt +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/setup.cfg +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_announce.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_app_wiring.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_audio_quality.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_audio_source.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_backend_probes.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_cancel.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_cli.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_clipboard_read.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_clipboard_typer.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_commands.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_concurrency_lockdown.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_context_terms.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_corrections.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_cuda_setup_hint.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_dead_mic.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_decoders.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_engine.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_errorlog.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_evdev_uaccess.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_evdev_x11_optional.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_fallback.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_fcitx_bridge.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_feedback_stream.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_focus.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_gpu_fallback.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_health.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_hints.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_history.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_hotkey_modes.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_ibus_engine_limits.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_ibus_engine_listener.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_ibus_pending.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_ibus_pids.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_ibus_ping.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_ibus_session.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_ibus_textlimit.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_ibus_typer.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_idle_audio.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_install_env.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_clean.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_import.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_language.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_metrics.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_quiet.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_resume.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_review.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_learn_targets.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_llm.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_llm_api.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_mic_gain.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_modifier_guard.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_numbers.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_paste_last.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_pipeline.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_platform.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_postcorrect.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_postprocess.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_prebuffer.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_presence.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_prompt.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_quiet_audio.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_recorder_integration.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_replies.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_report.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_retention.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_robustness.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_security_hardening.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_server.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_service.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_setup.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_sherpa.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_spool.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_streaming.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_suggest.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_tokens.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_transcriber.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_tray.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_tts.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_typer_manager.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_vad.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_vocabulary.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_wordfreq.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/tests/test_worker_decode.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/__main__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/announce.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/audio_source.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/backends.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/configcmd.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/corrections.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/history.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/models.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/replies.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/servicecmd.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/uninstall.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/cli/vocab.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/clipboard_read.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/commands.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/consent.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/context_terms.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/bias.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/base.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/faster_whisper/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/faster_whisper/worker.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/fetch.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/lanes.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/sherpa.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/decoders/whispercpp.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/engine.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/core/pipeline.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/corrections.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/data/60-voiceio-uaccess.rules +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/data/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/demo.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/display.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/errorlog.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/feedback.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/focus.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/health.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/hints.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/history.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/hotkeys/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/hotkeys/base.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/hotkeys/chain.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/hotkeys/evdev.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/hotkeys/pynput_backend.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/hotkeys/socket_backend.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/ibus/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/ibus/engine.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/ibus/install.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/ibus/pending.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/ibus/session.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/ibus/textlimit.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/idle_audio.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/install_env.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/augment.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/clean.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/importer.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/metrics.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/quiet.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/review.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/store.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/teacher.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/learn/train.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/llm.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/llm_api.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/mic_gain.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/models/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/models/silero_vad.onnx +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/numbers.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/pidlock.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/platform.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/postcorrect.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/postprocess.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/power.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/presence.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/privacy.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/prompt.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/quiet_audio.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/recorder.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/replies.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/retention.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/server/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/server/__main__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/server/app.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/server/config.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/server/runtime.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/configfile.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/extras.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/hotkey.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/noninteractive.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/speech.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/system.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/setup/ui.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/sounds/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/sounds/alert.wav +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/sounds/commit.wav +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/sounds/start.wav +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/sounds/stop.wav +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/spool.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/streaming.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/suggest.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tokens.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tray/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tray/_icons.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tray/_indicator.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tray/_pystray.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tts/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tts/base.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tts/chain.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tts/edge_engine.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tts/espeak.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tts/piper_engine.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tts/player.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/tts/supertonic_engine.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/__init__.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/base.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/chain.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/clipboard.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/collecting.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/fcitx_bridge.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/ibus.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/manager.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/modifier_guard.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/paste.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/pynput_type.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/wtype.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/xdotool.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/typers/ydotool.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/ui.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/vad.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/vocab_stats.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/vocabulary.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/watchdog.py +0 -0
- {python_voiceio-1.18.6 → python_voiceio-1.18.8}/voiceio/wordfreq.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-voiceio
|
|
3
|
-
Version: 1.18.
|
|
3
|
+
Version: 1.18.8
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-voiceio
|
|
3
|
-
Version: 1.18.
|
|
3
|
+
Version: 1.18.8
|
|
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
|
|
@@ -185,10 +188,12 @@ voiceio/learn/augment.py
|
|
|
185
188
|
voiceio/learn/clean.py
|
|
186
189
|
voiceio/learn/evaluate.py
|
|
187
190
|
voiceio/learn/importer.py
|
|
191
|
+
voiceio/learn/lastrun.py
|
|
188
192
|
voiceio/learn/metrics.py
|
|
189
193
|
voiceio/learn/quiet.py
|
|
190
194
|
voiceio/learn/review.py
|
|
191
195
|
voiceio/learn/store.py
|
|
196
|
+
voiceio/learn/summary.py
|
|
192
197
|
voiceio/learn/teacher.py
|
|
193
198
|
voiceio/learn/train.py
|
|
194
199
|
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
|
|
@@ -511,3 +511,61 @@ def test_schedule_on_states_the_configured_threshold(monkeypatch, capsys):
|
|
|
511
511
|
monkeypatch.setattr(service, "learn_schedule_summary", lambda: "daily at 03:30")
|
|
512
512
|
cli.cmd_schedule(argparse.Namespace(state="on", at=None, every=None, auto_promote=False))
|
|
513
513
|
assert "retrains once 20+ clips are new" in capsys.readouterr().out
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
def test_maintain_records_the_run(monkeypatch):
|
|
517
|
+
"""`learn report` reads what the last run did from its own record."""
|
|
518
|
+
import argparse
|
|
519
|
+
|
|
520
|
+
from voiceio.cli import learn as cli
|
|
521
|
+
from voiceio.learn import lastrun
|
|
522
|
+
|
|
523
|
+
def label(a):
|
|
524
|
+
_clip("new.wav", 3, "x")
|
|
525
|
+
store.add_label("new.wav", [Segment(0, 3, "a new one")], "teacher:fake")
|
|
526
|
+
monkeypatch.setenv("INVOCATION_ID", "abc")
|
|
527
|
+
monkeypatch.setattr(cli, "cmd_label", label)
|
|
528
|
+
monkeypatch.setattr(cli, "_announce_learning", lambda min_new: None)
|
|
529
|
+
monkeypatch.setattr(train, "missing_train_deps", lambda: ["torch"])
|
|
530
|
+
cli.cmd_maintain(argparse.Namespace(min_new=5, base="small", epochs=1))
|
|
531
|
+
rec = lastrun.read()
|
|
532
|
+
assert rec["outcome"] == "labelled" and rec["labelled"] == 1 and rec["scheduled"] is True
|
|
533
|
+
assert rec["ended"] >= rec["started"]
|
|
534
|
+
|
|
535
|
+
monkeypatch.setattr(cli, "cmd_label", lambda a: None)
|
|
536
|
+
cli.cmd_maintain(argparse.Namespace(min_new=5, base="small", epochs=1))
|
|
537
|
+
assert lastrun.read()["outcome"] == "skipped"
|
|
538
|
+
|
|
539
|
+
def boom(a):
|
|
540
|
+
raise RuntimeError("teacher crashed")
|
|
541
|
+
monkeypatch.setattr(cli, "cmd_label", boom)
|
|
542
|
+
with pytest.raises(RuntimeError):
|
|
543
|
+
cli.cmd_maintain(argparse.Namespace(min_new=5, base="small", epochs=1))
|
|
544
|
+
assert lastrun.read()["outcome"] == "failed"
|
|
545
|
+
|
|
546
|
+
with pytest.raises(SystemExit): # a bad setting fails the run too
|
|
547
|
+
cli.cmd_maintain(argparse.Namespace(min_new=0, base="small", epochs=1))
|
|
548
|
+
assert lastrun.read()["outcome"] == "failed"
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
def test_maintain_records_a_retrain(monkeypatch):
|
|
552
|
+
import argparse
|
|
553
|
+
|
|
554
|
+
from voiceio.cli import learn as cli
|
|
555
|
+
from voiceio.learn import lastrun
|
|
556
|
+
_maintain_calls(monkeypatch)
|
|
557
|
+
cli.cmd_maintain(argparse.Namespace(min_new=1, base="small", epochs=1))
|
|
558
|
+
assert lastrun.read()["outcome"] == "retrained"
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
def test_when_idle_worker_leaves_the_record_to_its_parent(monkeypatch):
|
|
562
|
+
import argparse
|
|
563
|
+
|
|
564
|
+
from voiceio.cli import learn as cli
|
|
565
|
+
from voiceio.learn import lastrun, quiet
|
|
566
|
+
monkeypatch.setenv(quiet.WORKER_ENV, "1")
|
|
567
|
+
monkeypatch.setattr(cli, "cmd_label", lambda a: None)
|
|
568
|
+
monkeypatch.setattr(cli, "_announce_learning", lambda min_new: None)
|
|
569
|
+
monkeypatch.setattr(train, "missing_train_deps", lambda: ["torch"])
|
|
570
|
+
cli.cmd_maintain(argparse.Namespace(min_new=5, base="small", epochs=1, when_idle=True))
|
|
571
|
+
assert lastrun.read() is None
|
|
@@ -0,0 +1,268 @@
|
|
|
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 _systemctl(trigger: str, result: str = "success", *, unix_flag: bool = True):
|
|
161
|
+
"""A fake `systemctl show`: LastTriggerUSec prints `trigger`; without
|
|
162
|
+
`unix_flag` the --timestamp=unix flag is refused (systemd < 250)."""
|
|
163
|
+
import subprocess
|
|
164
|
+
calls = []
|
|
165
|
+
|
|
166
|
+
def fake(argv, **kw):
|
|
167
|
+
calls.append(argv)
|
|
168
|
+
if "--timestamp=unix" in argv and not unix_flag:
|
|
169
|
+
return subprocess.CompletedProcess(argv, 1, stdout="",
|
|
170
|
+
stderr="Unknown timestamp format: unix")
|
|
171
|
+
prop = argv[argv.index("-p") + 1]
|
|
172
|
+
out = {"LastTriggerUSec": trigger, "Result": result}[prop]
|
|
173
|
+
return subprocess.CompletedProcess(argv, 0, stdout=out + "\n")
|
|
174
|
+
return fake, calls
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def test_learn_last_run_parses_systemctl(monkeypatch):
|
|
178
|
+
fake, _ = _systemctl("@1763260212")
|
|
179
|
+
monkeypatch.setattr(service.subprocess, "run", fake)
|
|
180
|
+
assert service.learn_last_run() == (1763260212.0, "success")
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def test_learn_last_run_reads_the_local_time_form(monkeypatch):
|
|
184
|
+
"""systemd < 259 ignores --timestamp=unix for LastTriggerUSec and prints
|
|
185
|
+
the local-time form: the report said "never fired" for a timer that ran."""
|
|
186
|
+
when = NOW - 4 * DAY
|
|
187
|
+
shown = dt.datetime.fromtimestamp(when).strftime("%a %Y-%m-%d %H:%M:%S WET")
|
|
188
|
+
fake, _ = _systemctl(shown)
|
|
189
|
+
monkeypatch.setattr(service.subprocess, "run", fake)
|
|
190
|
+
assert service.learn_last_run() == (when, "success")
|
|
191
|
+
|
|
192
|
+
utc = dt.datetime.fromtimestamp(when, dt.timezone.utc).strftime("%a %Y-%m-%d %H:%M:%S UTC")
|
|
193
|
+
fake, _ = _systemctl(utc)
|
|
194
|
+
monkeypatch.setattr(service.subprocess, "run", fake)
|
|
195
|
+
assert service.learn_last_run() == (when, "success")
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def test_learn_last_run_without_the_unix_flag(monkeypatch):
|
|
199
|
+
"""systemd < 250 refuses --timestamp=unix: ask again without it."""
|
|
200
|
+
when = NOW - 4 * DAY
|
|
201
|
+
shown = dt.datetime.fromtimestamp(when).strftime("%a %Y-%m-%d %H:%M:%S CET")
|
|
202
|
+
fake, calls = _systemctl(shown, unix_flag=False)
|
|
203
|
+
monkeypatch.setattr(service.subprocess, "run", fake)
|
|
204
|
+
assert service.learn_last_run() == (when, "success")
|
|
205
|
+
assert not any("--timestamp=unix" in argv for argv in calls[1:])
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
@pytest.mark.parametrize("trigger", ["n/a", "", "@0", "0"])
|
|
209
|
+
def test_never_fired_has_no_result(monkeypatch, trigger):
|
|
210
|
+
"""A unit that never ran still says Result=success: that is not a result."""
|
|
211
|
+
fake, _ = _systemctl(trigger)
|
|
212
|
+
monkeypatch.setattr(service.subprocess, "run", fake)
|
|
213
|
+
assert service.learn_last_run() == (None, "")
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
def _learning_report(monkeypatch, last_run, tmp_path) -> dict:
|
|
217
|
+
monkeypatch.setattr(service, "has_systemd", lambda: True)
|
|
218
|
+
monkeypatch.setattr(service, "learn_timer_enabled", lambda: True)
|
|
219
|
+
monkeypatch.setattr(service, "learning_now", lambda: False)
|
|
220
|
+
monkeypatch.setattr(service, "learn_last_run", last_run)
|
|
221
|
+
return summary.build(NOW, config.Config(), log_paths=[tmp_path / "missing.log"])
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
def test_report_never_ran_has_a_null_result(monkeypatch, tmp_path):
|
|
225
|
+
out = _learning_report(monkeypatch, lambda: (None, ""), tmp_path)
|
|
226
|
+
assert out["learn_scheduled"] is True and out["learn_ran_7d"] is False
|
|
227
|
+
assert out["learn_last_run"] is None and out["learn_last_result"] is None
|
|
228
|
+
assert out["unavailable"]["learn_last_result"]
|
|
229
|
+
assert "never fired" in out["unavailable"]["learn_last_run"]
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def test_report_ran_four_days_ago(monkeypatch, tmp_path):
|
|
233
|
+
when = NOW - 4 * DAY
|
|
234
|
+
out = _learning_report(monkeypatch, lambda: (when, "success"), tmp_path)
|
|
235
|
+
assert out["learn_ran_7d"] is True
|
|
236
|
+
assert out["learn_last_run"] == dt.date.fromtimestamp(when).isoformat()
|
|
237
|
+
assert out["learn_last_result"] == "success"
|
|
238
|
+
assert "learn_last_run" not in out["unavailable"]
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def test_report_prefers_the_runs_own_record(monkeypatch, tmp_path):
|
|
242
|
+
from voiceio.learn import lastrun
|
|
243
|
+
when = NOW - 4 * DAY
|
|
244
|
+
lastrun.path().parent.mkdir(parents=True, exist_ok=True)
|
|
245
|
+
lastrun.path().write_text(json.dumps({"started": when, "ended": when + 5224,
|
|
246
|
+
"outcome": "labelled", "labelled": 724,
|
|
247
|
+
"scheduled": True}))
|
|
248
|
+
out = _learning_report(monkeypatch, lambda: pytest.fail("systemd not asked"), tmp_path)
|
|
249
|
+
assert out["learn_ran_7d"] is True
|
|
250
|
+
assert out["learn_last_run"] == dt.date.fromtimestamp(when).isoformat()
|
|
251
|
+
assert out["learn_last_result"] == "labelled"
|
|
252
|
+
|
|
253
|
+
# Killed before it could record an outcome (and not running now).
|
|
254
|
+
lastrun.path().write_text(json.dumps({"started": NOW - 9 * DAY, "ended": None,
|
|
255
|
+
"outcome": "running", "scheduled": True}))
|
|
256
|
+
out = _learning_report(monkeypatch, lambda: pytest.fail("systemd not asked"), tmp_path)
|
|
257
|
+
assert out["learn_ran_7d"] is False and out["learn_last_result"] == "unfinished"
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def test_report_record_without_systemd(monkeypatch, tmp_path):
|
|
261
|
+
from voiceio.learn import lastrun
|
|
262
|
+
lastrun.path().parent.mkdir(parents=True, exist_ok=True)
|
|
263
|
+
lastrun.path().write_text(json.dumps({"started": NOW - DAY, "ended": NOW - DAY + 60,
|
|
264
|
+
"outcome": "skipped", "labelled": 0}))
|
|
265
|
+
monkeypatch.setattr(service, "has_systemd", lambda: False)
|
|
266
|
+
out = summary.build(NOW, config.Config(), log_paths=[tmp_path / "missing.log"])
|
|
267
|
+
assert out["learn_scheduled"] is None and out["unavailable"]["learn_scheduled"]
|
|
268
|
+
assert out["learn_ran_7d"] is True and out["learn_last_result"] == "skipped"
|
|
@@ -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.8"
|
|
@@ -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.
|