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 = () => { ]} >