#832

feat: add WebSpeech API fallback with callback pattern

OpenItalyPaleAlewants to merge intofrom

Summary

Introduces WebSpeech API support for the audio recording hook. This enables reliable audio capture across different browsers without the need for an external service.

Changes

Tests (apps/web/hooks/use-audio-recording.test.ts)

  • Add comprehensive test suite for audio recording hook
  • Cover WebSpeech API fallback scenarios and error cases
  • Test callback invocations and state management

Hooks (apps/web/hooks/use-audio-recording.ts)

  • Implement WebSpeech API fallback mechanism with callback pattern
  • Enhance audio recording with improved error handling and browser compatibility
  • Add support for multiple audio capture strategies
  • Refactor hook to use callbacks for improved composability

UI Components (apps/web/chats/[chatId]/session-chat-content.tsx)

  • Update session chat content component to use new audio recording hook callbacks
  • Integrate fallback audio recording capabilities into chat interface

Chat - Built with guidance from Alessandro

Activity

2
vercel[bot]6mo ago

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
open-agents ReadyPreviewApr 21, 2026 5:52am