This commit is contained in:
MrRaph_
2025-03-27 08:57:04 +01:00
parent 5872e0b288
commit db470a5d28

View File

@@ -82,8 +82,11 @@ class WhisperPlugin(Plugin):
transcription = await self.transcribe_audio(audio_bytes, filename, mime_type) 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: 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) await self.client.set_typing(event.room_id, timeout=0)
content = TextMessageEventContent( content = TextMessageEventContent(