Skip to content

Enhance Deepgram SDK with audio playback and state tracking - #18

Merged
itsRares merged 5 commits into
mainfrom
feature/v2-upgrade
Nov 28, 2025
Merged

itsRares merged 5 commits into
mainfrom
feature/v2-upgrade

Conversation

@itsRares

Copy link
Copy Markdown
Owner

Introduce automatic audio playback and internal state tracking for connection, conversation, and agent status in the useDeepgramVoiceAgent hook. Add a new useAsyncCall hook for managing asynchronous calls with loading and error states. Update the Deepgram SDK to version 2.0.0 and improve audio playback buffer management. Include an iOS simulator warning for voice processing and simplify example sample rate options. Enhance existing hooks with state tracking capabilities.

…ction, conversation, and agent status, and new audio utilities to the `useDeepgramVoiceAgent` hook.
… tracking

- Introduced `useAsyncCall` hook for managing asynchronous calls with loading and error states.
- Updated `index.ts` to export new helper functions.
- Enhanced `useDeepgramSpeechToText`, `useDeepgramTextIntelligence`, and `useDeepgramTextToSpeech` hooks to support internal state tracking.
- Added `trackState` and `trackTranscript` options to `useDeepgramSpeechToText` for managing transcription state.
- Implemented conversation tracking in `useDeepgramVoiceAgent` with `trackConversation` option.
- Improved type definitions in Deepgram management and speech-to-text interfaces with detailed comments.
- Added support for agent status tracking in `useDeepgramVoiceAgent`.
… management by removing `audioBuffer` and adding `_scheduledBufferCount`.
@itsRares
itsRares merged commit 3a8cf93 into main Nov 28, 2025
3 checks passed
@itsRares
itsRares deleted the feature/v2-upgrade branch November 28, 2025 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant