Tom4nt / Mega-Soundboard

Play and manage sounds with keybinds.
MIT License
12 stars 1 forks source link

Api #52

Open Tom4nt opened 1 year ago

Tom4nt commented 1 year ago

Discussed in https://github.com/Tom4nt/Mega-Soundboard/discussions/34

Originally posted by **emanuelfranklyn** June 25, 2022 It would be great if I could from an external script on my pc using HTTP or web socket or any other kind of method retrieve data about what sound is current playing and receive events once audios start playing or end playing.
Noctabou commented 1 year ago

Even play an audio with a request to the API ? I don't really know if there would be a usage for this, since most of programs would play the sound themselves. But maybe if the API is available through network, so i could tell my friends Discord i'm coming back using a request to MegaSoundboard to play a file saying "brb" and pressing PTT key. Why not

Tom4nt commented 1 year ago

Yes, I think the current idea allows for that. An HTTP API would be available anywhere, depending on your network settings. I actually haven't thought of any use case myself, but I'm going to implement this since it was requested a long time ago. The use case you proposed is the first I've seen for this and it's a good one IMO.