comparison dictation/server.py @ 282:6bd4a3990696 default tip

Add cross-platform canvas orchestration and typed composer Enable native ARM dependencies, macOS Copilot orchestration, portable service supervision, CPU dictation, and a shared N-key speak-or-type composer. Co-authored-by: Copilot <[email protected]> Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
author MrJuneJune <me@mrjunejune.com>
date Thu, 20 Aug 2026 20:45:25 -0700
parents 78699f810817
children
comparison
equal deleted inserted replaced
281:c57149ad216e 282:6bd4a3990696
106 transcriber: Transcriber | None = None, 106 transcriber: Transcriber | None = None,
107 ) -> FastAPI: 107 ) -> FastAPI:
108 resolved_config = config or DictationConfig.from_environment() 108 resolved_config = config or DictationConfig.from_environment()
109 resolved_transcriber = transcriber or FasterWhisperTranscriber( 109 resolved_transcriber = transcriber or FasterWhisperTranscriber(
110 resolved_config.model_dir, 110 resolved_config.model_dir,
111 resolved_config.device,
111 resolved_config.compute_type, 112 resolved_config.compute_type,
112 ) 113 )
113 service = DictationService(resolved_config, resolved_transcriber) 114 service = DictationService(resolved_config, resolved_transcriber)
114 web_root = Path(__file__).parent / "web" 115 web_root = Path(__file__).parent / "web"
115 116