@hamsa-ai/voice-agents-sdk 0.5.1 → 0.5.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 +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/classes/livekit-analytics.d.ts +3 -1
- package/types/classes/livekit-audio-manager.d.ts +27 -2
- package/types/classes/types.d.ts +11 -6
package/README.md
CHANGED
|
@@ -278,7 +278,7 @@ agent.disableAudioCapture();
|
|
|
278
278
|
|
|
279
279
|
#### Audio Capture Formats
|
|
280
280
|
|
|
281
|
-
The SDK supports three audio formats:
|
|
281
|
+
The SDK supports three high-quality audio formats:
|
|
282
282
|
|
|
283
283
|
1. **`opus-webm`** (default, recommended)
|
|
284
284
|
- Efficient Opus codec in WebM container
|
|
@@ -288,14 +288,14 @@ The SDK supports three audio formats:
|
|
|
288
288
|
|
|
289
289
|
2. **`pcm-f32`**
|
|
290
290
|
- Raw PCM audio as Float32Array
|
|
291
|
-
- Values range from -1.0 to 1.0
|
|
291
|
+
- Values range from -1.0 to 1.0 (16kHz mono)
|
|
292
292
|
- Best for audio analysis or DSP
|
|
293
293
|
- `audioData` is a `Float32Array`
|
|
294
294
|
|
|
295
295
|
3. **`pcm-i16`**
|
|
296
296
|
- Raw PCM audio as Int16Array
|
|
297
297
|
- Values range from -32768 to 32767
|
|
298
|
-
- Best for compatibility with audio APIs
|
|
298
|
+
- Best for compatibility with legacy audio APIs
|
|
299
299
|
- `audioData` is an `Int16Array`
|
|
300
300
|
|
|
301
301
|
#### Common Use Cases
|