From 1cb5bdfe8cba6fe4647448cd3cf0c63ecbd7dfc2 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 2 Feb 2023 18:00:18 -0800 Subject: Finish emotes Emotes require 2 bytes per char. They're encoded into the region [0xE000, infinity). The texture is 4k, and uses 1k vertical pixels per emote segment, for a maximum of 32 segments. * Reduce volume of noise indicator by 90%. Quiet is probably better. Might want to add a volume slider idk. * Bugfix: emotes without a transparency channel now work * Address a couple Unity performance complaints about the shader --- Scripts/transcribe.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Scripts/transcribe.py') diff --git a/Scripts/transcribe.py b/Scripts/transcribe.py index 3171336..d67edb6 100644 --- a/Scripts/transcribe.py +++ b/Scripts/transcribe.py @@ -368,7 +368,7 @@ def readControllerInput(audio_state, enable_local_beep: bool, audio_state.audio_paused = True if enable_local_beep == 1: - playsound(os.path.abspath("../Sounds/Noise_Off_Quiet.wav")) + playsound(os.path.abspath("Resources/Sounds/Noise_Off_Quiet.wav")) elif state == PAUSE_STATE: state = RECORD_STATE if not use_builtin: @@ -382,7 +382,7 @@ def readControllerInput(audio_state, enable_local_beep: bool, audio_state.audio_paused = False if enable_local_beep == 1: - playsound(os.path.abspath("../Sounds/Noise_On_Quiet.wav")) + playsound(os.path.abspath("Resources/Sounds/Noise_On_Quiet.wav")) # model should correspond to one of the Whisper models defined in # whisper/__init__.py. Examples: tiny, base, small, medium. @@ -436,10 +436,13 @@ if __name__ == "__main__": print("args: {}".format(" ".join(sys.argv))) - # Set cwd to the directory holding the script + # Set cwd to TaSTT/ abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) + dname = os.path.dirname(dname) + dname = os.path.dirname(dname) os.chdir(dname) + print(f"Set cwd to {os.getcwd()}") parser = argparse.ArgumentParser() parser.add_argument("--mic", type=str, help="Which mic to use. Options: index, focusrite. Default: index") -- cgit v1.2.3