Closed naomi-lgbt closed 1 month ago
The pull request introduces modifications to the index.js
file in the examples/node-speak-live
directory, focusing on audio processing enhancements, including the addition of a WAV audio header and updated audio configuration parameters. The SpeakLiveClient
class in src/packages/SpeakLiveClient.ts
has also been updated to improve binary message handling, specifically changing the parameter type for binary data processing and enhancing the conversion logic for incoming WebSocket messages.
File | Change Summary |
---|---|
examples/node-speak-live/index.js | Added a WAV audio header, updated deepgram.speak.live parameters, modified file writing logic to save as WAV instead of MP3, and adjusted buffer reset logic. |
src/packages/SpeakLiveClient.ts | Changed handleBinaryMessage parameter type from ArrayBuffer to Buffer , added logic to convert Blob to Buffer , and ensured consistent handling of binary data. |
SpeakLiveClient
, specifically changing the parameter type from ArrayBuffer
to Buffer
, directly relating to modifications in audio data processing.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Refactor