mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 01:50:47 -04:00
first pass of tts and audio stuff
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user