ultron-ai-sdk 1.0.1 → 1.0.2
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 +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ npm install ultron-ai-sdk
|
|
|
16
16
|
|
|
17
17
|
```javascript
|
|
18
18
|
// Import the SDK
|
|
19
|
-
import {SceneCanvas, Character} from '
|
|
19
|
+
import {SceneCanvas, Character} from 'ultron-ai-sdk';
|
|
20
20
|
|
|
21
21
|
let sceneCanvas
|
|
22
22
|
let character
|
|
@@ -26,6 +26,7 @@ npm install ultron-ai-sdk
|
|
|
26
26
|
const initializationSetting= {
|
|
27
27
|
avatarId: "AVATAR_ID", // AvatarId and Request Id are same
|
|
28
28
|
config:{
|
|
29
|
+
accessToken: 'YOUR_CURRENT_AUTH_TOKEN', // Can be accessed from your app.ultronai.me localstorage data
|
|
29
30
|
apiKey: "YOUR_ULTRON_API_KEY"
|
|
30
31
|
},
|
|
31
32
|
options:{
|
|
@@ -40,6 +41,12 @@ npm install ultron-ai-sdk
|
|
|
40
41
|
|
|
41
42
|
```
|
|
42
43
|
|
|
44
|
+
#### Quick Demo
|
|
45
|
+
|
|
46
|
+
Check out our website for demo at: [🔗Talk to Avatar in metabrix website](https://dev-website.ultronai.me)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
43
50
|
---
|
|
44
51
|
|
|
45
52
|
## Target HTML Element
|
|
@@ -65,6 +72,7 @@ sceneCanvas.init(config)
|
|
|
65
72
|
|
|
66
73
|
| Option | Description |
|
|
67
74
|
|-------------|--------------|
|
|
75
|
+
| `accessToken` (optional) | accessToken current logged in Account |
|
|
68
76
|
| `sessionId` (optional) | Session Id obtained using API key |
|
|
69
77
|
| `apiKey` | You ultron key which can be found in your profile in Ultron App |
|
|
70
78
|
|
|
@@ -167,7 +175,7 @@ ultronSDK.setAudioInputDevice(myDevice.deviceId)
|
|
|
167
175
|
### Basic Implementation
|
|
168
176
|
|
|
169
177
|
```javascript
|
|
170
|
-
import {SceneCanvas, Character} from '
|
|
178
|
+
import {SceneCanvas, Character} from 'ultron-ai-sdk';
|
|
171
179
|
|
|
172
180
|
let sceneCanvas
|
|
173
181
|
let character
|