chore: add more chapters and replacements
This commit is contained in:
8
Makefile
8
Makefile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user