@streamoji/aitwin 0.4.6 → 0.4.7

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/dist/index.d.ts CHANGED
@@ -24,6 +24,11 @@ export declare type AiTwinHandle = {
24
24
  * Null until a voice session (or TTS playback) has primed audio.
25
25
  */
26
26
  getVoiceStream: () => MediaStream | null;
27
+ /** Mute speaker output (getVoiceStream stays hot for external mixing). */
28
+ setMuted: (muted: boolean) => void;
29
+ isMuted: () => boolean;
30
+ /** Persona / knowledge context id from getAiTwin, when loaded via cloud id. */
31
+ getPersonaId: () => string | null;
27
32
  };
28
33
 
29
34
  export declare class AiTwinNotFoundError extends Error {
@@ -139,6 +144,9 @@ export declare type AvatarTtsLipsyncController = {
139
144
  setLipsyncWarmupHold: (enabled: boolean, shouldHold?: () => boolean) => void;
140
145
  /** Live MediaStream of the synthesized voice for recording/mixing (null until audio is primed). */
141
146
  getVoiceStream: () => MediaStream | null;
147
+ /** Mute speaker output (getVoiceStream stays hot for external mixing). */
148
+ setMuted: (muted: boolean) => void;
149
+ isMuted: () => boolean;
142
150
  setPlaybackSpeed: (rate: number) => void;
143
151
  getPlaybackSpeed: () => number;
144
152
  subscribe: (listener: () => void) => () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoji/aitwin",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Embeddable React AI twin face with TTS lipsync",
5
5
  "type": "module",
6
6
  "main": "./dist/aitwin.cjs",