uneeq-js 2.45.0 → 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.
@@ -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
+ }
@@ -70,8 +70,6 @@ export interface UneeqOptions {
70
70
  * The locales are specified in the BCP-47 format e.g "en-US".
71
71
  * The first locale is considered the primary locale.
72
72
  * Locales should be separated with a colon e.g "en-US:en-GB:en-AU".
73
- *
74
- * Note: this is ignored if using the VOICE_ACTIVITY voiceInputMode mode.
75
73
  */
76
74
  speechToTextLocales?: string;
77
75
  }
@@ -9,7 +9,6 @@ export declare class Uneeq {
9
9
  get sessionId(): string | null;
10
10
  static onDataMessage: (msg: any) => void;
11
11
  static onStatMessage: (stats: any) => void;
12
- private static localesRegEx;
13
12
  ready: BehaviorSubject<boolean>;
14
13
  version: string;
15
14
  private messages;
@@ -152,10 +151,4 @@ export declare class Uneeq {
152
151
  */
153
152
  private initOnlineStatusUpdateMessages;
154
153
  private initPromMetricsListener;
155
- /**
156
- * Validates one or more colon-separated locales
157
- * @param locales
158
- * @returns locales if valid, empty string otherwise
159
- */
160
- private validateLocales;
161
154
  }