forked from ideasman42/nerd-dictation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_whisper_threading.sh
More file actions
executable file
·32 lines (30 loc) · 939 Bytes
/
test_whisper_threading.sh
File metadata and controls
executable file
·32 lines (30 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# Test script for threaded Whisper implementation
echo "Testing Whisper with threading..."
echo ""
echo "This will test:"
echo "1. Short pause (0.5s) - intermediate transcription"
echo "2. Long pause (2.0s) - final re-transcription"
echo ""
echo "Instructions:"
echo "1. Speak a sentence, then pause for 0.5s"
echo "2. Speak another sentence, then pause for 0.5s"
echo "3. Speak a third sentence, then pause for 2.0s"
echo ""
echo "Expected output:"
echo "- First sentence appears"
echo "- Second sentence appends"
echo "- Third sentence appends"
echo "- All text is erased and replaced with properly formatted version"
echo ""
echo "Starting in 3 seconds..."
sleep 3
# Run with verbose output and tiny model for speed
./nerd-dictation begin \
--stt-engine=WHISPER \
--whisper-model=tiny \
--whisper-silence-duration=0.5 \
--whisper-silence-finalize=2.0 \
--output=STDOUT \
--verbose=1 \
--timeout=10.0