diff --git a/openai-whisper.py b/openai-whisper.py index 4b0ed73..8a7fa24 100644 --- a/openai-whisper.py +++ b/openai-whisper.py @@ -82,8 +82,11 @@ class WhisperPlugin(Plugin): transcription = await self.transcribe_audio(audio_bytes, filename, mime_type) + # Si l'étude est activée, on utilise son résultat uniquement si celui-ci renvoie une commande if self.search_reminders_and_events: - transcription = await self.study_transcribe(transcription) + studied = await self.study_transcribe(transcription) + if studied.startswith("!rappel") or studied.startswith("!agenda"): + transcription = studied await self.client.set_typing(event.room_id, timeout=0) content = TextMessageEventContent(