@layercode/js-sdk 1.0.19 → 1.0.21
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/types/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ interface LayercodeClientOptions {
|
|
|
28
28
|
onAgentAmplitudeChange?: (amplitude: number) => void;
|
|
29
29
|
/** Callback when connection status changes */
|
|
30
30
|
onStatusChange?: (status: string) => void;
|
|
31
|
+
/** Callback when user turn changes */
|
|
32
|
+
onUserIsSpeakingChange?: (isSpeaking: boolean) => void;
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* @class LayercodeClient
|
|
@@ -107,5 +109,10 @@ declare class LayercodeClient {
|
|
|
107
109
|
* @returns {MediaStream|null} The microphone stream or null if not initialized
|
|
108
110
|
*/
|
|
109
111
|
getStream(): MediaStream | null;
|
|
112
|
+
/**
|
|
113
|
+
* Switches the input device for the microphone and restarts recording
|
|
114
|
+
* @param {string} deviceId - The deviceId of the new microphone
|
|
115
|
+
*/
|
|
116
|
+
setInputDevice(deviceId: string): Promise<void>;
|
|
110
117
|
}
|
|
111
118
|
export default LayercodeClient;
|
package/package.json
CHANGED