Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Question] API play sound on event?

Now that the 3D dice are working much better than they were. Is it possible for the API to play sounds from SoundCloud on demand? Such as when the 3D dice hit the table? My group is really enjoying the 3D dice but we are missing the sound of dice during our games.
Could possibly be tied in with this? <a href="https://app.roll20.net/forum/post/323815/dynamic-audio-and-the-ability-to-tie-in-to-a-users-soundcloud-account#post-323815" rel="nofollow">https://app.roll20.net/forum/post/323815/dynamic-audio-and-the-ability-to-tie-in-to-a-users-soundcloud-account#post-323815</a>
Ok, so basically it isn't possible at the moment?
Not that I know of. &nbsp;I don't think the API is able to tie into soundcloud, which would generate your sound effects (jukebox). &nbsp;At least, last I was told it wasn't (two weeks ago).
1378313083

Edited 1378313208
I'm not entirely certain on this, but if you can get a path to a physical file, wouldn't you be able to use HTML5?&nbsp; Ex: var snd = new Audio("file.wav"); snd.play(); As long as that works there are a number of ways you could execute that each roll.&nbsp;
1378329106
Lithl
Pro
Sheet Author
API Scripter
Can't hurt to try, but not all elements of java script are open to us, largely for security reasons. Playing a sound isn't itself a security hole, but linking to an outside resource is. Only way to know is to try, though.