Compare commits

..

2 Commits

Author SHA1 Message Date
MrRaph_
a25e166c14 . 2025-03-27 08:57:24 +01:00
MrRaph_
db470a5d28 . 2025-03-27 08:57:04 +01:00
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
maubot: 0.1.0
id: nigzu.com.maubot-stt
version: 0.3.3
version: 0.3.4
license: MIT
modules:
- openai-whisper

View File

@@ -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(