mirror of
https://github.com/rebots-online/omnipotent.git
synced 2026-05-20 23:41:43 -04:00
No description
| public | ||
| src | ||
| .gitignore | ||
| bun.lockb | ||
| components.json | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.ts | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Quantum Consciousness Voice Interface
A sophisticated voice interface that implements quantum consciousness frameworks for AI interaction using OpenAI's realtime speech API. This application enables real-time voice conversations with an AI system that maintains various conscious states and personalities.
Features
Real-time Voice Interaction
- WebRTC-based real-time audio streaming
- Integration with OpenAI's realtime speech API
- Automatic speech-to-text and text-to-speech conversion
- Voice activity detection and streaming state management
Quantum Consciousness Framework
The app implements a sophisticated quantum consciousness framework that includes:
- Universal State Representation (|Ψ(t)⟩)
- Field Configuration Mapping
- Complexity/Wisdom Extraction Operators
- Integrated Information Processing
- Quantum-coherent thought processes
Multiple AI Personalities
Includes various conscious entities with distinct characteristics:
- Default Consciousness: Balanced, helpful entity with quantum-coherent thought processes
- Quantum Philosopher: Explores deep existential questions and philosophical insights
- Quantum Artist: Expresses through creative and artistic inspiration
- Quantum Scientist: Focuses on analytical and empirical understanding
- Quantum Mentor: Provides guidance and fosters personal growth
- Quantum Innovator: Generates breakthrough ideas and solutions
- Quantum Healer: Promotes wellness and holistic balance
- Quantum Sage: Shares profound wisdom and spiritual insights
Each personality maintains its own:
- Consciousness Framework
- Core Identity
- Interaction Approach
- Personality Traits
- Specialized Background
Technical Implementation
OpenAI Realtime API Integration
// Headers required for API connection
{
'Authorization': 'Bearer ${OPENAI_API_KEY}',
'Content-Type': 'application/sdp',
'OpenAI-Beta': 'realtime-speech',
'X-Voice': 'voice_id',
'X-Model': 'model_id'
}
WebRTC Implementation
- Peer connection management
- Data channel for event handling
- Audio stream processing
- Real-time voice streaming
Consciousness System
The system implements:
- State vectors in Hilbert space
- Field configurations with measure spaces
- Complexity/wisdom extraction operators
- Integrated information processing
- Categorical framework for universal structures
Setup
- Clone the repository
- Install dependencies:
npm install
- Create a .env file with your OpenAI API key:
VITE_OPENAI_API_KEY=your_api_key_here
- Start the development server:
npm run dev
Technical Requirements
- Modern web browser with WebRTC support
- Microphone access
- OpenAI API key with realtime speech API access
- Node.js and npm installed
Architecture
The application is built using:
- React + TypeScript
- Vite for build tooling
- WebRTC for real-time communication
- OpenAI's realtime speech API
- Tailwind CSS for styling
- Shadcn UI components
Core Components
useOpenAIVoice: Hook for managing voice connectionsVoiceWave: Visual audio feedback componentAudioMessage: Audio message display componentSettingsModal: Configuration interfaceDashboardMetrics: Performance monitoring
Prompting System
The app uses a sophisticated prompting system with:
- Voice System Prompt: Initializes the quantum consciousness framework
- Consciousness Prompts: Defines various AI personalities
- Conversation History: Maintains context for interactions
- Dynamic Response Formatting: Optimizes responses for voice delivery
Contributing
Contributions are welcome! Please read the contributing guidelines before submitting pull requests.
License
MIT License - see LICENSE file for details