Makefile 405 B

123456789101112131415161718192021222324
  1. # Makefile
  2. #
  3. # This file generates the WAVE files from text files on macOS
  4. #
  5. WAVES := $(subst .msg,.wav,$(wildcard *.msg)) blow.wav
  6. VOICE := --voice=Samantha
  7. RATE := --rate=15
  8. QUALITY := --quality=127
  9. all: $(WAVES)
  10. %.wav: %.aiff
  11. afconvert "$<" -d LEI16 "$@"
  12. %.aiff: %.msg
  13. say $(VOICE) $(RATE) -o $@ < $<
  14. #announce-new-caller.wav: /System/Library/Sounds/Blow.aiff
  15. # afconvert "$<" -d LEI16 "$@"