Skip to content

Commit

Permalink
馃悰 fix: Fix stt error handle
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 19, 2023
1 parent 686f208 commit aaa9395
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/react/useOpenAISTT/useOpenAISTTAutoStop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ export const useOpenAISTTAutoStop = (
locale,
{
onBlobAvailable: (blobData) => {
if (!text || !blobData) {
console.error('Error useOpenAISTTAutoStop:', 'No text or blob available');
onError?.('No text or blob available', text as any, {} as any);
setIsGlobalLoading(false);
stop();
return;
}
setShouldFetch(true);
onBlobAvailable?.(blobData);
},
Expand Down
2 changes: 0 additions & 2 deletions src/react/useOpenAISTT/useOpenAISTTInteractive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ export const useOpenAISTTInteractive = (
useSpeechRecognitionInteractive(locale, {
onBlobAvailable: (blobData) => {
if (!text || !blobData) {
console.error('Error useOpenAISTTAutoStop:', 'No text or blob available');
onError?.('No text or blob available', text as any, {} as any);
setIsGlobalLoading(false);
stop();
return;
Expand Down

0 comments on commit aaa9395

Please sign in to comment.