uneeq-js 2.44.6 → 2.46.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/dist/index.js +4 -4
- package/dist/src/service/locale-detector.d.ts +14 -0
- package/dist/src/types/PersonaStartRequest.d.ts +1 -0
- package/dist/src/types/UneeqOptions.d.ts +7 -0
- package/dist/src/uneeq.d.ts +4 -4
- package/dist/umd/index.js +201 -118
- package/package.json +1 -1
- package/readme.md +6 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UneeqOptions } from '../types/types';
|
|
2
|
+
export declare class LocaleDetector {
|
|
3
|
+
/**
|
|
4
|
+
* Validates that one or more colon-separated locales is supplied
|
|
5
|
+
* If none supplied, detects the user's browser language preferences
|
|
6
|
+
*
|
|
7
|
+
* @param UneeqOptions
|
|
8
|
+
* @returns a colon separated string of locales (language tags)
|
|
9
|
+
*/
|
|
10
|
+
static validateOrDetectSpeechLocales(options: UneeqOptions): string;
|
|
11
|
+
private static defaultLocale;
|
|
12
|
+
private static localesRegEx;
|
|
13
|
+
private static localeMappings;
|
|
14
|
+
}
|
|
@@ -65,4 +65,11 @@ export interface UneeqOptions {
|
|
|
65
65
|
* This option specifies the URL of the name tag image to be used when the digital human is rendered.
|
|
66
66
|
*/
|
|
67
67
|
nameTagImageUrl?: string;
|
|
68
|
+
/**
|
|
69
|
+
* This option specifies up to four locales that the Digital Human should understand a person speaking (speech recognition)
|
|
70
|
+
* The locales are specified in the BCP-47 format e.g "en-US".
|
|
71
|
+
* The first locale is considered the primary locale.
|
|
72
|
+
* Locales should be separated with a colon e.g "en-US:en-GB:en-AU".
|
|
73
|
+
*/
|
|
74
|
+
speechToTextLocales?: string;
|
|
68
75
|
}
|
package/dist/src/uneeq.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ import 'rxjs/add/operator/filter';
|
|
|
3
3
|
import { UneeqOptions } from './types/types';
|
|
4
4
|
import { VoiceInputMode } from './types/VoiceInputMode';
|
|
5
5
|
export declare class Uneeq {
|
|
6
|
+
/**
|
|
7
|
+
* The active session id as a string. If the session has not started yet value will be null
|
|
8
|
+
*/
|
|
9
|
+
get sessionId(): string | null;
|
|
6
10
|
static onDataMessage: (msg: any) => void;
|
|
7
11
|
static onStatMessage: (stats: any) => void;
|
|
8
12
|
ready: BehaviorSubject<boolean>;
|
|
@@ -39,10 +43,6 @@ export declare class Uneeq {
|
|
|
39
43
|
* should be used instead of init() when a third party conversation service is used.
|
|
40
44
|
*/
|
|
41
45
|
initWithToken(tokenId: string): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* The active session id as a string. If the session has not started yet value will be null
|
|
44
|
-
*/
|
|
45
|
-
get sessionId(): string | null;
|
|
46
46
|
/**
|
|
47
47
|
* Set a preferred camera to use in a live session. On success, SetCameraSuccessMessage
|
|
48
48
|
* will be sent. DeviceNotFoundErrorMessage will be sent when the requested device is not found.
|