fix(cli): speak a narration line as written in local voice and tts (#8706)

* fix(cli): speak a narration line as written in local voice and tts

The local voice provider hands the line to tts in a file of its own, so a
line that names a .txt file or starts with dashes is spoken, not read or
taken as an option. tts and heygen-tts treat a word starting with two path
separators as text without looking it up.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(skills): pass the audio skill's own text file to tts with --text-file

Its temp folder can be on a network share, and tts no longer reads such a
path when it is given as a plain word.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): remove the local voice run folder when its text file cannot be written

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): refuse a .txt path on a network share instead of speaking it

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): name the share paths outright so the tts cases hold on Windows

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
James Russo
2026-11-24 13:51:57 +00:00
committed by GitHub
co-authored by Claude Fable 5.2
parent 07e03e8fed
commit 99ccd54c63
12 changed files with 244 additions and 12 deletions
+6
View File
@@ -617,8 +617,14 @@ npx hyperframes tts script.txt
npx hyperframes tts --list
```
A single argument that names an existing local `.txt` file is read; anything
else is spoken. A `.txt` path that starts with two slashes or backslashes
(`\\server\share\script.txt`) is refused: to read a file on a network share,
pass it with `--text-file`.
| Flag | Description |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `--text-file` | Read the text from this file, whatever its path looks like |
| `--output, -o` | Output path (default `speech.wav` in the current directory) |
| `--voice, -v` | Voice ID. Run `--list` to see them all. |
| `--speed, -s` | Speed multiplier (default 1.0) |