@streamoji/aitwin 0.6.0 → 0.6.2
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 +5 -4
- package/dist/aitwin.cjs +6 -6
- package/dist/aitwin.js +2445 -2367
- package/dist/index.d.ts +30 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,8 +96,8 @@ Provide **`id`** (cloud twin), **`avatarId`/`faceId`** (R2 custom face), or **`a
|
|
|
96
96
|
| `faceId` | Alias for `avatarId` (same CDN path) |
|
|
97
97
|
| `assets` | `{ twinBase, binBase, encrypted }` — skip getAiTwin (lab / custom CDN) |
|
|
98
98
|
| `authToken` | Bearer for TTS + encrypted assets; omitted → dev `getAuthToken` |
|
|
99
|
-
| `ttsEngineId` | TTS engine
|
|
100
|
-
| `voiceId` |
|
|
99
|
+
| `ttsEngineId` | TTS engine (default Cartesia). Optional if `voiceId` is packed as `engine:voice` |
|
|
100
|
+
| `voiceId` | Voice id, or packed `ttsEngineId:voiceId` (e.g. `visemetts:eve`) |
|
|
101
101
|
| `speakingRate` | Default `0.85` |
|
|
102
102
|
| `idleHandoffHoldMs` | Milliseconds to hold still sil after speech before resuming the idle video loop (default `200`) |
|
|
103
103
|
| `showErrorOverlay` | Canvas error overlay (default `true`) |
|
|
@@ -156,7 +156,7 @@ Applies to both `speakText()` and voice `connect()` playback.
|
|
|
156
156
|
| `disconnect()` | End voice session |
|
|
157
157
|
| `isConnected()` | Whether voice WebSocket is active |
|
|
158
158
|
| `stop()` | Stop playback and return toward idle |
|
|
159
|
-
| `setTtsEngineId(engineId)` | Switch Google / Inworld / Cartesia |
|
|
159
|
+
| `setTtsEngineId(engineId)` | Switch Google / Inworld / Cartesia / visemetts |
|
|
160
160
|
| `renderViseme(to, options?)` | Manual viseme transition (lab) |
|
|
161
161
|
| `isReady()` | Whether face assets are loaded |
|
|
162
162
|
| `getStatus()` | Current lipsync status |
|
|
@@ -220,7 +220,8 @@ WebSocket URL: `wss://<api-host>/ws/voice?<query>`. The SDK builds it from `conn
|
|
|
220
220
|
|-------------|----------|--------|
|
|
221
221
|
| `authToken` | Yes | Same JWT as SSE `Authorization: Bearer` (`client_…` from `getAuthToken`) |
|
|
222
222
|
| `tenant` | Yes | Always `aiTwin` |
|
|
223
|
-
| `voiceId` | No | Cartesia UUID
|
|
223
|
+
| `voiceId` | No | Cartesia UUID, visemetts name (`eve`), or packed `engine:voice` |
|
|
224
|
+
| `ttsEngineId` | No | `visemetts` or Cartesia id; also parsed from packed `voiceId` |
|
|
224
225
|
| `personaId` | No | getAiTwin `knowledgeContextId` when present |
|
|
225
226
|
| `speaking_rate` | No | `0.5`–`1.5`, default `0.85` |
|
|
226
227
|
| `tts_stream` | No | Default `true` (server TTS + `avatar_audio_chunk`) |
|