diff src/chat.js @ 73:60ebb333b40c default tip

chunked encoding
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 28 Aug 2025 05:16:32 -0600
parents 44bec62c49e2
children
line wrap: on
line diff
--- a/src/chat.js	Mon Aug 25 03:45:03 2025 -0600
+++ b/src/chat.js	Thu Aug 28 05:16:32 2025 -0600
@@ -89,7 +89,7 @@
 	textarea.parentNode.scrollIntoViewIfNeeded(false);
 	if( !audio )
 		audio = document.querySelector('div[buttons] audio');
-	audio.src = `/tts.mp3?voice=${chat.voice}&instructions=${encodeURIComponent(chat.tts_instructions)}&text=${encodeURIComponent(textarea.value)}`;
+	audio.src = `/tts.wav?voice=${chat.voice}&instructions=${encodeURIComponent(chat.tts_instructions)}&text=${encodeURIComponent(textarea.value)}`;
 }
 
 function askAi1() {