[groq] Research: NotebookLM — create audio overview of SOUL.md as podcast (#293) (#392)
Some checks failed
Deploy Nexus / deploy (push) Failing after 4s
CI / validate (pull_request) Failing after 5s
CI / auto-merge (pull_request) Has been skipped

This commit was merged in pull request #392.
This commit is contained in:
2026-03-24 13:20:15 +00:00
parent 024d3a458a
commit 0c7fb43b2d

17
app.js
View File

@@ -3731,6 +3731,23 @@ async function initBookshelves() {
const errorEl = document.getElementById('podcast-error');
errorEl.style.display = 'none';
errorEl.textContent = '';
errorEl.style.opacity = '1';
setTimeout(() => {
errorEl.style.opacity = '0';
setTimeout(() => errorEl.style.display = 'none', 300);
}, 3000);
try {
const response = await fetch('SOUL.md');
if (!response.ok) throw new Error('Failed to load SOUL.md');
const text = await response.text();
const lines = text.split('\n').filter(line => line.trim() !== '');
speakLines(lines);
} catch (err) {
errorEl.textContent = 'Failed to load SOUL.md. Check console for details.';
errorEl.style.display = 'block';
console.error('Podcast error:', err);
}
try {
const response = await fetch('SOUL.md');