Skip to content

Commit

Permalink
fix: potential fix for connection dropping - cannot repo on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes committed Apr 12, 2024
1 parent 5f9b25b commit 05f5e93
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions app/components/Conversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,9 @@ export default function Conversation(): JSX.Element {
return () => {
clearTimeout(failsafeTimeout);
};
}, [
microphoneOpen,
currentUtterance,
append,
clearTranscriptParts,
failsafeTimeout,
]);

// eslint-disable-next-line react-hooks/exhaustive-deps
}, [microphoneOpen, currentUtterance]);

const onSpeechStart = () => {
/**
Expand All @@ -205,7 +201,6 @@ export default function Conversation(): JSX.Element {
*/
if (!microphoneOpen) return;


/**
* We we're talking again, we want to wait for a transcript.
*/
Expand Down Expand Up @@ -334,7 +329,7 @@ export default function Conversation(): JSX.Element {
if (!content) return;

/**
* failsafe was triggered since we last sent a message to TTS
* failsafe was triggered since we last sent a message to TTS
*/
if (failsafeTriggered) {
clearTranscriptParts();
Expand Down

0 comments on commit 05f5e93

Please sign in to comment.