Compare commits
2 Commits
5872e0b288
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a25e166c14 | ||
|
|
db470a5d28 |
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user