aimeat 1.2.4 → 1.2.6
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/dist/public/lib/samples/LICENSE.md +29 -0
- package/dist/public/lib/samples/bass/.gitkeep +0 -0
- package/dist/public/lib/samples/drums/.gitkeep +0 -0
- package/dist/public/lib/samples/flute/.gitkeep +0 -0
- package/dist/public/lib/samples/guitar/.gitkeep +0 -0
- package/dist/public/lib/samples/piano/A2.mp3 +0 -0
- package/dist/public/lib/samples/piano/A3.mp3 +0 -0
- package/dist/public/lib/samples/piano/A4.mp3 +0 -0
- package/dist/public/lib/samples/piano/C3.mp3 +0 -0
- package/dist/public/lib/samples/piano/C4.mp3 +0 -0
- package/dist/public/lib/samples/piano/C5.mp3 +0 -0
- package/dist/public/lib/samples/piano/C6.mp3 +0 -0
- package/dist/public/lib/samples/piano/C7.mp3 +0 -0
- package/dist/public/lib/samples/piano/Ds3.mp3 +0 -0
- package/dist/public/lib/samples/piano/Ds4.mp3 +0 -0
- package/dist/public/lib/samples/piano/Ds5.mp3 +0 -0
- package/dist/public/llms-template.txt +669 -34
- package/dist/public/spa.html +1 -34
- package/dist/src/routes/bootstrap.d.ts +9 -0
- package/dist/src/routes/bootstrap.d.ts.map +1 -1
- package/dist/src/routes/bootstrap.js +240 -0
- package/dist/src/routes/bootstrap.js.map +1 -1
- package/dist/src/routes/lib-audio.d.ts +15 -0
- package/dist/src/routes/lib-audio.d.ts.map +1 -0
- package/dist/src/routes/lib-audio.js +848 -0
- package/dist/src/routes/lib-audio.js.map +1 -0
- package/dist/src/routes/lib-speech.d.ts +13 -0
- package/dist/src/routes/lib-speech.d.ts.map +1 -0
- package/dist/src/routes/lib-speech.js +309 -0
- package/dist/src/routes/lib-speech.js.map +1 -0
- package/dist/src/routes/libs.d.ts.map +1 -1
- package/dist/src/routes/libs.js +27 -1
- package/dist/src/routes/libs.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|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;;;;;;;;;;;;;;;;;;;;;;;;;;;CAi0BzB,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file lib-speech.ts
|
|
3
|
+
* @description AIMEAT Speech Library generator. Returns a self-contained JavaScript IIFE
|
|
4
|
+
* that provides AIMEAT.speech with text-to-speech, speech-to-text, voice commands,
|
|
5
|
+
* and a pluggable provider architecture for cloud TTS/STT services.
|
|
6
|
+
* @structure aimeatSpeechLib(config) -> JS string
|
|
7
|
+
* @usage Served at /v1/libs/aimeat-speech.js via libs.ts router
|
|
8
|
+
* @version-history
|
|
9
|
+
* v1.0.0 — 2026-04-30 — Initial implementation
|
|
10
|
+
*/
|
|
11
|
+
import type { AimeatConfig } from '../config.js';
|
|
12
|
+
export declare function aimeatSpeechLib(_config: AimeatConfig): string;
|
|
13
|
+
//# sourceMappingURL=lib-speech.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib-speech.d.ts","sourceRoot":"","sources":["../../../src/routes/lib-speech.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAmT7D"}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
export function aimeatSpeechLib(_config) {
|
|
2
|
+
return `// aimeat-speech.js — AIMEAT Speech Library
|
|
3
|
+
// Node: ${_config.nodeId} | Generated: ${new Date().toISOString()}
|
|
4
|
+
// Include: <script src="${_config.baseUrl}/v1/libs/aimeat-speech.js"><\\/script>
|
|
5
|
+
// Usage: AIMEAT.speech.say('Hello'); await AIMEAT.speech.listen();
|
|
6
|
+
(function(global) {
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
// ══════════════════════════════════════════════════════
|
|
10
|
+
// Event system
|
|
11
|
+
// ══════════════════════════════════════════════════════
|
|
12
|
+
|
|
13
|
+
var _listeners = {};
|
|
14
|
+
function emit(event, data) { (_listeners[event] || []).forEach(function(fn) { fn(data); }); }
|
|
15
|
+
|
|
16
|
+
// ══════════════════════════════════════════════════════
|
|
17
|
+
// Capability detection
|
|
18
|
+
// ══════════════════════════════════════════════════════
|
|
19
|
+
|
|
20
|
+
var _supported = {
|
|
21
|
+
get tts() { return typeof window !== 'undefined' && 'speechSynthesis' in window; },
|
|
22
|
+
get stt() { return typeof window !== 'undefined' && ('SpeechRecognition' in window || 'webkitSpeechRecognition' in window); }
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// ══════════════════════════════════════════════════════
|
|
26
|
+
// Provider slots
|
|
27
|
+
// ══════════════════════════════════════════════════════
|
|
28
|
+
|
|
29
|
+
var _ttsProvider = null;
|
|
30
|
+
var _sttProvider = null;
|
|
31
|
+
|
|
32
|
+
// ══════════════════════════════════════════════════════
|
|
33
|
+
// TTS state
|
|
34
|
+
// ══════════════════════════════════════════════════════
|
|
35
|
+
|
|
36
|
+
var _speaking = false;
|
|
37
|
+
var _ttsQueue = [];
|
|
38
|
+
|
|
39
|
+
// ══════════════════════════════════════════════════════
|
|
40
|
+
// STT state
|
|
41
|
+
// ══════════════════════════════════════════════════════
|
|
42
|
+
|
|
43
|
+
var _listening = false;
|
|
44
|
+
var _recognition = null;
|
|
45
|
+
var _mediaRecorder = null;
|
|
46
|
+
|
|
47
|
+
// ══════════════════════════════════════════════════════
|
|
48
|
+
// Voices
|
|
49
|
+
// ══════════════════════════════════════════════════════
|
|
50
|
+
|
|
51
|
+
var _voicesLoaded = false;
|
|
52
|
+
var _voicesList = [];
|
|
53
|
+
|
|
54
|
+
function loadVoices() {
|
|
55
|
+
if (!_supported.tts) return [];
|
|
56
|
+
_voicesList = speechSynthesis.getVoices().map(function(v) {
|
|
57
|
+
return { name: v.name, lang: v.lang };
|
|
58
|
+
});
|
|
59
|
+
_voicesLoaded = _voicesList.length > 0;
|
|
60
|
+
return _voicesList;
|
|
61
|
+
}
|
|
62
|
+
if (typeof window !== 'undefined' && _supported.tts) {
|
|
63
|
+
speechSynthesis.addEventListener('voiceschanged', loadVoices);
|
|
64
|
+
loadVoices();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// ══════════════════════════════════════════════════════
|
|
68
|
+
// TTS: Native implementation
|
|
69
|
+
// ══════════════════════════════════════════════════════
|
|
70
|
+
|
|
71
|
+
function nativeSay(text, opts) {
|
|
72
|
+
return new Promise(function(resolve) {
|
|
73
|
+
var utt = new SpeechSynthesisUtterance(text);
|
|
74
|
+
if (opts && opts.lang) utt.lang = opts.lang;
|
|
75
|
+
if (opts && opts.rate !== undefined) utt.rate = opts.rate;
|
|
76
|
+
if (opts && opts.pitch !== undefined) utt.pitch = opts.pitch;
|
|
77
|
+
if (opts && opts.volume !== undefined) utt.volume = opts.volume;
|
|
78
|
+
if (opts && opts.voice) {
|
|
79
|
+
var voices = speechSynthesis.getVoices();
|
|
80
|
+
var match = voices.find(function(v) {
|
|
81
|
+
return v.name === opts.voice || v.name.indexOf(opts.voice) >= 0;
|
|
82
|
+
});
|
|
83
|
+
if (match) utt.voice = match;
|
|
84
|
+
}
|
|
85
|
+
utt.onstart = function() { emit('start', {}); };
|
|
86
|
+
utt.onend = function() { _speaking = false; processQueue(); emit('end', {}); resolve(); };
|
|
87
|
+
utt.onboundary = function(e) {
|
|
88
|
+
if (e.name === 'word') emit('word', { word: text.substr(e.charIndex, e.charLength || 10).split(/\\s/)[0], index: e.charIndex });
|
|
89
|
+
};
|
|
90
|
+
utt.onerror = function(e) { _speaking = false; processQueue(); emit('error', { error: e.error }); resolve(); };
|
|
91
|
+
_speaking = true;
|
|
92
|
+
speechSynthesis.speak(utt);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// ══════════════════════════════════════════════════════
|
|
97
|
+
// TTS: Cloud provider playback
|
|
98
|
+
// ══════════════════════════════════════════════════════
|
|
99
|
+
|
|
100
|
+
function cloudSay(text, opts) {
|
|
101
|
+
if (!_ttsProvider || !_ttsProvider.say) return Promise.resolve();
|
|
102
|
+
_speaking = true;
|
|
103
|
+
emit('start', {});
|
|
104
|
+
return _ttsProvider.say(text, opts || {}).then(function(blob) {
|
|
105
|
+
if (!blob) { _speaking = false; processQueue(); emit('end', {}); return; }
|
|
106
|
+
var ac = new (window.AudioContext || window.webkitAudioContext)();
|
|
107
|
+
return blob.arrayBuffer().then(function(ab) { return ac.decodeAudioData(ab); }).then(function(buf) {
|
|
108
|
+
var source = ac.createBufferSource();
|
|
109
|
+
source.buffer = buf;
|
|
110
|
+
source.connect(ac.destination);
|
|
111
|
+
source.onended = function() { _speaking = false; processQueue(); emit('end', {}); };
|
|
112
|
+
source.start();
|
|
113
|
+
});
|
|
114
|
+
}).catch(function(e) {
|
|
115
|
+
_speaking = false; processQueue();
|
|
116
|
+
emit('error', { error: e.message });
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function processQueue() {
|
|
121
|
+
if (_ttsQueue.length > 0 && !_speaking) {
|
|
122
|
+
var next = _ttsQueue.shift();
|
|
123
|
+
doSay(next.text, next.opts);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function doSay(text, opts) {
|
|
128
|
+
if (_ttsProvider) return cloudSay(text, opts);
|
|
129
|
+
if (!_supported.tts) { console.warn('[aimeat-speech] TTS not supported in this browser'); return Promise.resolve(); }
|
|
130
|
+
return nativeSay(text, opts);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// ══════════════════════════════════════════════════════
|
|
134
|
+
// STT: Native implementation
|
|
135
|
+
// ══════════════════════════════════════════════════════
|
|
136
|
+
|
|
137
|
+
function nativeListen(opts) {
|
|
138
|
+
return new Promise(function(resolve, reject) {
|
|
139
|
+
var SpeechRecog = window.SpeechRecognition || window.webkitSpeechRecognition;
|
|
140
|
+
if (!SpeechRecog) { reject(new Error('SpeechRecognition not supported')); return; }
|
|
141
|
+
|
|
142
|
+
_recognition = new SpeechRecog();
|
|
143
|
+
_recognition.lang = (opts && opts.lang) || 'en-US';
|
|
144
|
+
_recognition.continuous = (opts && opts.continuous) || false;
|
|
145
|
+
_recognition.interimResults = (opts && opts.interimResults) || false;
|
|
146
|
+
|
|
147
|
+
var commands = (opts && opts.commands) || null;
|
|
148
|
+
|
|
149
|
+
_recognition.onstart = function() { _listening = true; emit('listening', {}); };
|
|
150
|
+
_recognition.onresult = function(e) {
|
|
151
|
+
for (var i = e.resultIndex; i < e.results.length; i++) {
|
|
152
|
+
var result = e.results[i];
|
|
153
|
+
var text = result[0].transcript.trim();
|
|
154
|
+
var final = result.isFinal;
|
|
155
|
+
var confidence = result[0].confidence;
|
|
156
|
+
emit('result', { text: text, final: final, confidence: confidence });
|
|
157
|
+
if (final && commands) matchCommand(text, commands);
|
|
158
|
+
if (final && !_recognition.continuous) {
|
|
159
|
+
resolve({ text: text, confidence: confidence, lang: _recognition.lang });
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
_recognition.onerror = function(e) {
|
|
164
|
+
_listening = false;
|
|
165
|
+
emit('error', { error: e.error });
|
|
166
|
+
if (!_recognition.continuous) reject(new Error(e.error));
|
|
167
|
+
};
|
|
168
|
+
_recognition.onend = function() {
|
|
169
|
+
_listening = false;
|
|
170
|
+
emit('stopped', {});
|
|
171
|
+
if (opts && opts.continuous && _recognition) {
|
|
172
|
+
try { _recognition.start(); } catch(e) {}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
_recognition.start();
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// ══════════════════════════════════════════════════════
|
|
181
|
+
// STT: Cloud provider (MediaRecorder -> blob -> provider)
|
|
182
|
+
// ══════════════════════════════════════════════════════
|
|
183
|
+
|
|
184
|
+
function cloudListen(opts) {
|
|
185
|
+
if (!_sttProvider || !_sttProvider.listen) return Promise.reject(new Error('No STT provider configured'));
|
|
186
|
+
|
|
187
|
+
return navigator.mediaDevices.getUserMedia({ audio: true }).then(function(stream) {
|
|
188
|
+
return new Promise(function(resolve, reject) {
|
|
189
|
+
var chunks = [];
|
|
190
|
+
_mediaRecorder = new MediaRecorder(stream, { mimeType: 'audio/webm' });
|
|
191
|
+
_listening = true;
|
|
192
|
+
emit('listening', {});
|
|
193
|
+
|
|
194
|
+
_mediaRecorder.ondataavailable = function(e) { if (e.data.size > 0) chunks.push(e.data); };
|
|
195
|
+
_mediaRecorder.onstop = function() {
|
|
196
|
+
_listening = false;
|
|
197
|
+
stream.getTracks().forEach(function(t) { t.stop(); });
|
|
198
|
+
emit('stopped', {});
|
|
199
|
+
var blob = new Blob(chunks, { type: 'audio/webm' });
|
|
200
|
+
_sttProvider.listen(blob, opts || {}).then(function(result) {
|
|
201
|
+
var text = typeof result === 'string' ? result : (result.text || result.transcript || '');
|
|
202
|
+
var confidence = typeof result === 'object' ? (result.confidence || 1) : 1;
|
|
203
|
+
emit('result', { text: text, final: true, confidence: confidence });
|
|
204
|
+
resolve({ text: text, confidence: confidence, lang: (opts && opts.lang) || 'en-US' });
|
|
205
|
+
}).catch(function(e) {
|
|
206
|
+
emit('error', { error: e.message }); reject(e);
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
_mediaRecorder.start();
|
|
211
|
+
if (!(opts && opts.continuous)) {
|
|
212
|
+
setTimeout(function() {
|
|
213
|
+
if (_mediaRecorder && _mediaRecorder.state === 'recording') _mediaRecorder.stop();
|
|
214
|
+
}, (opts && opts.timeout) || 5000);
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// ══════════════════════════════════════════════════════
|
|
221
|
+
// Voice Command matching
|
|
222
|
+
// ══════════════════════════════════════════════════════
|
|
223
|
+
|
|
224
|
+
function matchCommand(text, commands) {
|
|
225
|
+
var lower = text.toLowerCase();
|
|
226
|
+
Object.keys(commands).forEach(function(pattern) {
|
|
227
|
+
var parts = pattern.toLowerCase().split(/\\s+/);
|
|
228
|
+
var regex = '^' + parts.map(function(p) {
|
|
229
|
+
if (p.startsWith('*')) return '(.+)';
|
|
230
|
+
return p.replace(/[.*+?^\\\${}()|[\\]\\\\]/g, '\\\\\\$&');
|
|
231
|
+
}).join('\\\\s+') + '\\$';
|
|
232
|
+
var match = lower.match(new RegExp(regex));
|
|
233
|
+
if (match) {
|
|
234
|
+
var captures = match.slice(1);
|
|
235
|
+
commands[pattern].apply(null, captures);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// ══════════════════════════════════════════════════════
|
|
241
|
+
// Public API
|
|
242
|
+
// ══════════════════════════════════════════════════════
|
|
243
|
+
|
|
244
|
+
var speech = {
|
|
245
|
+
say: function(text, opts) {
|
|
246
|
+
if (_speaking) {
|
|
247
|
+
_ttsQueue.push({ text: text, opts: opts });
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
return doSay(text, opts);
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
stop: function() {
|
|
254
|
+
if (_supported.tts) speechSynthesis.cancel();
|
|
255
|
+
_speaking = false;
|
|
256
|
+
_ttsQueue = [];
|
|
257
|
+
},
|
|
258
|
+
|
|
259
|
+
get speaking() { return _speaking; },
|
|
260
|
+
|
|
261
|
+
voices: function(opts) {
|
|
262
|
+
if (!_voicesLoaded) loadVoices();
|
|
263
|
+
if (opts && opts.lang) {
|
|
264
|
+
var lang = opts.lang.toLowerCase();
|
|
265
|
+
return _voicesList.filter(function(v) { return v.lang.toLowerCase().startsWith(lang); });
|
|
266
|
+
}
|
|
267
|
+
return _voicesList;
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
listen: function(opts) {
|
|
271
|
+
if (_sttProvider) return cloudListen(opts);
|
|
272
|
+
return nativeListen(opts);
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
stopListening: function() {
|
|
276
|
+
if (_recognition) { _recognition.continuous = false; try { _recognition.stop(); } catch(e){} _recognition = null; }
|
|
277
|
+
if (_mediaRecorder && _mediaRecorder.state === 'recording') { _mediaRecorder.stop(); _mediaRecorder = null; }
|
|
278
|
+
_listening = false;
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
get listening() { return _listening; },
|
|
282
|
+
|
|
283
|
+
get supported() { return _supported; },
|
|
284
|
+
|
|
285
|
+
use: function(type, provider) {
|
|
286
|
+
if (type === 'tts') _ttsProvider = provider;
|
|
287
|
+
else if (type === 'stt') _sttProvider = provider;
|
|
288
|
+
else console.warn('[aimeat-speech] Unknown provider type:', type);
|
|
289
|
+
},
|
|
290
|
+
|
|
291
|
+
on: function(event, fn) {
|
|
292
|
+
if (!_listeners[event]) _listeners[event] = [];
|
|
293
|
+
_listeners[event].push(fn);
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
off: function(event, fn) {
|
|
297
|
+
if (!_listeners[event]) return;
|
|
298
|
+
_listeners[event] = _listeners[event].filter(function(f) { return f !== fn; });
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
// ── Expose globally ──
|
|
303
|
+
if (!global.AIMEAT) global.AIMEAT = {};
|
|
304
|
+
global.AIMEAT.speech = speech;
|
|
305
|
+
|
|
306
|
+
})(typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : this);
|
|
307
|
+
`;
|
|
308
|
+
}
|
|
309
|
+
//# sourceMappingURL=lib-speech.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib-speech.js","sourceRoot":"","sources":["../../../src/routes/lib-speech.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,eAAe,CAAC,OAAqB;IACjD,OAAO;WACA,OAAO,CAAC,MAAM,iBAAiB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;2BACvC,OAAO,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+SzC,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libs.d.ts","sourceRoot":"","sources":["../../../src/routes/libs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"libs.d.ts","sourceRoot":"","sources":["../../../src/routes/libs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAUvD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAiK1E"}
|
package/dist/src/routes/libs.js
CHANGED
|
@@ -5,6 +5,8 @@ import { aimeatSocialLib } from './lib-social.js';
|
|
|
5
5
|
import { aimeatWalletLib } from './lib-wallet.js';
|
|
6
6
|
import { aimeatWorkLib } from './lib-work.js';
|
|
7
7
|
import { aimeatTunnelLib } from './lib-tunnel.js';
|
|
8
|
+
import { aimeatAudioLib } from './lib-audio.js';
|
|
9
|
+
import { aimeatSpeechLib } from './lib-speech.js';
|
|
8
10
|
/**
|
|
9
11
|
* Serves helper JavaScript libraries at /v1/libs/*
|
|
10
12
|
* These are self-contained scripts that AI-generated apps include via <script> tag.
|
|
@@ -40,6 +42,14 @@ export function libsRouter(config, _storage) {
|
|
|
40
42
|
router.get('/v1/libs/aimeat-tunnel.js', (_req, res) => {
|
|
41
43
|
res.type('application/javascript').send(aimeatTunnelLib(config));
|
|
42
44
|
});
|
|
45
|
+
// GET /v1/libs/aimeat-audio.js — Audio engine library
|
|
46
|
+
router.get('/v1/libs/aimeat-audio.js', (_req, res) => {
|
|
47
|
+
res.type('application/javascript').send(aimeatAudioLib(config));
|
|
48
|
+
});
|
|
49
|
+
// GET /v1/libs/aimeat-speech.js — Speech library
|
|
50
|
+
router.get('/v1/libs/aimeat-speech.js', (_req, res) => {
|
|
51
|
+
res.type('application/javascript').send(aimeatSpeechLib(config));
|
|
52
|
+
});
|
|
43
53
|
// GET /v1/libs/ — List available libraries
|
|
44
54
|
router.get('/v1/libs', (_req, res) => {
|
|
45
55
|
res.json({
|
|
@@ -100,6 +110,20 @@ export function libsRouter(config, _storage) {
|
|
|
100
110
|
include: `<script src="${config.baseUrl}/v1/libs/aimeat-tunnel.js"></script>`,
|
|
101
111
|
requires: 'aimeat-auth',
|
|
102
112
|
},
|
|
113
|
+
{
|
|
114
|
+
name: 'aimeat-audio',
|
|
115
|
+
url: '/v1/libs/aimeat-audio.js',
|
|
116
|
+
description: 'Audio engine: 6 built-in instruments (piano, guitar, bass, drums, flute, synth), custom synth builder, sample loader, soundboard, realtime bridge',
|
|
117
|
+
size_estimate: '~60KB',
|
|
118
|
+
include: `<script src="${config.baseUrl}/v1/libs/aimeat-audio.js"></script>`,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'aimeat-speech',
|
|
122
|
+
url: '/v1/libs/aimeat-speech.js',
|
|
123
|
+
description: 'Speech: text-to-speech, speech-to-text, voice commands, pluggable providers (ElevenLabs, Whisper, etc.)',
|
|
124
|
+
size_estimate: '~15KB',
|
|
125
|
+
include: `<script src="${config.baseUrl}/v1/libs/aimeat-speech.js"></script>`,
|
|
126
|
+
},
|
|
103
127
|
],
|
|
104
128
|
});
|
|
105
129
|
});
|
|
@@ -118,6 +142,8 @@ export function libsRouter(config, _storage) {
|
|
|
118
142
|
<script src="/v1/libs/aimeat-wallet.js"></script>
|
|
119
143
|
<script src="/v1/libs/aimeat-work.js"></script>
|
|
120
144
|
<script src="/v1/libs/aimeat-tunnel.js"></script>
|
|
145
|
+
<script src="/v1/libs/aimeat-audio.js"></script>
|
|
146
|
+
<script src="/v1/libs/aimeat-speech.js"></script>
|
|
121
147
|
</head>
|
|
122
148
|
<body>
|
|
123
149
|
<h1 id="title">AIMEAT Test Harness</h1>
|
|
@@ -128,7 +154,7 @@ window.tlog = function(msg) {
|
|
|
128
154
|
window.__testLog.push(msg);
|
|
129
155
|
document.getElementById('log').textContent = window.__testLog.join('\\n');
|
|
130
156
|
};
|
|
131
|
-
window.tlog('Libraries loaded: auth=' + !!AIMEAT.auth + ' data=' + !!AIMEAT.data + ' storage=' + !!AIMEAT.storage + ' social=' + !!AIMEAT.social + ' wallet=' + !!AIMEAT.wallet + ' work=' + !!AIMEAT.work + ' tunnel=' + !!AIMEAT.tunnel);
|
|
157
|
+
window.tlog('Libraries loaded: auth=' + !!AIMEAT.auth + ' data=' + !!AIMEAT.data + ' storage=' + !!AIMEAT.storage + ' social=' + !!AIMEAT.social + ' wallet=' + !!AIMEAT.wallet + ' work=' + !!AIMEAT.work + ' tunnel=' + !!AIMEAT.tunnel + ' audio=' + !!AIMEAT.audio + ' speech=' + !!AIMEAT.speech);
|
|
132
158
|
window.__ready = true;
|
|
133
159
|
</script>
|
|
134
160
|
</body></html>`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libs.js","sourceRoot":"","sources":["../../../src/routes/libs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGjC,OAAO,E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