media-use transcribe.mjs: add --language so non-English audio isn't translated by small.en
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
- Área
- audio-video-rtc, cli
Línea de trabajo
Empieza con skills/media-use/scripts/transcribe.mjs y sigue cómo se analizan las opciones y se pasan al comando hyperframes transcribe. Después, lee skills/media-use/audio/references/transcribe.md para consultar las indicaciones existentes sobre modelos e idiomas. El trabajo estará terminado cuando el script acepte un valor opcional para --language, lo pase a la CLI y documente cómo usarlo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
skills/media-use/scripts/transcribe.mjs has no way to pass a language to the CLI, so non-English audio outside Parakeet's 25 languages (Thai, Japanese, Chinese, Korean, ...) comes back translated into English.
- Its options are
--input,--out,--engine,--model,--jsonand--help(transcribe.mjs#L32-L43).--modelonly reaches parakeet-mlx (#L113). - The CLI fallback runs
hyperframes transcribe <input> --dir <tmp> --engine <engine> --jsonwith no--languageand no--model(#L137). - With no language, the CLI uses its default whisper model
small.en(packages/cli/src/whisper/manager.ts,DEFAULT_MODEL), which is English-only. whisper.cpp then translates Thai speech into English instead of transcribing it.
The CLI itself handles this well: --language th makes initialModelForLanguage swap small.en for multilingual small, and pickRunner routes to whisper because parakeetSpeaks("th") is false. The skill script just never passes it.
Repro (v0.9.20, macOS):
say -v Kanya -o th.aiff "สวัสดีครับ วันนี้อากาศดีมาก"
ffmpeg -i th.aiff -ar 16000 -ac 1 th.wav
npx hyperframes transcribe th.wav --dir . --json # small.en, which skills/hyperframes/references/captions.md says translates non-English speech
npx hyperframes transcribe th.wav --dir . --json --language th # engine whisper, model small: Thai text
node skills/media-use/scripts/transcribe.mjs --input th.wav # no way to get the second result
Proposed solution
Add a --language option to transcribe.mjs and forward it to the CLI call:
language: { type: "string" }, // ISO 639-1, e.g. th, ja; omit for auto
// ...
["hyperframes", "transcribe", inputPath, "--dir", workDir, "--engine", cliEngine, "--json",
...(args.language ? ["--language", args.language] : [])],
Then mention it in skills/media-use/audio/references/transcribe.md next to the CLI's --model small --language <code> guidance, so an agent that already knows the language can pass it through the script too.
Alternatives considered
- A shell wrapper around
npxthat appends--language: it works for typed commands, butexecFileSyncskips shell functions, so it never reaches this script. - An env var such as
HYPERFRAMES_TRANSCRIBE_LANGUAGEread by the CLI: this would cover every caller, but it's a bigger change than one forwarded flag.
Additional context
hyperframes CLI 0.9.20, installed as the Claude Code plugin. Same code on main at 896a77c.
- Lenguaje dominante
- TypeScript
- Estrellas
- 54.1k
- Forks
- 4.9k
- Merge medio
- 7 h
- PR fusionados (30 d)
- 799
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 heygen-com/hyperframes
-
render --start/--end applies the 2 GB Lambda plan cap to local rendersPosiblemente ocupada @ump45nose la tomó hace 5 días. Abiertobug difficulty/easy triage/ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
heygen-com/hyperframes#7035 ·
Los mantenedores suelen responder en 1 día
-
[CLI] Reject non-integer tokens for distributed render flagsPosiblemente ocupada @pqminh27 la tomó hace 7 días. Abiertoarea/tool bug difficulty/easy triage/ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
heygen-com/hyperframes#6889 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Segmented capture always fails with `--format mov`Posiblemente ocupada @DaKaufeeBoii la tomó hace 8 días. Abiertobug difficulty/easy triage/ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
heygen-com/hyperframes#6481 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Timeline: show a clip's full name when its label is cut offPosiblemente ocupada @DanielMcSheehy la tomó hace 21 días. Abiertodesktop-candidate difficulty/easy enhancement good first issue help wanted triage/ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
heygen-com/hyperframes#5582 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Studio: press ? to open the keyboard shortcuts panelPosiblemente ocupada @B-Payal la tomó hace 25 días. Abiertodesktop-candidate difficulty/easy enhancement good first issue help wanted triage/ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
heygen-com/hyperframes#5580 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de heygen-com/hyperframes
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
backnotprop/plannotator#2914 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/vscode-containers#655 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 comentario ·