@unith-ai/core-client 2.0.4 → 2.0.5
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/README.md +11 -1
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/lib.module.js +1 -1
- package/dist/lib.module.js.map +1 -1
- package/dist/lib.web.js +16 -24205
- package/dist/lib.web.js.map +1 -1
- package/dist/modules/microphone.d.ts +0 -1
- package/dist/modules/microphone.d.ts.map +1 -1
- package/package.json +15 -7
|
@@ -14,7 +14,6 @@ export declare class Microphone {
|
|
|
14
14
|
private connection;
|
|
15
15
|
private tokenObj;
|
|
16
16
|
private micBeep;
|
|
17
|
-
private loadAzureSdk;
|
|
18
17
|
/**
|
|
19
18
|
* This static method initializes the Microphone instance.
|
|
20
19
|
* It gets the tokens from our endpoints and sets up the necessary configurations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microphone.d.ts","sourceRoot":"","sources":["../../src/modules/microphone.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"microphone.d.ts","sourceRoot":"","sources":["../../src/modules/microphone.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAY9B,qBAAa,UAAU;IA4DZ,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,gBAAgB;IACzB,iBAAiB,EAAE,iBAAiB;IACpC,IAAI,EAAE,IAAI;IACjB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAGzB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAlE9B,OAAO,CAAC,gBAAgB,CAA2B;IACnD,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,UAAU,CAAmC;IACrD,OAAO,CAAC,QAAQ,CAId;IACF,OAAO,CAAC,OAAO,CAA6D;IAE5E;;;;;;;;;;;OAWG;WACiB,oBAAoB,CACtC,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,kBAAkB,EAC5B,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,OAAO,EACzB,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GACrC,OAAO,CAAC,UAAU,CAAC;gBA4Bb,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,gBAAgB,EACzB,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,IAAI,EACA,QAAQ,EAAE,QAAQ,EACnC,gBAAgB,EAAE,OAAO,EACzB,KAAK,EAAE,oBAAoB,EACV,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;IAWzD,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,uBAAuB;YAOjB,oBAAoB;YAkFpB,mBAAmB;YAenB,yBAAyB;YAkDzB,wBAAwB;IAetC;;OAEG;IACU,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IA8B9C;;OAEG;IACI,MAAM;CAGd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unith-ai/core-client",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Core TypeScript SDK for building digital human experiences with Unith AI",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"module": "./dist/lib.module.js",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"eslint": "^9.8.0",
|
|
33
33
|
"microbundle": "^0.15.1",
|
|
34
|
-
"typescript": "^5.5.4"
|
|
34
|
+
"typescript": "^5.5.4",
|
|
35
|
+
"microsoft-cognitiveservices-speech-sdk": "^1.45.0"
|
|
35
36
|
},
|
|
36
37
|
"repository": {
|
|
37
38
|
"type": "git",
|
|
@@ -39,15 +40,22 @@
|
|
|
39
40
|
"directory": "packages/core-client"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@elevenlabs/client": "^0.13.0"
|
|
43
|
+
"@elevenlabs/client": "^0.13.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
43
46
|
"microsoft-cognitiveservices-speech-sdk": "^1.45.0"
|
|
44
47
|
},
|
|
48
|
+
"peerDependenciesMeta": {
|
|
49
|
+
"microsoft-cognitiveservices-speech-sdk": {
|
|
50
|
+
"optional": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
45
53
|
"scripts": {
|
|
46
|
-
"build": "BROWSERSLIST_ENV=modern microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react src/index.ts && npm run build:web",
|
|
47
|
-
"build:web": "npx esbuild src/index.ts --bundle --format=esm --platform=browser --target=es2019 --outfile=dist/lib.web.js",
|
|
54
|
+
"build": "BROWSERSLIST_ENV=modern microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react --external microsoft-cognitiveservices-speech-sdk src/index.ts && npm run build:web",
|
|
55
|
+
"build:web": "npx esbuild src/index.ts --bundle --format=esm --platform=browser --target=es2019 --external:microsoft-cognitiveservices-speech-sdk --outfile=dist/lib.web.js",
|
|
48
56
|
"clean": "rm -rf ./dist",
|
|
49
|
-
"dev": "npm run clean && BROWSERSLIST_ENV=development microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react src/index.ts -w -f modern",
|
|
50
|
-
"dev:build-only": "npm run clean && BROWSERSLIST_ENV=development microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react src/index.ts -w -f modern",
|
|
57
|
+
"dev": "npm run clean && BROWSERSLIST_ENV=development microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react --external microsoft-cognitiveservices-speech-sdk src/index.ts -w -f modern",
|
|
58
|
+
"dev:build-only": "npm run clean && BROWSERSLIST_ENV=development microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react --external microsoft-cognitiveservices-speech-sdk src/index.ts -w -f modern",
|
|
51
59
|
"lint": "npm run lint:ts && npm run lint:es",
|
|
52
60
|
"lint:ts": "tsc --noEmit --skipLibCheck",
|
|
53
61
|
"lint:es": "npx eslint .",
|