first pass of tts and audio stuff

This commit is contained in:
legop3
2025-11-27 16:26:21 -05:00
parent 871e04a8ba
commit 9289fb3467
20 changed files with 425 additions and 60 deletions
+2 -2
View File
@@ -51,9 +51,9 @@ export function ChatProvider({ children }) {
}, [playSound, session?.socketId, socket]);
const sendMessage = useCallback(
(text) =>
(text, tts = null) =>
new Promise((resolve, reject) => {
socket.emit('chat:send', { text }, (resp = {}) => {
socket.emit('chat:send', { text, tts }, (resp = {}) => {
if (resp.error) {
reject(new Error(resp.error));
} else {