Skip to content

Commit

Permalink
Supply HLS file for whisper integration test (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Dec 18, 2024
1 parent 2290032 commit 024e999
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions ci/fixtures/whisper/hls.m3u8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.007800,
112300.ts
#EXT-X-ENDLIST
8 changes: 4 additions & 4 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ for SERVICE in "${SERVICES[@]}"; do
elif [ "$SERVICE" == "whisper" ]; then
curl -s -o vtt.txt \
--header "Accept: text/plain" \
--header "Apix-Ldp-Resource: https://github.com/ggerganov/whisper.cpp/raw/master/samples/jfk.wav" \
--header "Content-Type: application/vnd.apple.mpegurl" \
--header "Apix-Ldp-Resource: https://preserve.lehigh.edu/sites/default/files/derivatives/hls/node/8157/11230.m3u8" \
--data-binary "@/fixtures/whisper/hls.m3u8" \
"$URL"
grep "ask not what your country can do for you" vtt.txt || exit 1
grep -i "This podcast is brought to you by Illuminate" vtt.txt || exit 1
echo "VTT as expected"
rm vtt.txt
elif [ "$SERVICE" == "pandoc" ]; then
Expand All @@ -82,8 +84,6 @@ for SERVICE in "${SERVICES[@]}"; do
cat diff_output.txt
exit 1
fi


else
echo "Unknown service"
exit 1
Expand Down

0 comments on commit 024e999

Please sign in to comment.