{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/voice-2.0/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"product":"Voice v2 (preview)","type":"markdown"},"seo":{"title":"External media support","siteUrl":"https://developers.sinch.com","llmstxt":{"title":"Sinch Developer Documentation","description":"LLMs.txt containing a map of all the documentation files for Sinch.","sections":[{"title":"Numbers API","description":"The Numbers API enables you to search for, view, and activate numbers. It's considered a precursor to other APIs in the Sinch product family. The numbers API can be used in tandem with any of our APIs that perform messaging or calling.","includeFiles":["docs/numbers/**/*.md","docs/numbers/**/*.yaml"],"excludeFiles":["docs/numbers/index.md"]},{"title":"Conversation API","description":"Send and receive messages globally on many popular channels with ease and confidence when using Sinch's Conversation API. Conversation API is the preferred API for sending mobile messages on SMS and other social channels with Sinch. It is a simple API with unified error messages, consistent request payloads, and common webhook payloads that are channel-agnostic.","includeFiles":["docs/conversation/**/*.md","docs/conversation/**/*.yaml"],"excludeFiles":["docs/conversation/index.md"]},{"title":"Voice API","description":"The Voice API works as a big telephony switch. The Voice API handles incoming phone calls (also known as incoming call “legs”), sets up outgoing phone calls (or outgoing call “legs”), and bridges the two. The incoming call leg may come in over a data connection (from a smartphone or web application using the Sinch SDKs) or through a local phone number (from the PSTN network). Similarly, the outgoing call leg can be over data (to another smartphone or web application using the Sinch SDKs) or the PSTN network.","includeFiles":["docs/voice/**/*.md","docs/voice/**/*.yaml"],"excludeFiles":["docs/voice/index.md"]},{"title":"Voice API v2","description":"The Voice API works as a big telephony switch. The Voice API handles incoming phone calls (also known as incoming call “legs”), sets up outgoing phone calls (or outgoing call “legs”), and bridges the two. The incoming call leg may come in over a data connection (from a smartphone or web application using the Sinch SDKs) or through a local phone number (from the PSTN network). Similarly, the outgoing call leg can be over data (to another smartphone or web application using the Sinch SDKs) or the PSTN network.","includeFiles":["docs/voice-2.0/**/*.md","docs/voice-2.0/**/*.yaml"],"excludeFiles":["docs/voice-2.0/index.md"]},{"title":"Verification API","description":"The Verification API is a platform for phone number verification. It consists of the API and different software development kits (the Sinch SDKs) that you integrate with your smartphone or web application and cloud based back-end services. Together they enable SMS, Flashcall, Phone Call and Data verification in your application.","includeFiles":["docs/verification/**/*.md","docs/verification/**/*.yaml"],"excludeFiles":["docs/verification/index.md"]},{"title":"Provisioning API","description":"Provisioning API allows you to programmatically set up your senders, accounts and templates on your favorite messaging platforms on the Conversation API. For now, you can create your first WhatsApp channel through Meta's Embedded sign up, you can configure your first SMS App and configure your webhooks. As development continues, we will be adding the most commonly used channels.","includeFiles":["docs/provisioning-api/**/*.md","docs/provisioning-api/**/*.json"],"excludeFiles":["docs/provisioning-api/index.md"]},{"title":"Elastic SIP Trunking API","description":"With Elastic SIP Trunking you can create and manage your SIP trunks and phone numbers programmatically.","includeFiles":["docs/est/**/*.md","docs/est/**/*.yaml"],"excludeFiles":["docs/est/index.md"]},{"title":"Fax API","description":"Send and receive HIPAA compliant faxes on our modern fax platform using our developer-friendly API.","includeFiles":["docs/fax/**/*.md","docs/fax/**/*.yaml"],"excludeFiles":["docs/fax/index.md"]},{"title":"In-app Voice and Video SDK","description":"The In-app Voice and Video SDK enables you to add voice and video calling capabilities directly into your mobile or web application using the Sinch SDKs.","includeFiles":["docs/in-app-calling/**/*.md"],"excludeFiles":["docs/in-app-calling/index.md"]},{"title":"Number Lookup API","description":"The Number Lookup API is designed to provide in-depth information about phone numbers, helping enterprises enhance their communication strategies and prevent fraud. By identifying the type of phone line (for example, mobile, landline, VoIP) and the associated carrier, the API allows businesses to optimize routing, reduce unnecessary costs, and improve customer engagement.","includeFiles":["docs/number-lookup-api-v2/**/*.md","docs/number-lookup-api-v2/**/*.yaml"],"excludeFiles":["docs/number-lookup-api-v2/index.md"]},{"title":"Functions","description":"Serverless compute for voice and messaging. Deploy your code and Sinch routes live calls and messages to it — no infrastructure to run.","includeFiles":["docs/functions/functions/**/*.md","docs/functions/concepts/**/*.md","docs/functions/reference/**/*.md"],"excludeFiles":["docs/functions/functions/index.md"]},{"title":"CLI","description":"One command line for every Sinch API and the full Functions lifecycle — scaffold, run locally, deploy, and manage.","includeFiles":["docs/functions/cli/**/*.md"],"excludeFiles":["docs/functions/cli/index.md"]}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"external-media-support","__idx":0},"children":["External media support"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Sinch platform supports playing audio files during a call. Audio files can be provided through a public URL, and multiple audio formats are supported."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"accessing-media","__idx":1},"children":["Accessing media"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["External media is accessed by providing a valid URL in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["play.url"]}," property of a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PLAY"]}," message within the SVAML ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messages"]}," command. Supported URL schemes are HTTP and HTTPS. The URL must point directly to the media file; redirects are not supported."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When a media file is downloaded for the first time, playback can be delayed. Delay depends on file size and the source server's upload speed."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"content-caching","__idx":2},"children":["Content caching"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After a successful download, the platform stores a local copy of the media file. This reduces repeated traffic between Sinch and the partner backend and helps reduce playback latency."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following caching rules apply:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["When a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cache-Control"]}," header is present:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The platform uses the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["max-age"]}," directive to determine cache duration."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The minimum supported duration is 24 hours; values below 24 hours are treated as 24 hours."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["This duration is absolute and expires exactly after the specified time from the moment the file was downloaded."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["When no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cache-Control"]}," header is present:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The file is cached for 24 hours from the last access time."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Expiration is extended by 24 hours each time the media resource is used."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"limits","__idx":3},"children":["Limits"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Consider the following limits when providing an external media reference:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["File size is limited to 1 MB by default."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Download attempts are limited to 50 per hour."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Total downloaded content is limited to 50 MB per hour."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For larger files or a higher hourly content limit, contact Sinch support."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"supported-content-type-headers","__idx":4},"children":["Supported Content-Type headers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When accessing an external media resource, the platform requires a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Content-Type"]}," header in the response. The following values are supported:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Content-Type"},"children":["Content-Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"File extensions"},"children":["File extensions"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/wav"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-wav"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/wave"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-pn-wav"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/adpcm"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".wav"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".wave"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/mpeg"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-mpeg"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/mp3"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-mp3"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-mpeg3"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/mp4"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".mp1"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".mp2"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".mp3"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".mp4"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".mpa"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/aac"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-aac"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-m4a"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".m4a"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".m4b"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".m4p"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".m4v"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".m4r"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".aac"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".3gp"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/aiff"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-aiff"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/aifc"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-aifc"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".aiff"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".aif"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".aifc"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/gsm"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/x-gsm"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".gsm"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/ogg"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".ogg"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/opus"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".opus"]}]}]}]}]}]}]},"headings":[{"value":"External media support","id":"external-media-support","depth":1},{"value":"Accessing media","id":"accessing-media","depth":2},{"value":"Content caching","id":"content-caching","depth":3},{"value":"Limits","id":"limits","depth":3},{"value":"Supported Content-Type headers","id":"supported-content-type-headers","depth":2}],"frontmatter":{"seo":{"title":"External media support"}},"lastModified":"2026-08-31T13:48:15.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/voice-2.0/api-reference/external-media","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}