playkit-sdk 1.4.0 → 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