Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set a .wav or .mp3 sound event? #502

Open
NilMouse opened this issue Sep 10, 2018 · 3 comments
Open

How to set a .wav or .mp3 sound event? #502

NilMouse opened this issue Sep 10, 2018 · 3 comments

Comments

@NilMouse
Copy link

Is it possible to have the client play a sound file when an event happens?

I don't see anything obvious when I look at the events window. Am I missing something or is this not a feature? Please point me to where it's possible, if so.

With only visual cues, I still feel like I miss stuff happening in a busy room; I would like to attach sound cues to certain events and character names, etc. Thank you!

@talvo
Copy link
Collaborator

talvo commented Oct 1, 2018

Apologies for the slow response.

This is not currently possible, the only sound you can play is via the Tcl "bell" command. Playing user-defined sounds (from a .wav or .mp3, etc) would require an external library and additional code, and is something I've not gotten around to yet (see #31)

@CyberLeo
Copy link

If you're on a posix OS, you can use this in a global event's 'Replace' parameter:

[[/eval exec {*}["/usr/bin/play" "/path/to/sound.wav"] &; list][/get 0]]

Substitute whatever one-off command line audio player and audio file you desire.

For a simple beep, this works:

[[/eval bell -displayof .][/get 0]]

@NilMouse
Copy link
Author

NilMouse commented Aug 17, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants