uneeq-js 3.0.16-preview.92 → 3.0.16-preview.93

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.
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * ONNX Runtime Web v1.15.1
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License.
5
+ */
@@ -0,0 +1,6 @@
1
+ import { type CreateSessionResponse } from "../../types/CreateSessionResponse";
2
+ import { type UneeqConfig } from "../../types/UneeqConfig";
3
+ export declare const API: {
4
+ createSession(config: UneeqConfig): Promise<CreateSessionResponse>;
5
+ makeRequest(url: string, method: string, body: string): Promise<any>;
6
+ };
@@ -0,0 +1,3 @@
1
+ import { CameraAnchorPosition } from "../webrtc-data-channel/messages/CameraAnchor";
2
+ export declare const isCameraPositionForZoom: (position: CameraAnchorPosition) => boolean;
3
+ export declare const isCameraPositionForHorizontal: (position: CameraAnchorPosition) => boolean;
@@ -0,0 +1,10 @@
1
+ import { type Session } from "./session";
2
+ import { type Signaling } from "./signaling";
3
+ export declare class SessionTransferManager {
4
+ session: Session;
5
+ isTransferSessionInProgress: boolean;
6
+ constructor(session: Session);
7
+ private addTransferSessionListener;
8
+ private transferSession;
9
+ switchLiveVideo(videoContainer: HTMLDivElement, newSignaling: Signaling): void;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { type Session } from "./session";
2
+ import { type Signaling } from "./signaling";
3
+ export declare class SessionTransferHandler {
4
+ session: Session;
5
+ isTransferSessionInProgress: boolean;
6
+ constructor(session: Session);
7
+ private addTransferSessionListener;
8
+ private transferSession;
9
+ switchLiveVideo(videoContainer: HTMLDivElement, newSignaling: Signaling): void;
10
+ }
@@ -0,0 +1,42 @@
1
+ import { type SpeechRecognitionOptions } from './types/SpeechHandlerOptions';
2
+ export declare class SpeechRecognition {
3
+ options: SpeechRecognitionOptions;
4
+ private ws;
5
+ private mediaRecorder;
6
+ private readonly logPrefix;
7
+ private readonly speechBuffer;
8
+ private micVad;
9
+ private recordingLive;
10
+ private headerBlob;
11
+ private scriptsLoadedPromise;
12
+ private digitalHumanSpeaking;
13
+ private stream;
14
+ private reconnectWs;
15
+ private wsReconnectMessageQueue;
16
+ constructor(options: SpeechRecognitionOptions);
17
+ setEnableMicrophone(enable: boolean): void;
18
+ private startRecognition;
19
+ private stopRecognition;
20
+ pause(): boolean;
21
+ resume(): boolean;
22
+ private loadScript;
23
+ private loadScripts;
24
+ private handleAppMessages;
25
+ private initWebsocket;
26
+ private sendWebsocketMessageQueue;
27
+ private loadSavedAudioHeaders;
28
+ private initVoiceActivityDetection;
29
+ private onVadSpeechStart;
30
+ private onVadSpeechEnd;
31
+ private handleWebsocketMessage;
32
+ private handleWebsocketClose;
33
+ private sendStartMessage;
34
+ private sendStopMessage;
35
+ private wsSend;
36
+ private handleWsReconnectQueueOverflow;
37
+ private initMicrophone;
38
+ private getMediaRecorder;
39
+ private initMediaRecorder;
40
+ private mediaRecorderOnData;
41
+ private handleTranscriptionResult;
42
+ }
@@ -0,0 +1,9 @@
1
+ export interface PromptMetadata {
2
+ userSpokenLocale?: string;
3
+ browserDetectedLocales?: string;
4
+ userTimezone?: string;
5
+ userScreenWidth?: number;
6
+ userScreenHeight?: number;
7
+ userAgent?: string;
8
+ custom?: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface CreateSessionResponse {
2
+ sessionId: string;
3
+ token: string;
4
+ }
@@ -7,8 +7,10 @@ export interface PromptResult {
7
7
  export interface PromptResultResponse {
8
8
  text: string;
9
9
  metadata: any;
10
+ final: boolean;
10
11
  }
11
12
  export interface PromptResultRequest {
12
13
  prompt: string;
13
14
  metadata: any;
15
+ requestId: string;
14
16
  }
@@ -0,0 +1,7 @@
1
+ import { type DataChannelAction } from "./DataChannelAction";
2
+ import { type DataChannelMessage } from "./DataChannelMessage";
3
+ export declare class ChatPrompt implements DataChannelMessage {
4
+ private readonly prompt;
5
+ constructor(prompt: string);
6
+ toJSON(): DataChannelAction;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { type DataChannelAction } from "./DataChannelAction";
2
+ import { type DataChannelMessage } from "./DataChannelMessage";
3
+ export declare class Speak implements DataChannelMessage {
4
+ private readonly prompt;
5
+ constructor(prompt: string);
6
+ toJSON(): DataChannelAction;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { type DataChannelAction } from "../DataChannelAction";
2
+ import { type DataChannelMessage } from "../DataChannelMessage";
3
+ export declare class EndSession implements DataChannelMessage {
4
+ toJSON(): DataChannelAction;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { type DataChannelAction } from "../DataChannelAction";
2
+ import { type DataChannelMessage } from "../DataChannelMessage";
3
+ export interface SpeakData {
4
+ prompt: string;
5
+ }
6
+ export declare class Speak implements DataChannelMessage {
7
+ private readonly prompt;
8
+ constructor(prompt: string);
9
+ toJSON(): DataChannelAction;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uneeq-js",
3
- "version": "3.0.16-preview.92",
3
+ "version": "3.0.16-preview.93",
4
4
  "description": "In development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",