The enclosure tag will implement via the function rss_enclosure. This function has the filter hook rss_enclosure. So you can change the result via this hook.
Here is a longer post about the how-to for audio files, this should help you.
Related Posts:
- Audio Playlist : How to bind events for “track change”, “track end”?
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Audio Player for MP3 Files for WordPress
- Insert Link to Audio versus Embed Audio Player
- Hide download button from audio player
- Media Player gone on front end
- Can somebody explain this mediaelement and audio tags
- WordPress / Audio player
- WP Feed namespace attr issue
- WordPress MediaElement audio player won’t seek and resets back to the start when files are locally hosted
- Add a menu item to WordPress 3.5 Media Manager
- Pre populate WordPress wp_media modal with image selection
- For what security reasons are svgs blocked in the media uploader?
- Delete an attachment in the WP media modal window
- Add media with WP-Rest-API v2
- Media library to list images only user uploaded
- WordPress Image Editor not working – conflict?
- Proper way to add a button to the top menu of the media library?
- Filter for changing MediaElement.js Settings
- Is wp_read_audio_metadata() function deprecated?
- How would I go about listing only unattached media in say a sidebar?
- Restricting access to files within a specific folder [duplicate]
- Plugin to download attached media files?
- Run script after clicking Set Featured Image in Media
- Uploading non-media files?
- Add media with WP-Rest-API v2 II
- Change WordPress’ media upload URL?
- Disable edit option in Media library
- WordPress 3.0 Media Upload Directory
- What table is the media’s sort order stored?
- Media is shown in listview but not in gridview whenever i activate my Custom Theme
- Add input to the media uploader and pass its value to each uploaded file
- Generated media have incorrect aspect ratio
- wp.media edit attachment screen
- What is the structure of the “Featured Image” field in the DB?
- File Type Is Not Permitted – Cronjob
- Add instructions For Media Library Uploads
- Customizing default Mediaelement player
- Finding a media attachment post ID from a URL
- How to upload media to a specific folder without a plugin in WordPress?
- Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working
- Limit number of images to upload in wp.media function
- Moving media between blogs changes the URL subdirectory [closed]
- Error: Warning: strpos() in media.php
- Custom controller for video that is added from editor
- How to get media source of text editor in WordPress
- how to upload file to media library using link [closed]
- Can I Change the Media Upload Location for each user?
- Allow downloading unusual file types
- Is it possible to change filenames in media library after upload?
- Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?
- Upload video in custom folder
- Media Library not showing images but still acknowledges existence
- Set Maximum Width for an uploaded image
- Too slow Image upload in WordPress Media Library as image number increases
- Remove delete-attachment button for every media
- Add audio attachment link to RSS
- How to programatically toggle the media setting “Organize my uploads into month- and year-based folders”?
- Unable to add logo or header [closed]
- core/gallery get figcaption text
- Importing existing s3 Media into WP
- Import WordPress, Failed to import sizes
- Admin edit S3 Media file?
- When I insert media from Library into a post, can I then safely delete that media?
- How do I get my podcast feed created?
- Stylesheet being loaded outside of
- Attaching images to multiple galleries
- Specific folder and no thumbnail generation for media_sideload_image
- Can Postie be used to submit podcasts via email?
- Whats wrong with my wp gallery?
- How to re-house images in uploads/YYYY/MM
- Pre-load images into a new users media gallery
- The uploaded file could not be moved to wp-content/uploads
- WP REST API Create media return Timeout Gateway in response, but media created
- Images missing from the media folder
- How to Protect Uploads, if User is not Logged In?
- Creating multiple instances of Media Uploader
- Handle image file and save it to media
- Multisite has SSL certificate, but media library is still http://
- Direct media library upload saving in wrong month date folder in custom theme
- Showing added mime types in REST media response
- Change behavior of the “ADD Media” buttom
- Disable wordpress gif compression?
- wordpress doesnt add media.css file
- Change default ‘file not supported’ error message
- How to create different media uploader frames / filter library depending on a custom action
- Extra metadata for media items
- Customize WordPress Upload Directory
- How to open full Media Editor in a frame
- Elegant way to signify inheritance and relationship between posts
- Why does uploading a media file a second time restore older version?
- Get original path of user’s filesystem of an uploaded media
- add file name column to media library to sort by
- Active Directory and group permissions
- gallery – size is thumbnail by default change it to medium [duplicate]
- Cache of site on browser
- How to batch-add image file extension without losing DB refs?
- How to add a column showing real media usage (count) to the media list view?
- Looking for a way to insert PDF image preview in TinyMCE
- This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading