├── README.md ├── manifest.json ├── style.css ├── window.html ├── LICENSE └── index.js /README.md: -------------------------------------------------------------------------------- 1 | # Extension-Audio 2 | Adds immersive background music and ambient sounds to your chats. 3 | 4 | Documentation: https://docs.sillytavern.app/extensions/dynamic-audio/ 5 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "display_name": "Dynamic Audio", 3 | "loading_order": 14, 4 | "requires": [], 5 | "optional": ["classify"], 6 | "js": "index.js", 7 | "css": "style.css", 8 | "author": "Keij#6799 and Deffcolony", 9 | "version": "0.1.0", 10 | "homePage": "https://github.com/SillyTavern/Extension-Audio", 11 | "auto_update": true 12 | } 13 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | #audio_settings .flex { 2 | display: flex; 3 | } 4 | 5 | 6 | #audio_settings .flex.column { 7 | flex-direction: column; 8 | } 9 | 10 | #audio_settings .flex.column-reverse { 11 | flex-direction: column-reverse; 12 | } 13 | 14 | #audio_settings .flex.row { 15 | flex-direction: row; 16 | } 17 | 18 | #audio_settings .flex.row-reverse { 19 | flex-direction: row-reverse; 20 | } 21 | 22 | /* align-items: center; 23 | justify-content: flex-end; 24 | gap: 12px; */ 25 | #audio_settings .flex.align-center { 26 | align-items: center; 27 | } 28 | 29 | #audio_settings .flex.justify-center { 30 | justify-content: center; 31 | } 32 | 33 | #audio_settings .flex.justify-start { 34 | justify-content: flex-start; 35 | } 36 | 37 | #audio_settings .flex.justify-end { 38 | justify-content: flex-end; 39 | } 40 | 41 | #audio_settings .flex.gap-12 { 42 | gap: 12px; 43 | } 44 | 45 | #audio_settings .btn-refresh { 46 | width: 32px; 47 | height: 32px; 48 | border-radius: 12px; 49 | } 50 | 51 | #audio_settings .audio-container .audio-mute-button-muted { 52 | color: red; 53 | } 54 | 55 | #audio_settings .audio-container { 56 | padding: 3px 10px; 57 | display: flex; 58 | gap: 10px; 59 | align-items: center; 60 | background-color: rgba(38, 38, 38, 0.5); 61 | border: 1px rgb(75, 75, 75) solid; 62 | border-radius: 10px; 63 | } 64 | 65 | #audio_settings .audio-container .audio-player-button { 66 | position: relative; 67 | height: 2rem; 68 | } 69 | 70 | #audio_settings .audio-container>.vol { 71 | width: 100px; 72 | display: flex; 73 | flex-direction: column; 74 | justify-content: center; 75 | align-items: center; 76 | } 77 | 78 | #audio_settings .audio-container>.vol>input { 79 | width: 100%; 80 | } 81 | 82 | #audio_settings .audio-container>.playlist { 83 | flex-grow: 1; 84 | } 85 | 86 | #audio_settings .audio-container>.playlist>select { 87 | height: 100%; 88 | margin: 0 !important; 89 | } 90 | 91 | #gesture-catcher { 92 | position: fixed; 93 | top: 0; 94 | left: 0; 95 | width: 100vw; 96 | height: 100vh; 97 | z-index: 9999; 98 | opacity: 0; 99 | cursor: pointer; 100 | } 101 | -------------------------------------------------------------------------------- /window.html: -------------------------------------------------------------------------------- 1 |