1
0

chore: add more chapters and replacements

This commit is contained in:
xuu
2025-03-15 19:07:36 -06:00
parent c1804744bf
commit ff069b52c4
7 changed files with 2770 additions and 26 deletions

View File

@@ -2,20 +2,20 @@
PATH:=./piper:$(PATH)
WAV_FILES := $(patsubst %.txt,%.wav,$(wildcard *.txt))
OGG_FILES := $(patsubst %.txt,%.ogg,$(wildcard *.txt))
MP3_FILES := $(patsubst %.txt,%.mp3,$(wildcard *.txt))
MODEL=en_GB-alan-medium.onnx
CONFIG=en_GB-alan-medium.onnx.json
complete: $(OGG_FILES)
complete: $(MP3_FILES)
echo $@ $^
$(WAV_FILES): %.wav: %.txt
cat $^ | piper -m $(MODEL) -c $(CONFIG) -f $@
$(OGG_FILES): %.ogg: %.wav
ffmpeg -i $^ $@
$(MP3_FILES): %.mp3: %.wav
ffmpeg -y -i $^ $@
install: