From 823e86a0a8a1e296f7806f872d855a91487e8c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kopci=C5=84ski?= Date: Thu, 6 Mar 2025 15:58:06 +0100 Subject: [PATCH] changed isModelReady to isReady --- .../speech-to-text/screens/SpeechToTextScreen.tsx | 12 ++++++------ .../natural_language_processing/useSpeechToText.ts | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/speech-to-text/screens/SpeechToTextScreen.tsx b/examples/speech-to-text/screens/SpeechToTextScreen.tsx index a6fb0bf9..f9cfcb82 100644 --- a/examples/speech-to-text/screens/SpeechToTextScreen.tsx +++ b/examples/speech-to-text/screens/SpeechToTextScreen.tsx @@ -43,8 +43,8 @@ const float32ArrayFromPCMBinaryBuffer = (b64EncodedBuffer: string) => { export const SpeechToTextScreen = () => { const { - isModelGenerating, - isModelReady, + isGenerating, + isReady, downloadProgress, sequence, error, @@ -74,9 +74,9 @@ export const SpeechToTextScreen = () => { }; const buttonDisabled = - modalVisible || isModelGenerating || !isModelReady || isRecording; + modalVisible || isGenerating || !isReady || isRecording; const recordingButtonDisabled = - modalVisible || !isModelReady || DeviceInfo.isEmulatorSync(); + modalVisible || !isReady || DeviceInfo.isEmulatorSync(); return ( <> @@ -114,7 +114,7 @@ export const SpeechToTextScreen = () => { } > {sequence || - (isModelGenerating && 'Transcribing...') || + (isGenerating && 'Transcribing...') || 'Start transcription...'} @@ -179,7 +179,7 @@ export const SpeechToTextScreen = () => { ]} >