@memori.ai/memori-api-client 0.1.1 → 0.2.1

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/src/engine.ts CHANGED
@@ -12,6 +12,7 @@ import search from './engine/search';
12
12
  import session from './engine/session';
13
13
  import stats from './engine/stats';
14
14
  import unansweredQuestions from './engine/unansweredQuestions';
15
+ import contextVars from './engine/contextVars';
15
16
 
16
17
  export default (apiUrl: string) => ({
17
18
  correlationPairs: correlationPairs(apiUrl),
@@ -42,4 +43,6 @@ export default (apiUrl: string) => ({
42
43
  ...stats(apiUrl),
43
44
  unansweredQuestions: unansweredQuestions(apiUrl),
44
45
  ...unansweredQuestions(apiUrl),
46
+ contextVars: contextVars(apiUrl),
47
+ ...contextVars(apiUrl),
45
48
  });
package/src/speech.ts CHANGED
@@ -72,12 +72,13 @@ const getCultureCodeByLanguage = (lang: string): string => {
72
72
  return voice;
73
73
  };
74
74
 
75
+ /**
76
+ * EXPERIMENTAL
77
+ */
75
78
  const speech = (AZURE_COGNITIVE_SERVICES_TTS_KEY: string, DEBUG = false) => (
76
79
  lang: string,
77
80
  voiceType: 'FEMALE' | 'MALE'
78
81
  ) => {
79
- speechSdk.Recognizer.enableTelemetry(false);
80
-
81
82
  let speechConfig: speechSdk.SpeechConfig = speechSdk.SpeechConfig.fromSubscription(
82
83
  AZURE_COGNITIVE_SERVICES_TTS_KEY,
83
84
  'eastus'