@unisphere/genie-types 1.43.0 → 1.44.0
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UnisphereService } from '@unisphere/runtime';
|
|
2
2
|
import { AvatarVisualBridgeType } from './visual-bridge-types';
|
|
3
3
|
import { TinyDataStoreConsumer, TinyPubSub } from '@unisphere/core';
|
|
4
|
-
import { AgentTapToTalkInfo, AvatarConnectionProxyType } from './shared-types';
|
|
4
|
+
import { AgentTapToTalkInfo, AvatarConnectionProxyType, TapToTalkStartOptions } from './shared-types';
|
|
5
5
|
export type AvatarWebsocketEvent = {
|
|
6
6
|
name: string;
|
|
7
7
|
payload: any;
|
|
@@ -40,7 +40,7 @@ export interface AvatarServiceType extends UnisphereService {
|
|
|
40
40
|
clearContent(): void;
|
|
41
41
|
askViaText(question: string): void;
|
|
42
42
|
/** Start a tap-to-talk recording. */
|
|
43
|
-
tapToTalkStart(): void;
|
|
43
|
+
tapToTalkStart(options?: TapToTalkStartOptions): void;
|
|
44
44
|
/** End the current tap-to-talk recording and send it to the agent. */
|
|
45
45
|
tapToTalkEnd(): void;
|
|
46
46
|
onWebsocketEvents: {
|
|
@@ -116,6 +116,13 @@ export type AgentTapToTalkInfo = {
|
|
|
116
116
|
/** Whether the idle tap-to-talk button should be shown as enabled */
|
|
117
117
|
buttonVisible: boolean;
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Options for starting a tap-to-talk recording
|
|
121
|
+
*/
|
|
122
|
+
export type TapToTalkStartOptions = {
|
|
123
|
+
/** Ask the server to enrich the recorded audio (e.g. speech analysis) */
|
|
124
|
+
enrichAudio?: boolean;
|
|
125
|
+
};
|
|
119
126
|
/**
|
|
120
127
|
* Agent kaltura context data
|
|
121
128
|
*/
|
|
@@ -305,7 +312,7 @@ export interface AvatarConnectionProxyType {
|
|
|
305
312
|
/** Request avatar pause after current speech finishes */
|
|
306
313
|
pauseAvatarAfterSpeaking(): void;
|
|
307
314
|
/** Start a tap-to-talk recording */
|
|
308
|
-
tapToTalkStart(): void;
|
|
315
|
+
tapToTalkStart(options?: TapToTalkStartOptions): void;
|
|
309
316
|
/** End the current tap-to-talk recording */
|
|
310
317
|
tapToTalkEnd(): void;
|
|
311
318
|
/** Clear current visual content */
|
|
@@ -399,7 +406,7 @@ export interface AvatarClientManagerType {
|
|
|
399
406
|
/** Observable tap-to-talk mode state */
|
|
400
407
|
readonly tapToTalkInfo: TinyDataStoreConsumer<AgentTapToTalkInfo | null>;
|
|
401
408
|
/** Start a tap-to-talk recording */
|
|
402
|
-
tapToTalkStart(): void;
|
|
409
|
+
tapToTalkStart(options?: TapToTalkStartOptions): void;
|
|
403
410
|
/** End the current tap-to-talk recording */
|
|
404
411
|
tapToTalkEnd(): void;
|
|
405
412
|
/** Enable/disable tap-to-talk mode */
|