How lukifer/voicetunes works
Main System Components
a) Input Layer:
• Bluetooth Controller Interface (bt.ts)
• MQTT Listener (mqttlisten.ts)
• Voice Input System (voice2json integration)
b) Core Processing Layer:
• Intent Processing (intent.ts)
• Command Parser (sentences.ini.ts)
• Database Layer (db.ts)
c) Output Layer:
• Mopidy Audio Player
• LED Feedback System (led.ts)
• Sound Effects (sfx.ts)
Data Flow Representation
[Input Sources] → [Command Processing] → [Audio Output]
• ↓ ↕ ↑
[Voice2JSON] → [Intent Parser] → [Database] → [Mopidy]
Component Details
Specific elements:
a) Input Components:
• Bluetooth Button Controller
• MQTT Listener
• Microphone Input
• Both voice and text command paths
b) Processing Components:
• Voice2JSON Processing
• Intent Parser
• SQLite Database
• iTunes Library Integration
c) Output Components:
• Mopidy Audio Player
• LED Feedback
• Sound Effects System
External Dependencies
Integrations:
• voice2json
• Mopidy
• SQLite
• MQTT Broker
• Hardware interfaces (LED, Audio DAC)
Data Stores
Data sources:
• SQLite Database
• Configuration Files
• Static Data Files (years.json, decades.json, etc.)
• iTunes Library Data
Deployment Context
A separate section showing:
• Raspberry Pi deployment
• Startup process
• Auto-restart mechanism
• Optional UPS integration
This architecture should emphasize the project's unique approach to voice control (using a push-to-talk button rather than wake words) and its integration with various hardware and software components to create a complete car audio solution.