Mercurial Hosting > lang
comparison src/site.js @ 73:60ebb333b40c
chunked encoding
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 28 Aug 2025 05:16:32 -0600 |
parents | cc20eebaa74a |
children | 64e35a92d163 |
comparison
equal
deleted
inserted
replaced
72:5d274f7a4637 | 73:60ebb333b40c |
---|---|
164 let rts = mdDiv.querySelectorAll('rt'); | 164 let rts = mdDiv.querySelectorAll('rt'); |
165 for( let rt of rts ) { | 165 for( let rt of rts ) { |
166 rt.remove(); | 166 rt.remove(); |
167 } | 167 } |
168 //console.log(mdDiv.textContent); | 168 //console.log(mdDiv.textContent); |
169 parent.querySelector('audio').src = `/tts.mp3?voice=${voice}&instructions=${encodeURIComponent(instructions)}&text=${encodeURIComponent(mdDiv.textContent)}`; | 169 parent.querySelector('audio').src = `/tts.wav?voice=${voice}&instructions=${encodeURIComponent(instructions)}&text=${encodeURIComponent(mdDiv.textContent)}`; |
170 } | 170 } |
171 } | 171 } |
172 } | 172 } |