diff --git a/skills/hyperframes-media/SKILL.md b/skills/hyperframes-media/SKILL.md index 444dfcc0a..3ddc4c49b 100644 --- a/skills/hyperframes-media/SKILL.md +++ b/skills/hyperframes-media/SKILL.md @@ -5,9 +5,7 @@ description: Asset preprocessing for HyperFrames compositions — text-to-speech # HyperFrames Media Preprocessing -Three CLI commands that produce assets for compositions: `tts` (speech), `transcribe` (timestamps), and `remove-background` (transparent video). Each downloads a model on first run and caches it under `~/.cache/hyperframes/`. - -Run them before composing — drop the output file into the project, then reference it from the composition HTML. +Three CLI commands that produce assets for compositions: `tts` (speech), `transcribe` (timestamps), and `remove-background` (transparent video). Each downloads a model on first run and caches it under `~/.cache/hyperframes/`. Drop the output into the project, then reference it from the composition HTML — see the `hyperframes` skill for the audio/video element conventions. ## Text-to-Speech (`tts`) @@ -31,7 +29,16 @@ Match voice to content. Default is `af_heart`. | Documentation | `bf_emma`/`bm_george` | Clear British English, formal | | Casual / social | `af_heart`/`af_sky` | Approachable, natural | -8 languages supported: EN, JP, ZH, KO, FR, DE, IT, PT. Run `--list` for the full set. +### Multilingual + +Voice IDs encode language in the first letter: `a`=American English, `b`=British English, `e`=Spanish, `f`=French, `h`=Hindi, `i`=Italian, `j`=Japanese, `p`=Brazilian Portuguese, `z`=Mandarin. The CLI auto-detects the phonemizer locale from the prefix — no `--lang` needed when the voice matches the text. + +```bash +npx hyperframes tts "La reunión empieza a las nueve" --voice ef_dora --output es.wav +npx hyperframes tts "今日はいい天気ですね" --voice jf_alpha --output ja.wav +``` + +Use `--lang` only to override auto-detection (stylized accents). Valid codes: `en-us`, `en-gb`, `es`, `fr-fr`, `hi`, `it`, `pt-br`, `ja`, `zh`. Non-English phonemization requires `espeak-ng` system-wide (`brew install espeak-ng` / `apt-get install espeak-ng`). ### Speed @@ -44,24 +51,9 @@ Match voice to content. Default is `af_heart`. For more than a few paragraphs, write to a `.txt` file and pass the path. Inputs over ~5 minutes of speech may benefit from splitting into segments. -### Use in a Composition - -Reference the generated audio as a standard `