diff --git a/mobile/app/lib/components/prompt_box/prompt_box_widget.dart b/mobile/app/lib/components/prompt_box/prompt_box_widget.dart index c7a9082..ad188df 100644 --- a/mobile/app/lib/components/prompt_box/prompt_box_widget.dart +++ b/mobile/app/lib/components/prompt_box/prompt_box_widget.dart @@ -98,40 +98,6 @@ class _PromptBoxWidgetState extends State { ), ), ), - Expanded( // TODO: Microphone context upload -> or STT?? - child: Padding( - padding: const EdgeInsets.all(14), - child: FlutterFlowIconButton( - borderColor: Colors.transparent, - borderRadius: 30, - borderWidth: 1, - buttonSize: 40, - icon: // Backend.stt.speechToText.isListening ? - // const Icon( - // Icons.mic_none, - // color: AppTheme.error, - // size: 30, - // ) : - const Icon( - Icons.mic_off_outlined, - color: AppTheme.darkest, - size: 30, - ), - onPressed: () { - if(Backend.stt.isSpeechEnabled()) { - if(Backend.stt.speechToText.isListening) { - print('De-activating STT.'); - Backend.stt.stopListening(); - } - print('Activating STT.'); - entry_text = Backend.stt.startListening() as String; - } else { - print('Microphone is unavailable for STT'); - } - }, - ), - ), - ), Expanded( // TODO: Video context upload child: Padding( padding: const EdgeInsets.all(14), diff --git a/mobile/app/lib/util/speech_to_text.dart b/mobile/app/lib/util/speech_to_text.dart index 60e3630..4ec5e2f 100644 --- a/mobile/app/lib/util/speech_to_text.dart +++ b/mobile/app/lib/util/speech_to_text.dart @@ -39,5 +39,5 @@ class SpeechToText { /// This is the callback that the SpeechToText plugin calls when /// the platform returns recognized words. - String onSpeechResult(SpeechRecognitionResult result) => (text = result.recognizedWords); + void onSpeechResult(SpeechRecognitionResult result) => (text = result.recognizedWords); } \ No newline at end of file