Skip to content

Python script to dynamically change scenes from sound analysis

License

Notifications You must be signed in to change notification settings

Tharos-ux/autoswitcher

Repository files navigation

OBS Studio scene autoswitcher from sound level

Project made to interact with OBS Studio scenes, making dynamic switching in reaction to dB levels. You may enter your rest and follow scenes in the constants at the start of the .py file to fit program to your setup.

You need a creditentials.json file to allow access to OBS Studio via websocket. To create such a file, head to your OBS websockets configuration window to get IP adress, password and port. File should look like that :

{
    "host": "XXX.XXX.X.XX",
    "port": 0,
    "password": "my_secure_password"
}

Dependencies listed in requirements.txt. You can install them with pip install -r requirements.txt. You may access to audio mapping information with python autoswitcher.py -b and start the program with python autoswitcher.py once you're done configuring.

For more advanced prorammers, you may take a look to autoswitcher_class.py where you will find a Autoswitcher() object, ready to use. Autoswitcher().switch() will trigger scene switching!

⚠️ It will crash if OBS Studio and/or OBS websockets are not up and running!

Future updates :

[ ] Willing to integrate something like https://codepen.io/alissarenz/pen/MvdEVg for chat bubbles

About

Python script to dynamically change scenes from sound analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages