.
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user