- download
wsay.exe
from https://github.com/p-groarke/wsay/releases/latest - put
wsay.exe
andsay.cmd
insideC:\Program Files\Git\cmd
- put
wsay.exe
andsay.sh
(can be renamed tosay
) insideC:\Program Files\Git\usr\bin
- from VS Code, use Git Bash to run scripts and call
say.sh some text
- or call
say some text
from Windows' Command Prompt
Last active
August 30, 2022 10:54
-
-
Save afriza/3df31277015fb20edadef91cfea6222a to your computer and use it in GitHub Desktop.
wsay wrapper for MSYS2 (e.g. Git Bash from Git for Windows)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# use Indonesian voice | |
v=$(say -v \? | grep id_ID | head -n1 | cut -d " " -f1) | |
say -v "$v" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
rem Use a specific voice. Use the voice number from `wsay --list_voices`. | |
wsay -v 7 "%*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
text=$@ | |
wsay -v 7 "$text" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment