DopplerShift13 / DopplerShift

Doppler Shift, a /tg/station Fork for SS13
https://dopplershift13.com/
GNU Affero General Public License v3.0
7 stars 22 forks source link

The Dopplerboopening #170

Closed maaacha closed 1 week ago

maaacha commented 1 week ago

About The Pull Request

This reuses the general structure of https://github.com/Mojave-Sun/mojave-sun-13/pull/2142/ however reworks most of the code of the main block.

In short, this adds a boop/mumble effect whenever a carbon human speaks. There are currently seven voice types available, however due to the simple nature of the files more can easily be made by modifying them (the source of which can be provided to anyone interested). The spoilered section will go into greater technical detail, while a short video is attached for your viewing pleasure.

Oh, also, you can test the voices in the preferences menu.

https://github.com/user-attachments/assets/c44dbe56-27c3-4108-b14c-3534f6307ba4

Detailed Summary The system works by using a regex to segment every syllable the user types into a list. It then iterates through this list, using several modifiers and values to determine pitch and falloff, before assigning the filetype based on the user's preferenced voice type and the syllable used. Certain punctuation characters, as well as spaces, play no sound and yet increase the delay between sounds to replicate the effect of a pause in speech. Each vowel has 20 permutations available, and each consonant has 6 permutations available. The audio files are heavily influenced by the speech style of Animal Crossing. The raw files, when used, were far too jarring however, and as such were processed to give a more 'mumble-like' effect. The macro to recreate this effect in Audacity is attached. I attempted to work a system that would dynamically modulate pitch based on user preferences, however BYOND's pitch value is bad, and glitches out pretty heavily. In the future I'm going to look into adding more voice types, especially those leaning more towards the mid-toned monotone type, as there are currently mostly high-pitched, low-pitched and melodic voices. [dopplerboop-macro.txt](https://github.com/user-attachments/files/17397653/dopplerboop-macro.txt)

Changelog

:cl: add: Dopplerboops

/:cl: