> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: onAudioTranscoded(event: FileEvent) # Method package: wixMediaBackend # Method menu location: wixMediaBackend --> Events --> onAudioTranscoded # Method Link: https://dev.wix.com/docs/velo/apis/wix-media-backend/events/on-audio-transcoded.md # Method Description: An event that triggers when an audio file has completed transcoding. The `onAudioTranscoded()` event handler runs when an uploaded audio file has finished transcoding. Audio files that have been imported aren't immediately available until the transcoding has completed. It is fired after the [`onFileUploaded`](#onFileUploaded) event, and after the transcoding has completed. The `FileEvent` object contains information about the uploaded audio file and the upload context. > **Note:** Backend events don't work when previewing your site. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event when an audio file has been transcoded ```javascript // Place this code in the events.js file // of your site's Backend section. export function wixMediaManager_onAudioTranscoded(event) { let audioFileInfo = event.fileInfo; let fileUrl = event.fileInfo.fileUrl; let size = event.fileInfo.sizeInBytes; } /* Full event object: * { * "fileInfo": { * "mediaType": "audio", * "mimeType": "audio/mpeg", * "sourceUrl": "https://somedomain.com/img/original-name.mp3", * "fileUrl": "wix:audio://v1/2123bc_6aec991ee66c4c16a783433cc7dca232.mp3/fileUrl.mp3#" * "hash": "5a9a91184e611dae3fed162b8787ce5f", * "opStatus": "READY", * "originalFileName": "original-name.mp3", * "sizeInBytes": 8414449, * "isPrivate": false * }, * "context": { * "someKey1": "someValue1", * "someKey2": "someValue2" * } * } */ ``` ---