[groq] Research: NotebookLM — create audio overview of SOUL.md as podcast (#293) #372
3
app.js
3
app.js
@@ -2789,9 +2789,11 @@ document.getElementById('podcast-toggle').addEventListener('click', () => {
|
||||
utterance.rate = 0.9;
|
||||
utterance.pitch = 0.9;
|
||||
btn.textContent = '⏹';
|
||||
btn.classList.add('active');
|
||||
speechSynthesis.speak(utterance);
|
||||
utterance.onend = () => {
|
||||
btn.textContent = '🎧';
|
||||
btn.classList.remove('active');
|
||||
};
|
||||
})
|
||||
.catch(err => {
|
||||
@@ -2802,6 +2804,7 @@ document.getElementById('podcast-toggle').addEventListener('click', () => {
|
||||
} else {
|
||||
speechSynthesis.cancel();
|
||||
btn.textContent = '🎧';
|
||||
btn.classList.remove('active');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user