Skip to content

feat(whatsapp): implement send_voice for native audio message delivery - #13002

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-7ecff58d
Apr 20, 2026
Merged

feat(whatsapp): implement send_voice for native audio message delivery#13002
teknium1 merged 1 commit into
mainfrom
hermes/hermes-7ecff58d

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Cherry-pick of #12513 by @sprmn24 onto current main.

Adds send_voice to the WhatsApp adapter, routing through _send_media_to_bridge with media_type='audio'. Matches the existing send_video / send_document pattern. Without this, TTS/audio responses fell back to the base class which sends the file path as text.

Changes

  • gateway/platforms/whatsapp.py: added send_voice method (11 lines)

Validation

Clean cherry-pick, no conflicts. Method slots in between send_video and send_document exactly as intended.

WhatsApp already receives incoming voice messages (audio/ogg via the
bridge) but lacked a send_voice implementation, so TTS and audio
responses fell back to the base class send_image path instead of being
delivered as native audio messages.

Route send_voice through the existing _send_media_to_bridge helper
with media_type='audio', matching the pattern used by send_video and
send_document.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants