Use byte differences for sample matching
This commit is contained in:
parent
d53f5d5151
commit
3b9af75eec
7 changed files with 49 additions and 6 deletions
|
|
@ -166,7 +166,7 @@ RUN --mount=type=cache,id=apt-run,target=/var/cache/apt \
|
|||
xargs apt install --yes
|
||||
|
||||
# Run test
|
||||
COPY tests/apope_sample.txt tests/apope_sample_*.wav tests/
|
||||
COPY tests/* tests/
|
||||
|
||||
# Generate sample and check
|
||||
RUN export expected_sample="tests/apope_sample_${TARGETARCH}${TARGETVARIANT}.wav" && \
|
||||
|
|
@ -175,7 +175,7 @@ RUN export expected_sample="tests/apope_sample_${TARGETARCH}${TARGETVARIANT}.wav
|
|||
--voice 'en_UK/apope_low' \
|
||||
< tests/apope_sample.txt \
|
||||
> tests/actual_sample.wav && \
|
||||
diff tests/actual_sample.wav "${expected_sample}"
|
||||
tests/samples_match.sh tests/actual_sample.wav "${expected_sample}"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue