Closed SandraRodgers closed 2 months ago
@lukeocodes Things we need to change in this PR:
cc @dvonthenen
@lukeocodes Things we need to change in this PR:
- Rename of reset to clear
- Clear message now has a response type.
- We want to remove the container field
cc @dvonthenen
Yep, confirmed those should be the only changes between now and towards the end of July. 👍
The changes enhance the text-to-speech (TTS) functionality using the Deepgram API by adding documentation for both REST API and WebSocket methods in README.md
. A live TTS implementation is introduced in index.js
, alongside an enumeration for live TTS events in LiveTTSEvents.ts
. The SpeakClient
and SpeakLiveClient
classes are added to facilitate interactions with TTS services. Additionally, export statements are updated to include these new components, ensuring their availability throughout the application.
Files | Change Summary |
---|---|
README.md |
Added sections for REST API and WebSocket methods for Deepgram TTS with example usage. |
examples/node-speak-live/index.js |
Introduced live TTS functionality with event handling and audio data processing. |
src/lib/enums/LiveTTSEvents.ts |
Added enumeration for live TTS events, including socket and message events. |
src/lib/enums/index.ts |
Updated to export the new LiveTTSEvents enumeration. |
src/packages/SpeakClient.ts |
Added SpeakClient class with methods for REST and live TTS interactions. |
src/packages/SpeakLiveClient.ts |
Introduced SpeakLiveClient class for managing WebSocket connections for live TTS. |
src/packages/SpeakRestClient.ts |
Removed alias export for SpeakRestClient , simplifying the export structure. |
src/packages/index.ts |
Added exports for SpeakClient and SpeakLiveClient to the module's public API. |
Introduce live speak functionality to existing
speak
client. Maintain existing interface for batch.Summary by CodeRabbit
New Features
Bug Fixes
Documentation