Created
June 25, 2023 13:47
-
-
Save daitomanabe/32eb4679b72c023be8fae1af3f2f7c55 to your computer and use it in GitHub Desktop.
This script demonstrates how to use the `say` command in macOS to generate sound files from a text file, with each word on a separate line.
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
while IFS= read -r line; do echo "$line" | say -o "${line}.aiff"; done < input.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
while IFS= read -r line; do echo "$line" | say -o "${line}.aiff"; done < input.txt