Voice: transcribe locally without a Soniox key
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 12/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Start with the ASRProvider interface in apps/voice-runtime/src/asr.ts and the existing Soniox implementation in soniox.ts, then see where agent.ts constructs the provider and throws without SONIOX_API_KEY. The worker startup gate in apps/node-services/src/voice/service.ts (workerKeys) and the model packages in model-packages.ts are the other entry points. The scope and engine choice are still open questions in the thread, so confirm them with maintainers before writing code.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
Linger's core promise is that it runs fully on your PC, but voice transcription is the one core feature that always needs a cloud provider. docs/voice.md says recording and dictation need a Soniox key, and apps/voice-runtime/src/agent.ts throws Voice transcription requires SONIOX_API_KEY before the ASR worker can start. Someone who is offline, wants audio to stay on the device, or does not want a Soniox account cannot dictate or get a meeting transcript, even though the model-heavy parts of the product already run locally.
Proposal
Let transcription run on the computer, without changing what the user sees:
- With no Soniox key, dictation and meeting transcripts use a local engine, so voice works offline and audio never leaves the machine.
- With a Soniox key, Soniox stays the default for cloud quality and speaker diarization, or the user picks the source in Settings.
- The engine and its weights install the same way the voice VAD packages already do (
apps/node-services/src/model-packages.ts,models.json, first-use download with SRI and region ordering), CPU-only, no GPU requirement.
Technical shape (paths verified on main):
apps/voice-runtime/src/asr.tsalready defines the seam:ASRProvider.open()returns anASRStreamwithpartial/final/utterance_end/turn_finalizedevents, word offsets, and optional speaker IDs.- Add
LocalASRProvider implements ASRProvidernext tosoniox.ts, wrapping a streaming CPU engine (sherpa-onnx streaming zipformer is the natural fit; whisper.cpp is the batch alternative), and reuseRecoveringASRStreamfor worker-restart replay. agent.tscurrently constructsnew SonioxASRProvider(...)directly; add a small factory that picks local or Soniox from config.apps/node-services/src/voice/service.tsstarts theasrandrecorderworkers only when a Soniox key exists (workerKeys); local mode must start them without a key. TeamHub's provider-keys response (or a capability field) tells node-services that local transcription is available.- Add the engine and model to the
voicemodel package group so desktop and image installs fetch it on first use.
Phasing
- Dictation only, CPU, one streaming model that covers Chinese and English, no settings UI; prove it with synthetic PCM through the existing voice test harness.
- Meeting recording and transcript through
recorder-agent; local diarization is a follow-up, so speaker labels are absent or single-speaker at first. - Settings: "Transcription: On this computer / Soniox", language hints, automatic fallback, and the package download in the desktop installer.
Alternatives
- Keep Soniox-only and document voice as cloud. This leaves the local-first promise incomplete and keeps on-device audio impossible.
- Batch whisper.cpp on recorded chunks: simpler and stronger on long meetings, but it has no partial transcripts and adds latency to dictation.
- Bundle a local ASR service as a separate sidecar (for example a Python/localmodels server) instead of a Node provider: more moving parts, while the existing worker and health model already provides process isolation.
Open questions
- Is local transcription in scope, and which engine and licence is acceptable for redistribution?
- Automatic fallback when no key is set, or an explicit Setting?
- Is dictation the right first milestone, or meeting transcripts?
- Local models are roughly 50-300 MB; does that fit the desktop installer download flow (#252)?
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.8k
- Forks
- 360
- Merge medio
- 8 h 10 min
- PR fusionados (30 d)
- 540
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de simplexai-labs/linger
-
bug
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
simplexai-labs/linger#904 ·
Los mantenedores suelen responder en 1 día
-
Local model JIT load waits ~22 s for a concurrency probe that always ends unmeasured and is never cachedPosiblemente ocupada @oldwinter53 la tomó hoy. Abiertobug
simplexai-labs/linger#896 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
feat(agents): let an Agent choose runtime, model and reasoning effort when it creates an AgentAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
simplexai-labs/linger#888 ·
Los mantenedores suelen responder en 1 día
-
Hand-patches to the protected runtime are silently discarded on upgrade, with no supported overrideAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
simplexai-labs/linger#883 ·
Los mantenedores suelen responder en 1 día
-
Daily memory report silently never runs: 5-minute step ceiling plus a stuck in-memory #scheduled setAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
simplexai-labs/linger#881 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de simplexai-labs/linger
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MetaMask/eth-phishing-detect#317371 ·
Los mantenedores suelen responder en 1 día
-
android:player ios:player
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
free_port can hand one port to two callers, so the fixed-port http tests fail in parallel runsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
erkamyaman/rust-anything#963 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ZdruzenieSTROM/webstrom-frontend#934 ·
Los mantenedores suelen responder en 1 día
-
bug(worker): detector run is marked failed and never retried when span download failsPosiblemente ocupada @jagrutgarg la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
traceroot-ai/traceroot#3434 · 1 comentario ·
Los mantenedores suelen responder en 1 día