Changed "low" flag and voicebank prefix to "alt"

secondvoice
Aaron Johnon 1 year ago
parent 6f70c4a0c4
commit 49fee04c0b

@ -27,7 +27,7 @@ const (
func main() {
// Define and parse the flags
repeat := flag.Bool("r", false, "Repeat each section separated by space, '-', '_', or a new line")
low := flag.Bool("l", false, "Use lower pitched SAM sound bank")
altvoice := flag.Bool("a", false, "Use alternate (lower pitched) SAM sound bank")
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "Usage: %s [options]\n", os.Args[0])
@ -48,10 +48,10 @@ func main() {
flag.Parse()
// Select the correct file prefix based on the low flag
// Select the correct file prefix based on the altvoice flag
prefix := "sam"
if *low {
prefix = "losam"
if *altvoice {
prefix = "altsam"
}
// Create a map to store sound data for each character

@ -17,8 +17,8 @@ set /p gsize="Enter the number group size: "
:: Ask whether to repeat number groups
set /p repeat="Do you want to repeat number groups (y/N)? "
:: Ask whether to use the low voice
set /p lowvoice="Do you want to use the low voice (y/N)? "
:: Ask whether to use the alt voice
set /p lowvoice="Do you want to use the alternate voice (y/N)? "
:: Ask for the message input
echo.
@ -33,10 +33,10 @@ if /i "%repeat%"=="y" (
echo Not repeating number groups.
)
:: Check if the user wants to use the low voice
:: Check if the user wants to use the alt voice
if /i "%lowvoice%"=="y" (
echo Using low voice with the -l flag.
set flags=%flags% -l
echo Using alternate voice with the -a flag.
set flags=%flags% -a
) else (
echo Using default voice.
)

@ -4,8 +4,8 @@ setlocal
:: Ask whether to repeat number groups
set /p repeat="Do you want to repeat number groups (y/N)? "
:: Ask whether to use the losam voice
set /p lowvoice="Do you want to use the low voice (y/N)? "
:: Ask whether to use the alt voice
set /p lowvoice="Do you want to use the alternate voice (y/N)? "
:: Initialize flags
set flags=
@ -18,16 +18,20 @@ if /i "%repeat%"=="y" (
echo Not repeating number groups.
)
:: Check if the user wants to use the low voice
:: Check if the user wants to use the alt voice
if /i "%lowvoice%"=="y" (
echo Using low voice with the -l flag.
set flags=%flags% -l
echo Using alternate voice with the -a flag.
set flags=%flags% -a
) else (
echo Using default voice.
)
:: Run the numberstation.exe with the appropriate flags
numberstation.exe %flags%
if defined flags (
numberstation.exe %flags%
) else (
numberstation.exe
)
:: Pause before exit
pause

Loading…
Cancel
Save