openvoiceui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +104 -0
- package/Dockerfile +30 -0
- package/LICENSE +21 -0
- package/README.md +638 -0
- package/SETUP.md +360 -0
- package/app.py +232 -0
- package/auto-approve-devices.js +111 -0
- package/cli/index.js +372 -0
- package/config/__init__.py +4 -0
- package/config/default.yaml +43 -0
- package/config/flags.yaml +67 -0
- package/config/loader.py +203 -0
- package/config/providers.yaml +71 -0
- package/config/speech_normalization.yaml +182 -0
- package/config/theme.json +4 -0
- package/data/greetings.json +25 -0
- package/default-pages/ai-image-creator.html +915 -0
- package/default-pages/bulk-image-uploader.html +492 -0
- package/default-pages/desktop.html +2865 -0
- package/default-pages/file-explorer.html +854 -0
- package/default-pages/interactive-map.html +655 -0
- package/default-pages/style-guide.html +1005 -0
- package/default-pages/website-setup.html +1623 -0
- package/deploy/openclaw/Dockerfile +46 -0
- package/deploy/openvoiceui.service +30 -0
- package/deploy/setup-nginx.sh +50 -0
- package/deploy/setup-sudo.sh +306 -0
- package/deploy/skill-runner/Dockerfile +19 -0
- package/deploy/skill-runner/requirements.txt +14 -0
- package/deploy/skill-runner/server.py +269 -0
- package/deploy/supertonic/Dockerfile +22 -0
- package/deploy/supertonic/server.py +79 -0
- package/docker-compose.pinokio.yml +11 -0
- package/docker-compose.yml +59 -0
- package/greetings.json +25 -0
- package/index.html +65 -0
- package/inject-device-identity.js +142 -0
- package/package.json +82 -0
- package/profiles/default.json +114 -0
- package/profiles/manager.py +354 -0
- package/profiles/schema.json +337 -0
- package/prompts/voice-system-prompt.md +149 -0
- package/providers/__init__.py +39 -0
- package/providers/base.py +63 -0
- package/providers/llm/__init__.py +12 -0
- package/providers/llm/base.py +71 -0
- package/providers/llm/clawdbot_provider.py +112 -0
- package/providers/llm/zai_provider.py +115 -0
- package/providers/registry.py +320 -0
- package/providers/stt/__init__.py +12 -0
- package/providers/stt/base.py +58 -0
- package/providers/stt/webspeech_provider.py +49 -0
- package/providers/stt/whisper_provider.py +100 -0
- package/providers/tts/__init__.py +20 -0
- package/providers/tts/base.py +91 -0
- package/providers/tts/groq_provider.py +74 -0
- package/providers/tts/supertonic_provider.py +72 -0
- package/requirements.txt +38 -0
- package/routes/__init__.py +10 -0
- package/routes/admin.py +515 -0
- package/routes/canvas.py +1315 -0
- package/routes/chat.py +51 -0
- package/routes/conversation.py +2158 -0
- package/routes/elevenlabs_hybrid.py +306 -0
- package/routes/greetings.py +98 -0
- package/routes/icons.py +279 -0
- package/routes/image_gen.py +364 -0
- package/routes/instructions.py +190 -0
- package/routes/music.py +838 -0
- package/routes/onboarding.py +43 -0
- package/routes/pi.py +62 -0
- package/routes/profiles.py +215 -0
- package/routes/report_issue.py +68 -0
- package/routes/static_files.py +533 -0
- package/routes/suno.py +664 -0
- package/routes/theme.py +81 -0
- package/routes/transcripts.py +199 -0
- package/routes/vision.py +348 -0
- package/routes/workspace.py +288 -0
- package/server.py +1510 -0
- package/services/__init__.py +1 -0
- package/services/auth.py +143 -0
- package/services/canvas_versioning.py +239 -0
- package/services/db_pool.py +107 -0
- package/services/gateway.py +16 -0
- package/services/gateway_manager.py +333 -0
- package/services/gateways/__init__.py +12 -0
- package/services/gateways/base.py +110 -0
- package/services/gateways/compat.py +264 -0
- package/services/gateways/openclaw.py +1134 -0
- package/services/health.py +100 -0
- package/services/memory_client.py +455 -0
- package/services/paths.py +26 -0
- package/services/speech_normalizer.py +285 -0
- package/services/tts.py +270 -0
- package/setup-config.js +262 -0
- package/sounds/air_horn.mp3 +0 -0
- package/sounds/bruh.mp3 +0 -0
- package/sounds/crowd_cheer.mp3 +0 -0
- package/sounds/gunshot.mp3 +0 -0
- package/sounds/impact.mp3 +0 -0
- package/sounds/lets_go.mp3 +0 -0
- package/sounds/record_stop.mp3 +0 -0
- package/sounds/rewind.mp3 +0 -0
- package/sounds/sad_trombone.mp3 +0 -0
- package/sounds/scratch_long.mp3 +0 -0
- package/sounds/yeah.mp3 +0 -0
- package/src/adapters/ClawdBotAdapter.js +264 -0
- package/src/adapters/_template.js +133 -0
- package/src/adapters/elevenlabs-classic.js +841 -0
- package/src/adapters/elevenlabs-hybrid.js +812 -0
- package/src/adapters/hume-evi.js +676 -0
- package/src/admin.html +1339 -0
- package/src/app.js +8802 -0
- package/src/core/Config.js +173 -0
- package/src/core/EmotionEngine.js +307 -0
- package/src/core/EventBridge.js +180 -0
- package/src/core/EventBus.js +117 -0
- package/src/core/VoiceSession.js +607 -0
- package/src/face/BaseFace.js +259 -0
- package/src/face/EyeFace.js +208 -0
- package/src/face/HaloSmokeFace.js +509 -0
- package/src/face/manifest.json +27 -0
- package/src/face/previews/eyes.svg +16 -0
- package/src/face/previews/orb.svg +29 -0
- package/src/features/MusicPlayer.js +620 -0
- package/src/features/Soundboard.js +128 -0
- package/src/providers/DeepgramSTT.js +472 -0
- package/src/providers/DeepgramStreamingSTT.js +766 -0
- package/src/providers/GroqSTT.js +559 -0
- package/src/providers/TTSPlayer.js +323 -0
- package/src/providers/WebSpeechSTT.js +479 -0
- package/src/providers/tts/BaseTTSProvider.js +81 -0
- package/src/providers/tts/HumeProvider.js +77 -0
- package/src/providers/tts/SupertonicProvider.js +174 -0
- package/src/providers/tts/index.js +140 -0
- package/src/shell/adapter-registry.js +154 -0
- package/src/shell/caller-bridge.js +35 -0
- package/src/shell/camera-bridge.js +28 -0
- package/src/shell/canvas-bridge.js +32 -0
- package/src/shell/commercial-bridge.js +44 -0
- package/src/shell/face-bridge.js +44 -0
- package/src/shell/music-bridge.js +60 -0
- package/src/shell/orchestrator.js +233 -0
- package/src/shell/profile-discovery.js +303 -0
- package/src/shell/sounds-bridge.js +28 -0
- package/src/shell/transcript-bridge.js +61 -0
- package/src/shell/waveform-bridge.js +33 -0
- package/src/styles/base.css +2862 -0
- package/src/styles/face.css +417 -0
- package/src/styles/pi-overrides.css +89 -0
- package/src/styles/theme-dark.css +67 -0
- package/src/test-tts.html +175 -0
- package/src/ui/AppShell.js +544 -0
- package/src/ui/ProfileSwitcher.js +228 -0
- package/src/ui/SessionControl.js +240 -0
- package/src/ui/face/FacePicker.js +195 -0
- package/src/ui/face/FaceRenderer.js +309 -0
- package/src/ui/settings/PlaylistEditor.js +366 -0
- package/src/ui/settings/SettingsPanel.css +684 -0
- package/src/ui/settings/SettingsPanel.js +419 -0
- package/src/ui/settings/TTSVoicePreview.js +210 -0
- package/src/ui/themes/ThemeManager.js +213 -0
- package/src/ui/visualizers/BaseVisualizer.js +29 -0
- package/src/ui/visualizers/PartyFXVisualizer.css +291 -0
- package/src/ui/visualizers/PartyFXVisualizer.js +637 -0
- package/static/emulators/jsdos/js-dos.css +1 -0
- package/static/emulators/jsdos/js-dos.js +22 -0
- package/static/favicon.svg +55 -0
- package/static/icons/apple-touch-icon.png +0 -0
- package/static/icons/favicon-32.png +0 -0
- package/static/icons/icon-192.png +0 -0
- package/static/icons/icon-512.png +0 -0
- package/static/install.html +449 -0
- package/static/manifest.json +26 -0
- package/static/sw.js +21 -0
- package/tts_providers/__init__.py +136 -0
- package/tts_providers/base_provider.py +319 -0
- package/tts_providers/groq_provider.py +155 -0
- package/tts_providers/hume_provider.py +226 -0
- package/tts_providers/providers_config.json +119 -0
- package/tts_providers/qwen3_provider.py +371 -0
- package/tts_providers/resemble_provider.py +315 -0
- package/tts_providers/supertonic_provider.py +557 -0
- package/tts_providers/supertonic_tts.py +399 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>TTS Module Test</title>
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
10
|
+
max-width: 600px;
|
|
11
|
+
margin: 50px auto;
|
|
12
|
+
padding: 20px;
|
|
13
|
+
background: #1a1a2e;
|
|
14
|
+
color: #eee;
|
|
15
|
+
}
|
|
16
|
+
h1 { color: #00d4ff; }
|
|
17
|
+
.section {
|
|
18
|
+
background: #16213e;
|
|
19
|
+
padding: 20px;
|
|
20
|
+
border-radius: 8px;
|
|
21
|
+
margin-bottom: 20px;
|
|
22
|
+
}
|
|
23
|
+
label { display: block; margin-bottom: 5px; color: #888; }
|
|
24
|
+
select, textarea, button {
|
|
25
|
+
width: 100%;
|
|
26
|
+
padding: 10px;
|
|
27
|
+
margin-bottom: 15px;
|
|
28
|
+
border: 1px solid #333;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
background: #0f0f23;
|
|
31
|
+
color: #fff;
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
}
|
|
34
|
+
textarea {
|
|
35
|
+
min-height: 100px;
|
|
36
|
+
resize: vertical;
|
|
37
|
+
}
|
|
38
|
+
button {
|
|
39
|
+
background: #00d4ff;
|
|
40
|
+
color: #000;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
border: none;
|
|
44
|
+
}
|
|
45
|
+
button:hover { background: #00a8cc; }
|
|
46
|
+
button:disabled { background: #555; cursor: not-allowed; }
|
|
47
|
+
.status {
|
|
48
|
+
padding: 10px;
|
|
49
|
+
border-radius: 4px;
|
|
50
|
+
margin-top: 10px;
|
|
51
|
+
}
|
|
52
|
+
.status.success { background: #1a472a; }
|
|
53
|
+
.status.error { background: #4a1a1a; }
|
|
54
|
+
.status.info { background: #1a3a4a; }
|
|
55
|
+
</style>
|
|
56
|
+
</head>
|
|
57
|
+
<body>
|
|
58
|
+
<h1>TTS Module Test</h1>
|
|
59
|
+
|
|
60
|
+
<div class="section">
|
|
61
|
+
<label>Provider</label>
|
|
62
|
+
<select id="provider-select">
|
|
63
|
+
<option value="supertonic">Supertonic (Free)</option>
|
|
64
|
+
<option value="hume">Hume EVI</option>
|
|
65
|
+
</select>
|
|
66
|
+
|
|
67
|
+
<label>Voice</label>
|
|
68
|
+
<select id="voice-select">
|
|
69
|
+
<option value="M1">M1 (Male)</option>
|
|
70
|
+
<option value="M2">M2 (Male)</option>
|
|
71
|
+
<option value="F1">F1 (Female)</option>
|
|
72
|
+
<option value="F2">F2 (Female)</option>
|
|
73
|
+
</select>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div class="section">
|
|
77
|
+
<label>Text to Speak</label>
|
|
78
|
+
<textarea id="text-input">Hello! This is a test of the modular TTS system. If you can hear this, the Supertonic provider is working correctly.</textarea>
|
|
79
|
+
|
|
80
|
+
<button id="speak-btn">Speak</button>
|
|
81
|
+
<button id="stop-btn" style="background: #e74c3c;">Stop</button>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div id="status" class="status info">Ready</div>
|
|
85
|
+
|
|
86
|
+
<script type="module">
|
|
87
|
+
import { ttsRegistry } from './providers/tts/index.js';
|
|
88
|
+
|
|
89
|
+
const providerSelect = document.getElementById('provider-select');
|
|
90
|
+
const voiceSelect = document.getElementById('voice-select');
|
|
91
|
+
const textInput = document.getElementById('text-input');
|
|
92
|
+
const speakBtn = document.getElementById('speak-btn');
|
|
93
|
+
const stopBtn = document.getElementById('stop-btn');
|
|
94
|
+
const statusDiv = document.getElementById('status');
|
|
95
|
+
|
|
96
|
+
function setStatus(message, type = 'info') {
|
|
97
|
+
statusDiv.textContent = message;
|
|
98
|
+
statusDiv.className = `status ${type}`;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function updateVoiceOptions() {
|
|
102
|
+
const voices = ttsRegistry.getVoices();
|
|
103
|
+
voiceSelect.innerHTML = '';
|
|
104
|
+
voices.forEach(v => {
|
|
105
|
+
const opt = document.createElement('option');
|
|
106
|
+
opt.value = v;
|
|
107
|
+
opt.textContent = v;
|
|
108
|
+
voiceSelect.appendChild(opt);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Initialize
|
|
113
|
+
async function init() {
|
|
114
|
+
try {
|
|
115
|
+
setStatus('Initializing TTS providers...');
|
|
116
|
+
|
|
117
|
+
// Configure with server URL
|
|
118
|
+
const config = {
|
|
119
|
+
serverUrl: window.location.origin
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
await ttsRegistry.initAll(config);
|
|
123
|
+
|
|
124
|
+
setStatus('TTS providers initialized', 'success');
|
|
125
|
+
updateVoiceOptions();
|
|
126
|
+
|
|
127
|
+
} catch (error) {
|
|
128
|
+
console.error('Init error:', error);
|
|
129
|
+
setStatus(`Init failed: ${error.message}`, 'error');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Event handlers
|
|
134
|
+
providerSelect.addEventListener('change', (e) => {
|
|
135
|
+
ttsRegistry.switchTo(e.target.value);
|
|
136
|
+
updateVoiceOptions();
|
|
137
|
+
setStatus(`Switched to ${e.target.value}`, 'info');
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
voiceSelect.addEventListener('change', (e) => {
|
|
141
|
+
ttsRegistry.setVoice(e.target.value);
|
|
142
|
+
setStatus(`Voice set to ${e.target.value}`, 'info');
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
speakBtn.addEventListener('click', async () => {
|
|
146
|
+
const text = textInput.value.trim();
|
|
147
|
+
if (!text) {
|
|
148
|
+
setStatus('Please enter some text', 'error');
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
speakBtn.disabled = true;
|
|
153
|
+
setStatus('Speaking...', 'info');
|
|
154
|
+
|
|
155
|
+
const success = await ttsRegistry.speak(text);
|
|
156
|
+
|
|
157
|
+
if (success) {
|
|
158
|
+
setStatus('Speech started', 'success');
|
|
159
|
+
} else {
|
|
160
|
+
setStatus('Speech failed', 'error');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
speakBtn.disabled = false;
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
stopBtn.addEventListener('click', () => {
|
|
167
|
+
ttsRegistry.stop();
|
|
168
|
+
setStatus('Stopped', 'info');
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
// Start
|
|
172
|
+
init();
|
|
173
|
+
</script>
|
|
174
|
+
</body>
|
|
175
|
+
</html>
|