[{"data":1,"prerenderedAt":456},["ShallowReactive",2],{"article-handy-speech-to-text-nixos-cosmic-egpu":3,"articles-100":316,"articles-10":435},{"id":4,"title":5,"alt":6,"body":7,"description":297,"extension":298,"image":299,"meta":300,"navigation":301,"path":302,"postDate":303,"published":304,"seo":305,"stem":306,"tags":307,"updated":314,"url":314,"__hash__":315},"blog\u002Fblog\u002Fhandy-speech-to-text-nixos-cosmic-egpu.md","Getting Handy speech-to-text to type on NixOS and COSMIC, and to use my eGPU","Laptop connected to an external GPU enclosure",{"type":8,"value":9,"toc":287},"minimark",[10,22,35,40,51,55,60,63,74,84,88,95,168,171,197,201,204,218,247,251,262,273,277,280,283],[11,12,13,14,21],"p",{},"I installed ",[15,16,20],"a",{"href":17,"rel":18},"https:\u002F\u002Fgithub.com\u002Fcjpais\u002FHandy",[19],"nofollow","Handy",", an offline speech-to-text app, on NixOS and pressed the shortcut. The tray icon stayed a hand and nothing happened. During onboarding the shortcut did fire and Handy copied the transcript to the clipboard, but the transcript never appeared in the onboarding textbox. After onboarding, nothing worked at all.",[11,23,24,25,29,30,34],{},"For context, here's my setup: NixOS with kernel 6.18, COSMIC on Wayland, Handy 0.10.1 with the ",[26,27,28],"code",{},"parakeet-unified-en-0.6b"," model, and an RTX 3060 Ti in a Thunderbolt enclosure (see ",[15,31,33],{"href":32},"\u002Fblog\u002Frazer-core-x-egpu-hotplug-nixos","the eGPU hotplug post",").",[36,37,39],"h2",{"id":38},"intel-was-5x-slower-than-the-egpu-but-slow-still-works","Intel was 5x slower than the eGPU, but slow still works",[11,41,42,43,46,47,50],{},"Initially I suspected the issue to be with my Intel iGPU. I thought it was so slow in converting speech to text that it ran into a timeout. So I benchmarked with ",[26,44,45],{},"handy -f clip.wav --json --repeat 3",", which transcribes a file without the shortcut or microphone. My session had ",[26,48,49],{},"VK_LOADER_DRIVERS_SELECT=*intel*"," set, so Handy only saw the Intel iGPU. For a 2.3 second clip, Intel took about 930 ms and the RTX 3060 Ti about 173 ms. Live in the app on Intel, 7 seconds of audio took 16.5 seconds. That is slow, but slow still produces text, and I was getting none.",[36,52,54],{"id":53},"the-real-causes-in-the-order-i-hit-them","The real causes, in the order I hit them",[56,57,59],"h3",{"id":58},"the-global-shortcut-only-fires-in-xwayland-windows","The global shortcut only fires in XWayland windows",[11,61,62],{},"Handy registers its shortcut through X11, which on Wayland only receives keys while an XWayland window has focus. That is why it worked during onboarding, when Handy's own window had focus.",[11,64,65,66,69,70,73],{},"The fix is to let the compositor own the shortcut and call Handy's CLI. On COSMIC, custom shortcuts live in ",[26,67,68],{},"~\u002F.config\u002Fcosmic\u002Fcom.system76.CosmicSettings.Shortcuts\u002Fv1\u002Fcustom",". Bind a key to this ",[26,71,72],{},"Spawn"," action:",[75,76,82],"pre",{"className":77,"code":79,"language":80,"meta":81},[78],"language-text","Spawn(\"handy --toggle-transcription\")\n","text","",[26,83,79],{"__ignoreMap":81},[56,85,87],{"id":86},"the-default-microphone-clipped-at-full-scale","The default microphone clipped at full scale",[11,89,90,91,94],{},"With the shortcut working, I still got an empty result, and Handy's log said ",[26,92,93],{},"0 voiced",". The default source was the laptop's built-in input. I recorded each source and measured it:",[75,96,100],{"className":97,"code":98,"language":99,"meta":81,"style":81},"language-bash shiki shiki-themes github-light github-dark","parecord --device=\u003Csource-name> test.wav\nffmpeg -i test.wav -af volumedetect -f null - 2>&1 | grep mean_volume\n","bash",[26,101,102,129],{"__ignoreMap":81},[103,104,107,111,115,119,122,125],"span",{"class":105,"line":106},"line",1,[103,108,110],{"class":109},"sScJk","parecord",[103,112,114],{"class":113},"sj4cs"," --device=",[103,116,118],{"class":117},"szBVR","\u003C",[103,120,121],{"class":113},"source-name",[103,123,124],{"class":117},">",[103,126,128],{"class":127},"sZZnC"," test.wav\n",[103,130,132,135,138,141,144,147,150,153,156,159,162,165],{"class":105,"line":131},2,[103,133,134],{"class":109},"ffmpeg",[103,136,137],{"class":113}," -i",[103,139,140],{"class":127}," test.wav",[103,142,143],{"class":113}," -af",[103,145,146],{"class":127}," volumedetect",[103,148,149],{"class":113}," -f",[103,151,152],{"class":127}," null",[103,154,155],{"class":127}," -",[103,157,158],{"class":117}," 2>&1",[103,160,161],{"class":117}," |",[103,163,164],{"class":109}," grep",[103,166,167],{"class":127}," mean_volume\n",[11,169,170],{},"The built-in input read a mean of about -0.6 dB, pinned at full scale. Switching the default to the Logitech BRIO fixed it:",[75,172,174],{"className":97,"code":173,"language":99,"meta":81,"style":81},"pactl set-default-source \u003Cbrio-source-name>\n",[26,175,176],{"__ignoreMap":81},[103,177,178,181,184,187,190,194],{"class":105,"line":106},[103,179,180],{"class":109},"pactl",[103,182,183],{"class":127}," set-default-source",[103,185,186],{"class":117}," \u003C",[103,188,189],{"class":127},"brio-source-nam",[103,191,193],{"class":192},"sVt8B","e",[103,195,196],{"class":117},">\n",[56,198,200],{"id":199},"pasting-cant-reach-wayland-native-windows","Pasting can't reach Wayland-native windows",[11,202,203],{},"Now Handy transcribed correctly but typed nothing, just like in onboarding, where the clipboard got the text and the textbox didn't. It pastes with Shift+Insert through XWayland, which can't reach Wayland-native windows (the same boundary as the shortcut).",[11,205,206,207,210,211,213,214,217],{},"COSMIC accepts virtual-keyboard input, so ",[26,208,209],{},"wtype"," can type directly. I added ",[26,212,209],{}," to the FHS environment that wraps Handy, then set these in ",[26,215,216],{},"~\u002F.local\u002Fshare\u002Fcom.pais.handy\u002Fsettings_store.json",":",[75,219,223],{"className":220,"code":221,"language":222,"meta":81,"style":81},"language-json shiki shiki-themes github-light github-dark","{\n  \"paste_method\": \"direct\",\n  \"typing_tool\": \"wtype\"\n}\n","json",[26,224,225,230,235,241],{"__ignoreMap":81},[103,226,227],{"class":105,"line":106},[103,228,229],{},"{\n",[103,231,232],{"class":105,"line":131},[103,233,234],{},"  \"paste_method\": \"direct\",\n",[103,236,238],{"class":105,"line":237},3,[103,239,240],{},"  \"typing_tool\": \"wtype\"\n",[103,242,244],{"class":105,"line":243},4,[103,245,246],{},"}\n",[56,248,250],{"id":249},"the-autostart-entry-bypassed-my-egpu-wrapper","The autostart entry bypassed my eGPU wrapper",[11,252,253,254,257,258,261],{},"I run Handy through ",[26,255,256],{},"egpu-prefer",", a small helper that forces the NVIDIA Vulkan driver. But ",[26,259,260],{},"~\u002F.config\u002Fautostart\u002FHandy.desktop"," launched the raw binary, so after a reboot Handy was back on Intel. The fix is one line:",[75,263,267],{"className":264,"code":265,"language":266,"meta":81,"style":81},"language-ini shiki shiki-themes github-light github-dark","Exec=egpu-prefer handy --start-hidden\n","ini",[26,268,269],{"__ignoreMap":81},[103,270,271],{"class":105,"line":106},[103,272,265],{},[36,274,276],{"id":275},"conclusion","Conclusion",[11,278,279],{},"Handy now types into COSMIC windows from a compositor shortcut, hears the right microphone, and starts on the eGPU. Every failure was on the trigger or the output side.",[11,281,282],{},"I haven't timed live dictation on the eGPU, so the numbers above come from the file benchmark. In daily use it feels instant.",[284,285,286],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}",{"title":81,"searchDepth":131,"depth":131,"links":288},[289,290,296],{"id":38,"depth":131,"text":39},{"id":53,"depth":131,"text":54,"children":291},[292,293,294,295],{"id":58,"depth":237,"text":59},{"id":86,"depth":237,"text":87},{"id":199,"depth":237,"text":200},{"id":249,"depth":237,"text":250},{"id":275,"depth":131,"text":276},"Handy's shortcut did nothing, and after I fixed that, nothing got typed. A Wayland shortcut, a microphone, the paste method and an autostart file caused it, and the GPU did not.","md","\u002Fimages\u002Fhandy-speech-to-text-issue.png",{},true,"\u002Fblog\u002Fhandy-speech-to-text-nixos-cosmic-egpu","2026-11-19",false,{"title":5,"description":297},"blog\u002Fhandy-speech-to-text-nixos-cosmic-egpu",[308,309,310,311,312,313],"troubleshooting","nixos","cosmic","wayland","speech-to-text","egpu",null,"d3iziljl_uGAbHLOeU1cGhOsfK2550cZ45rNGnyEJVM",[317,319,326,338,348,354,362,370,379,388,394,400,409,416,422,429],{"title":5,"description":297,"tags":318,"postDate":303,"path":302,"url":314},[308,309,310,311,312,313],{"title":320,"description":81,"tags":321,"postDate":325,"path":32,"url":314},"Getting a Razer Core X eGPU to work after login on NixOS, without timing the boot",[308,309,313,322,323,324],"thunderbolt","nvidia","linux","2026-11-18",{"title":327,"description":328,"tags":329,"postDate":336,"path":337,"url":314},"Stop stashing half-finished work: use Git worktrees and Worktrunk","Git worktrees keep separate branches checked out at once. Worktrunk automates per-worktree setup. The same isolation also works for parallel AI agents.",[330,331,332,333,334,335],"git","worktrees","worktrunk","developer productivity","command line","workflow","2026-08-16","\u002Fblog\u002Fworktrees-with-worktrunk",{"title":339,"description":340,"tags":341,"postDate":346,"path":347,"url":314},"Self-Hosting my Git forge with Forgejo","Why I moved away from GitHub and chose a lightweight, community-driven alternative",[342,343,344,345],"Homelab","Open source","Self-hosting","Workflow","2026-04-29","\u002Fblog\u002Fself-hosting-my-git-forge",{"title":349,"description":350,"tags":351,"postDate":352,"path":353,"url":314},"Curating my own reading and discovery feed with RSS","Taking concrete steps away from algorithms using FreshRSS, self-hosted tools, and a pipeline built for me.",[342,343,344,345],"2026-02-08","\u002Fblog\u002Freading-and-discovery-feed-curation",{"title":355,"description":356,"tags":357,"postDate":360,"path":361,"url":314},"Fixing my broken Docker Immich+Traefik setup","Photo indexing failed in my Immich+Traefik setup. I'd misconfigured my Docker networking. Here's how I figured it out and what I changed.",[358,359],"homelab","networking","2025-10-31","\u002Fblog\u002Ffixing-docker-immich-traefik-setup",{"title":363,"description":364,"tags":365,"postDate":368,"path":369,"url":314},"Quickly outline large JSON responses with a custom jq function","Use jq to automatically map and visualize the structure of large JSON responses, perfect for exploring undocumented endpoints.",[366,222,334,367,333],"jq","automation","2025-10-19","\u002Fblog\u002Fjq-json-outline",{"title":371,"description":372,"tags":373,"postDate":377,"path":378,"url":314},"Why I added RSS feeds to my blog (and how I did it in Nuxt 3)","How I built RSS and Atom feed support for my Nuxt 3 website to let readers follow my content without social media algorithms.",[374,375,376],"Nuxt","web development","tutorial","2025-08-31","\u002Fblog\u002Fsetting-up-rss-atom-feeds-nuxt3",{"title":380,"description":381,"tags":382,"postDate":386,"path":387,"url":314},"Revisiting my Stream Deck for music control","How I turned my neglected Stream Deck into a useful tool for controlling YouTube Music without breaking my workflow.",[383,384,367,385],"productivity","Developer Productivity","home-office","2025-06-07","\u002Fblog\u002Fstream-deck-youtube-music",{"title":389,"description":390,"tags":391,"postDate":392,"path":393,"url":314},"fzf + fabric: Smart selection for LLM patterns and models","Enhance your experience with fabric, the AI prompt tool, by using interactive selection for patterns and models.",[333],"2025-05-24","\u002Fblog\u002Fai-pattern-selection-in-fabric",{"title":395,"description":396,"tags":397,"postDate":398,"path":399,"url":314},"Effortless configuration syncing with GNU Stow and Git: a software engineer's workflow","Use GNU Stow and Git to keep config files in sync across Linux and macOS. Keep them in one repo with full history, and set up new machines in minutes.",[333],"2025-01-12","\u002Fblog\u002Feffortless-configuration-syncing-with-gnu-stow",{"title":401,"description":402,"tags":403,"postDate":407,"path":408,"url":314},"My 2023 travels: A visual journey","Looking back at the best pictures from my travel adventures in 2023",[404,405,406],"personal","travel","photography","2024-01-01","\u002Fblog\u002F2023-travels-visual-journey",{"title":410,"description":411,"tags":412,"postDate":414,"path":415,"url":314},"Re-living memories through proper media organization","Organizing media such as photos and videos can bring back cherished memories and help relive them. Here's my approach to organizing my digital media collection.",[404,413],"technology","2023-02-06","\u002Fblog\u002Freliving-memories-through-proper-media-organization",{"title":417,"description":418,"tags":419,"postDate":420,"path":421,"url":314},"Looking back: My 2022 in review","From new adventures and memories to lessons learned and personal growth, this year has been a year of discovery. Here's my 2022 in review.",[404,405],"2022-12-31","\u002Fblog\u002F2022-in-review",{"title":423,"description":424,"tags":425,"postDate":427,"path":428,"url":314},"Git and the command-line: Take your workflow to the next level","Some tips on how to improve your Git productivity using the command-line",[426,333],"programming","2022-12-18","\u002Fblog\u002Fgit-and-command-line-next-level-workflow",{"title":430,"description":431,"tags":432,"postDate":433,"path":434,"url":314},"Hiking Tsho-Rolpa lake trail in Nepal","Details of my hiking journey to the Tsho-Rolpa glacial lake in Nepal 🇳🇵, situated at 4,580m from sea level",[405],"2022-01-22","\u002Fblog\u002Fhiking-tsho-rolpa-lake-trail-in-nepal",[436,438,440,442,444,446,448,450,452,454],{"title":5,"description":297,"tags":437,"postDate":303,"path":302,"url":314},[308,309,310,311,312,313],{"title":320,"description":81,"tags":439,"postDate":325,"path":32,"url":314},[308,309,313,322,323,324],{"title":327,"description":328,"tags":441,"postDate":336,"path":337,"url":314},[330,331,332,333,334,335],{"title":339,"description":340,"tags":443,"postDate":346,"path":347,"url":314},[342,343,344,345],{"title":349,"description":350,"tags":445,"postDate":352,"path":353,"url":314},[342,343,344,345],{"title":355,"description":356,"tags":447,"postDate":360,"path":361,"url":314},[358,359],{"title":363,"description":364,"tags":449,"postDate":368,"path":369,"url":314},[366,222,334,367,333],{"title":371,"description":372,"tags":451,"postDate":377,"path":378,"url":314},[374,375,376],{"title":380,"description":381,"tags":453,"postDate":386,"path":387,"url":314},[383,384,367,385],{"title":389,"description":390,"tags":455,"postDate":392,"path":393,"url":314},[333],1795099619070]