Menu
Libraries |
Category

svelte-openai-realtime-api

  • A Svelte component for using the OpenAI Realtime API, directly ported from the openai-realtime-console repository
  • Designed for easy integration with Svelte/SvelteKit projects
  • Provides real-time chat functionality with OpenAI's API
  • Includes visualization capabilities for audio input/output (see demos)
  • Target audience: Svelte developers wanting to integrate OpenAI's realtime API features

Key Features:

  • Client-side implementation (requires relay server for production)
  • Supports turn detection modes (server_vad or none)
  • Exposes conversation controls (start/stop recording, connect/disconnect)
  • Tracks conversation items and connection state

Demos:

Relay Server Options:

  1. Integrated with SvelteKit server (development only)
  2. Standalone server (production-ready)

Current Limitations:

  • Work in progress (see todos list)
  • Production use requires relay server
  • Some features not yet implemented (tool calling, events, error handling)

License: MIT

openaispeech-to-speechsveltesveltekitrealtime-api

Comments