@sentry/junior-tts 0.314.0 → 0.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/skills/tts/SKILL.md
CHANGED
|
@@ -10,7 +10,7 @@ Use the bundled `scripts/speech.mjs` from this directory. Node.js and the instal
|
|
|
10
10
|
## Workflow
|
|
11
11
|
|
|
12
12
|
1. Resolve the requested spoken text. For a sample of Junior's voice, use the bundled sample. Do not send unrelated private context or the full persona to the provider.
|
|
13
|
-
2. Use the default `junior-
|
|
13
|
+
2. Use the default `junior-v2` preset: an eager, slightly nervous young intern who stays dry about broken software. Use `--delivery plain` for serious or sensitive text. Do not present it as an imitation or recording of a real performer.
|
|
14
14
|
3. Write narration to a UTF-8 file. Keep each clip at 1–5000 characters. Generation spends Gateway credits. Do not generate extra variants without a request.
|
|
15
15
|
4. Generate to a fresh `.wav` path. Inspect an existing file before trying again. Do not automatically retry timeouts or failures: generation may already have spent credits.
|
|
16
16
|
5. Use `sendFiles` to deliver the returned path as `audio/wav`. Say it is synthetic narration. For a video, measure the new audio and pass it to the rendering workflow; speech generation alone does not update the video.
|
|
@@ -31,7 +31,7 @@ node scripts/speech.mjs --text-file /tmp/narration.txt --output /tmp/narration.w
|
|
|
31
31
|
node scripts/speech.mjs --text-file /tmp/incident.txt --output /tmp/incident.wav --delivery plain
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
Read `assets/junior-
|
|
34
|
+
Read `assets/junior-v2.json` when the user asks how the voice is defined. Read `assets/sample.txt` when previewing the sample script. The script sends delivery instructions separately from text. Do not prepend those directions to narration.
|
|
35
35
|
|
|
36
36
|
Results are JSON with path, bytes, MIME type, model, voice, profile, delivery, and synthetic status. Use `--help` for the command surface. No key argument is accepted.
|
|
37
37
|
|
package/skills/tts/SOURCES.md
CHANGED
|
@@ -8,6 +8,7 @@ Reviewed 2026-09-28.
|
|
|
8
8
|
- `packages/junior-datadog/plugin.yaml`: existing host-managed API-header pattern.
|
|
9
9
|
- `packages/junior/src/chat/plugins/auth/api-headers-broker.ts`: host-only secret resolution and missing-key behavior.
|
|
10
10
|
- `packages/junior/src/chat/pi/gateway-auth.ts`: core prefers OIDC. This plugin does not import core internals or claim that it shares that path.
|
|
11
|
+
- 2026-11-24 voice change: the `Achird` voice and intern delivery picked for Junior's podcast. `junior-v2` adapts that delivery for general narration and keeps the plain-delivery cue. It replaces `junior-v1` (`Puck`).
|
|
11
12
|
- Repo skill validator and skill-writer guidance: registration and artifact layout.
|
|
12
13
|
|
|
13
14
|
Class: integration-documentation. Shape: script-backed workflow. Plain instructions alone were rejected because paid requests and base64 audio need consistent validation. No SDK or new core runtime contract is needed. The script requires Junior's host proxy; it is not a standalone credential client.
|
package/skills/tts/SPEC.md
CHANGED
|
@@ -6,7 +6,7 @@ Create requested synthetic narration with a reusable original Junior voice. Use
|
|
|
6
6
|
|
|
7
7
|
## Scope and Contract
|
|
8
8
|
|
|
9
|
-
The manifest owns credentials and the approved domain. `scripts/speech.mjs` owns request validation, the REST protocol, audio decoding, and output files. `assets/junior-
|
|
9
|
+
The manifest owns credentials and the approved domain. `scripts/speech.mjs` owns request validation, the REST protocol, audio decoding, and output files. `assets/junior-v2.json` owns the voice identity. `assets/sample.txt` is a non-sensitive sample script. `SKILL.md` owns narration scope, delivery mode, retries, and sharing.
|
|
10
10
|
|
|
11
11
|
Out of scope: voice cloning, per-user key storage, OIDC support, transcription, video rendering, automatic retries, deployment changes, and alternate providers.
|
|
12
12
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "junior-v2",
|
|
3
|
+
"model": "google/gemini-3.8-flash-tts",
|
|
4
|
+
"voice": "Achird",
|
|
5
|
+
"instructions": "An original adult animated character: a young tech intern in their first month. Bright, eager, and a little nervous: quick and slightly rushed when excited, a tiny hesitant breath before the dry punchline, then quietly pleased with itself. Still deadpan about broken software; the humor is understated, never goofy, and aimed at software and awkward situations, never the listener. Natural contractions, brisk conversational pace, crisp consonants. Not childish, not shrill, not a cartoon, not a corporate presenter or trailer announcer. On serious or sensitive lines, drop the nerves and teasing and speak plainly. Read only the supplied text; do not add words, laughs, jokes, catchphrases, introductions, or sound effects. Do not imitate a named character or real performer."
|
|
6
|
+
}
|
|
@@ -3,7 +3,7 @@ import { resolve } from "node:path";
|
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
4
|
import { parseArgs } from "node:util";
|
|
5
5
|
|
|
6
|
-
const PROFILE = new URL("../assets/junior-
|
|
6
|
+
const PROFILE = new URL("../assets/junior-v2.json", import.meta.url);
|
|
7
7
|
const ENDPOINT = "https://ai-gateway.vercel.sh/v4/ai/speech-model";
|
|
8
8
|
const HELP = `Generate Gemini speech through Junior's host-managed AI Gateway key.
|
|
9
9
|
node scripts/speech.mjs --text-file FILE --output FILE.wav [--delivery playful|plain]
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "junior-v1",
|
|
3
|
-
"model": "google/gemini-3.8-flash-tts",
|
|
4
|
-
"voice": "Puck",
|
|
5
|
-
"instructions": "An original adult animated helper with a bright, lightly raspy mid-range voice. Warm, clear, and quietly confident. Speak at a brisk conversational pace with crisp consonants, short pauses, and natural contractions. Add a small mischievous grin and dry, gently snarky timing to playful lines; aim jokes at broken software and awkward situations, never the listener. Sound like a capable teammate, not a corporate presenter or trailer announcer. Keep the energy light, not shrill, aggressive, or childish. On serious or sensitive lines, drop the teasing and speak plainly. Read only the supplied text; do not add jokes, catchphrases, introductions, or sound effects. Do not imitate a named character or real performer."
|
|
6
|
-
}
|