yum-slop/TaSTT
Free self-hosted STT for VRChat.
git clone https://git.yummers.dev/yum-slop/TaSTT
3db7723
v0.20.0
1import argparse 2import libunity 3import sys 4 5def removeAudioSources ( path : str ) : 6parser = libunity . MulticoreUnityParser () 7anim = parser . parseFile ( path ) 8anchors = set () 9node = anim . popNodeOfClass ( "82" ) 10while node : 11( "Killed audio source" ) 12anchors . add ( node . anchor ) 13node = anim . popNodeOfClass ( "82" ) 14for node in anim . nodes : 15anim . scrubReferencesByValue ( node , values = anchors ) 16with open ( path , "w" , encoding = "utf-8" ) as f : 17f . write ( libunity . unityYamlToString ( anim . nodes )) 18 19if __name__ == "__main__" : 20parser = argparse . ArgumentParser () 21parser . add_argument ( "--prefab" , type = str , help = "Path to .prefab file." ) 22args = parser . parse_args () 23 24removeAudioSources ( args . prefab ) 25