From 91cfac9fcffaf41e8e5bd2cc742eee6a1e94c0e7 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 16 Apr 2026 22:05:07 +0200 Subject: [PATCH] Add audio recording and transcription features to App.jsx --- src/App.jsx | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 8ad3106..eae8ff7 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -2558,6 +2558,27 @@ async function createNewChat() { removable onRemove={removeComposerAttachment} /> + {(isRecordingAudio || isTranscribingAudio) && ( +
+ {isRecordingAudio ? ( + + ) : ( + + )} + + {isRecordingAudio + ? `Listening ${formatRecordingDuration(audioRecordingMs)}` + : 'Transcribing audio…'} + +
+ )}
setInput(e.target.value)} onKeyDown={e => { - if (e.key === 'Enter' && !e.shiftKey) { + if (e.key === 'Enter' && !e.shiftKey && !isRecordingAudio && !isTranscribingAudio) { e.preventDefault(); sendMessage(); } @@ -2658,6 +2679,43 @@ async function createNewChat() { )} + {audioInputEnabled && ( + + )}