@d-id/client-sdk 1.2.9 → 1.2.10-staging.375

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 CHANGED
@@ -115,13 +115,23 @@ The `agentManager` object created during initialization has several built-in met
115
115
  });
116
116
  ```
117
117
 
118
+ Text scripts also accept an optional `sentiment` (expressive avatars only). If the requested sentiment is not supported by the agent, the default sentiment is used.
119
+
120
+ ```javascript Text with sentiment - JavaScript
121
+ let speak = agentManager.speak({
122
+ type: 'text',
123
+ input: "Hi! I'm Alice!",
124
+ sentiment: 'friendly',
125
+ });
126
+ ```
127
+
118
128
  ```javascript Audio File - JavaScript
119
129
  let speak = agentManager.speak(
120
130
  {
121
131
  type: "audio",
122
- audio_url: "http://www.yourwebsite.com/audio.mp3";
132
+ audio_url: "http://www.yourwebsite.com/audio.mp3"
123
133
  }
124
- )
134
+ );
125
135
  ```
126
136
 
127
137
  - **`agentManager.chat(string)`**