@avaturn-live/web-sdk 0.3.7 → 0.3.8
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/type.d.ts +2 -1
- package/package.json +1 -1
package/dist/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DailyDeviceInfos } from "@daily-co/daily-js";
|
|
1
|
+
import { DailyDeviceInfos, DailyTrackState } from "@daily-co/daily-js";
|
|
2
2
|
export type AvatarSpeechEvent = "avatar_started_speaking" | "avatar_ended_speaking" | "avatar_started_speaking_phrase" | "avatar_ended_speaking_phrase";
|
|
3
3
|
export type AvaturnHeadEvent = "init" | "task" | "dispose" | "idle" | "local_audio_change" | "local_mic_state_change" | AvatarSpeechEvent;
|
|
4
4
|
export interface AvaturnEventData extends Record<AvaturnHeadEvent, any> {
|
|
@@ -17,6 +17,7 @@ export interface AvaturnEventData extends Record<AvaturnHeadEvent, any> {
|
|
|
17
17
|
type: "avatar_ended_speaking_phrase";
|
|
18
18
|
};
|
|
19
19
|
local_audio_change: boolean;
|
|
20
|
+
local_mic_state_change: DailyTrackState["state"];
|
|
20
21
|
}
|
|
21
22
|
export type AvaturnEventCallback<T extends AvaturnHeadEvent> = (data: AvaturnEventData[T]) => void;
|
|
22
23
|
export interface AvaturnHeadConfig {
|