ARI - Play sound from a file:/// URI


I’m trying to play a sound file using ARI’s play command.

"/ari/channels/" + channelId + "/play?&media=" + mediavar

where mediavar is a string describing the URI of the file to be played.

I have successfully played files using

mediavar = "sound:tt-monkeys" or

mediavar = "sound: "

However, the command does not work when the media is in a file URI. I have tried several combinations, using the URI formats recommended by Wikipedia.


I have also tried the following, to no avail.



What am I missing? Do I need to use http or https for the URI?


I think the main problem is that the documentation does not mention the correct syntax to play a sound file that is not in the regular sounds directory.

After realizing that the file scheme is not implemented, I started a try/error effort until I figured the right syntax. It seems obvious now…

So, do not use the file:/// scheme. Use the full path of the sound file, but omit the extension.


1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.