feat: add voice transcription support with groq (fixes #13)

This commit is contained in:
Manus AI
2026-02-02 04:33:26 -05:00
parent eaf494ea31
commit 42f62c0c1a
8 changed files with 104 additions and 2 deletions
+5
View File
@@ -107,6 +107,11 @@ class WhatsAppChannel(BaseChannel):
# Extract just the phone number as chat_id
chat_id = sender.split("@")[0] if "@" in sender else sender
# Handle voice transcription if it's a voice message
if content == "[Voice Message]":
logger.info(f"Voice message received from {chat_id}, but direct download from bridge is not yet supported.")
content = "[Voice Message: Transcription not available for WhatsApp yet]"
await self._handle_message(
sender_id=chat_id,
chat_id=sender, # Use full JID for replies