How sooham/robotouille works
Main Components
A. Frontend Layer:
• Web Interface (website/templates)
• Static Assets
• JavaScript Controllers (speechController.js, recipeScroller.js)
• CSS Styles
• Audio Feedback Files (wav directory)
B. Backend Layer:
• Python Server (website/server.py)
• Utility Functions (website/utils.py)
C. Speech Processing Components:
• Speech-to-Text Module (SpeechToText directory)
• Audio Recording System (record.py)
• Speech Recognition Processing (stt.py)
Component Relationships
a. User Interface → Speech Processing:
• Bidirectional communication between the frontend and speech recognition
• Audio input flow and text output flow
b. Speech Processing → Backend:
• How the speech recognition results are processed by the server
• Flow of recipe data and commands
c. Backend → Frontend:
• How recipe data and navigation commands flow back to the UI
• Audio feedback pathway
Technical Stack Representation
Technologies:
• Frontend: HTML5, JavaScript, CSS
• Backend: Python (Flask implied by structure)
• Speech Processing: Custom TypeScript-based Speech SDK
• WebSocket connections for real-time communication
Specific Design Elements
Use these visual elements:
• Blue components for frontend elements
• Green components for backend services
• Purple components for speech processing
• Yellow components for storage/static assets
• Red lines for real-time communication paths
• Black lines for standard HTTP requests
Architectural Patterns to Highlight
a. Client-Server Architecture:
• Clear separation between frontend and backend
• RESTful communication paths
b. Event-Driven Architecture:
• WebSocket connections for real-time updates
• Speech event handling flow
c. Modular Component Structure:
• Separate speech processing module
• Distinct frontend controllers
Implementation Details
a. Speech Processing Pipeline:
• Audio Input → Speech Recognition → Text Output
• Audio Feedback System
• WebSocket-based real-time communication
b. User Interface Components:
• Recipe View
• Speech Control Interface
• Navigation Controls