Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daitomanabe/32eb4679b72c023be8fae1af3f2f7c55 to your computer and use it in GitHub Desktop.
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.
while IFS= read -r line; do echo "$line" | say -o "${line}.aiff"; done < input.txt
@daitomanabe
Copy link
Author

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