playkit-sdk 1.4.0-beta.3 → 1.6.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.
package/README.md CHANGED
@@ -128,6 +128,13 @@ console.log('Audio length (ms):', result.audioLengthMs);
128
128
  const url = await tts.synthesizeToObjectURL({ text: 'Hello there!' });
129
129
  const audio = new Audio(url);
130
130
  audio.play();
131
+
132
+ // List the available voices
133
+ const { voices, total } = await tts.listVoices();
134
+ console.log(`${total} voices available`);
135
+ for (const voice of voices) {
136
+ console.log(voice.voiceId, voice.name, voice.kind); // kind: 'system' | 'custom'
137
+ }
131
138
  ```
132
139
 
133
140
  ### NPC Conversations
@@ -283,7 +290,8 @@ This SDK is proprietary software owned by Agentland Lab. Use of this SDK is subj
283
290
 
284
291
  ## Changelog
285
292
 
286
- ### 1.4.0-beta.3
293
+ ### 1.4.0
294
+ - Added text-to-speech (TTS) client
287
295
  - Added `thinking` reasoning-effort option on chat (`thinking: { effort: 'high' }`)
288
296
  - Surface model reasoning: `result.reasoning` (non-streaming) and the `onReasoning` callback (streaming)
289
297