* feat: add audio transcoding support for WhatsApp Cloud API - Introduced `Audio::TranscodeService` to handle audio transcoding to OGG/Opus format. - Updated `Messages::MessageBuilder` to transcode audio attachments based on `transcode_audio` parameter. - Enhanced `WhatsappCloudService` to normalize audio content types and send voice flag for recorded audio in OGG format. - Added utility functions for audio conversion in JavaScript. - Updated Dockerfile to include FFmpeg for audio processing. - Added tests for audio transcoding and WhatsApp Cloud service interactions. * feat: enhance audio handling with transcoding support and error management * feat: improve audio transcoding error handling and enhance audio recording features * feat: enhance audio transcoding process and error handling for better reliability * feat: update recorded audio handling to support boolean and array formats
14 lines
226 B
Ruby
14 lines
226 B
Ruby
module CustomExceptions::Audio
|
|
class UnsupportedFormatError < CustomExceptions::Base
|
|
def message
|
|
@data
|
|
end
|
|
end
|
|
|
|
class TranscodingError < CustomExceptions::Base
|
|
def message
|
|
@data
|
|
end
|
|
end
|
|
end
|