diff options
| author | yum <yum.food.vr@gmail.com> | 2023-02-02 18:00:18 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-02-13 14:36:25 -0800 |
| commit | 1cb5bdfe8cba6fe4647448cd3cf0c63ecbd7dfc2 (patch) | |
| tree | e338264fbf6f75911246ca61c934110e00f144c8 /Scripts/transcribe.py | |
| parent | 7c6894614dcc3ebc5d4c8839b64f4da761b5ccf0 (diff) | |
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
Diffstat (limited to 'Scripts/transcribe.py')
| -rw-r--r-- | Scripts/transcribe.py | 9 |
1 files changed, 6 insertions, 3 deletions
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") |
