@runtypelabs/voice 0.2.3 → 0.2.4
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/README.md +8 -2
- package/package.json +9 -10
package/README.md
CHANGED
|
@@ -108,8 +108,14 @@ also need that widget release and a bundled adapter supplied by their host.
|
|
|
108
108
|
The agent's saved mode arrives in `session_config` and remains authoritative:
|
|
109
109
|
|
|
110
110
|
The client requests `voiceProtocol=runtype-browser-v1` when connecting. The API routes
|
|
111
|
-
Cloudflare calls using this protocol to its PCM browser engine
|
|
112
|
-
|
|
111
|
+
Cloudflare calls using this protocol to its PCM browser engine only when the operator's
|
|
112
|
+
`enable-voice-browser-engine-cloudflare` gate is enabled. When disabled, the API rejects
|
|
113
|
+
new v1 calls with HTTP 503 (`VOICE_BROWSER_ENGINE_DISABLED`) before creating a session.
|
|
114
|
+
Operators can enable the gate for the organization or configure ElevenLabs voice.
|
|
115
|
+
Browsers expose rejected WebSocket handshakes as a connection failure, without the HTTP
|
|
116
|
+
response body. The legacy Cloudflare Durable Object uses a different protocol and
|
|
117
|
+
remains available to compatible older clients. Existing calls keep their selected
|
|
118
|
+
engine. ElevenLabs supports this client with either value of its portable-engine gate.
|
|
113
119
|
|
|
114
120
|
- `none`: speaking does not clear playback; `canCancel` is false.
|
|
115
121
|
- `cancel`: tap `cancelResponse()` to clear local playback immediately and send `cancel`, then speak again.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/voice",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Runtype browser voice client with React and Persona adapters",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,14 +30,6 @@
|
|
|
30
30
|
"README.md",
|
|
31
31
|
"LICENSE"
|
|
32
32
|
],
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build": "tsup",
|
|
35
|
-
"dev": "tsup --watch",
|
|
36
|
-
"test": "vitest run",
|
|
37
|
-
"typecheck": "tsgo --noEmit",
|
|
38
|
-
"lint": "eslint .",
|
|
39
|
-
"prepublishOnly": "pnpm build"
|
|
40
|
-
},
|
|
41
33
|
"peerDependencies": {
|
|
42
34
|
"react": ">=18 <20",
|
|
43
35
|
"@runtypelabs/persona": ">=4.22.0 <5"
|
|
@@ -69,5 +61,12 @@
|
|
|
69
61
|
},
|
|
70
62
|
"publishConfig": {
|
|
71
63
|
"access": "public"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsup",
|
|
67
|
+
"dev": "tsup --watch",
|
|
68
|
+
"test": "vitest run",
|
|
69
|
+
"typecheck": "tsgo --noEmit",
|
|
70
|
+
"lint": "eslint ."
|
|
72
71
|
}
|
|
73
|
-
}
|
|
72
|
+
}
|