chore: add ch 5-6
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,13 +1,14 @@
|
||||
|
||||
PATH:=./piper:$(PATH)
|
||||
|
||||
TXT_FILES := $(patsubst %.raw,%.txt,$(wildcard *.raw))
|
||||
WAV_FILES := $(patsubst %.txt,%.wav,$(wildcard *.txt))
|
||||
MP3_FILES := $(patsubst %.txt,%.mp3,$(wildcard *.txt))
|
||||
|
||||
MODEL=en_GB-alan-medium.onnx
|
||||
CONFIG=en_GB-alan-medium.onnx.json
|
||||
|
||||
complete: $(MP3_FILES)
|
||||
complete: $(TXT_FILES) $(MP3_FILES)
|
||||
echo $@ $^
|
||||
|
||||
$(WAV_FILES): %.wav: %.txt
|
||||
@@ -17,6 +18,9 @@ $(WAV_FILES): %.wav: %.txt
|
||||
$(MP3_FILES): %.mp3: %.wav
|
||||
ffmpeg -y -i $^ $@
|
||||
|
||||
$(TXT_FILES): %.txt: %.raw
|
||||
./cleanfile $^ $@
|
||||
|
||||
|
||||
install:
|
||||
wget -O piper.tar "https://github.com/rhasspy/piper/releases/download/v1.2.0/piper_amd64.tar.gz"
|
||||
|
||||
Reference in New Issue
Block a user