Skip to content

Add conversation pause and resume controls#712

Draft
kraenhansen wants to merge 8 commits into
mainfrom
cursor/pause-resume-conversation-89fb
Draft

Add conversation pause and resume controls#712
kraenhansen wants to merge 8 commits into
mainfrom
cursor/pause-resume-conversation-89fb

Conversation

@kraenhansen

@kraenhansen kraenhansen commented Apr 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Add pause()/resume() to conversations, with voice sessions interrupting playback, muting input, silencing output, and sending periodic user activity while paused.
  • Restore previous mic mute and volume settings on resume via pause-scoped resume handlers, and drop incoming audio while paused through explicit conversation audio handling plus output-level playback enablement.
  • Use LiveKit remote audio track controls for WebRTC playback gating instead of only pausing attached DOM elements.
  • Expose pause state through conversation.isPaused(), React useConversationPause(), and the combined useConversation() return.
  • Expose pause/resume through React conversation controls and add a changeset.

Testing

  • pnpm --filter @elevenlabs/client test --run src/index.test.ts
  • pnpm --filter @elevenlabs/client test --run src/utils/WebRTCConnection.test.ts
  • pnpm --filter @elevenlabs/client test --run
  • pnpm --filter @elevenlabs/client build:esm
  • pnpm --filter @elevenlabs/react test --run
  • pnpm --filter @elevenlabs/react build:esm
  • Pre-commit hook ran full repo lint/build/check-types successfully on final commit.
Open in Web Open in Cursor 

@kraenhansen kraenhansen linked an issue May 6, 2026 that may be closed by this pull request
@kraenhansen kraenhansen self-assigned this May 7, 2026
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.

Feature Request: Pause/Resume Conversation Method

2 participants