diff options
| author | yum <yum.food.vr@gmail.com> | 2024-02-05 17:01:12 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-02-05 17:02:23 -0800 |
| commit | acccf8ebcff0f7cc2b26e45e497f8b12ab73d8e1 (patch) | |
| tree | 8c095c115b4b3447863a304d9a0f32f4e46e577f /Scripts/generate_fonts.py | |
| parent | 33db3dcc23a45cae611bcf839c33d6615ccbf59e (diff) | |
Verify that audio is clean after VAD segmentation
Indeed it is. Bumped up the default max segment length to decrease
error.
Also add mic presets for beyond (the vr headset) and motu (my mic
interface).
Diffstat (limited to 'Scripts/generate_fonts.py')
| -rw-r--r-- | Scripts/generate_fonts.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Scripts/generate_fonts.py b/Scripts/generate_fonts.py index cf73e6a..8dc8a89 100644 --- a/Scripts/generate_fonts.py +++ b/Scripts/generate_fonts.py @@ -155,7 +155,7 @@ def genUnicode(): def genASCII(): # Create an 8k grayscale image. 16 glyphs wide, 8 glyphs tall. # Only characters on the range [0, 128). - image = Image.new(mode="L", size=(8192,8192), color=0) + image = Image.new(mode="RGBA", size=(8192,8192), color=0) draw = ImageDraw.Draw(image) n_rows = 8 n_cols = 16 @@ -174,11 +174,11 @@ def genASCII(): else: char = " " draw.text((col * font_pixels * 8 / 2, row * font_pixels * 8 - 20), - char, font=font, fill=255) + char, font=font, fill=(255,255,255)) image.save("Fonts/Bitmaps/font-ascii.png") if __name__ == "__main__": print("Generating unicode fonts") - genUnicode() + #genUnicode() print("Generating ASCII fonts") genASCII() |
