Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b21bfe5
updated install.sh to create output directory and refresh libraries. …
Navbryce Oct 20, 2019
6f3c6bf
now uses an environment variable in the script.
Navbryce Oct 21, 2019
17ed8d4
started integrating snowboy. had to fix quite a few dependency issues…
Navbryce Oct 28, 2019
eb7ec11
Connected Snowboy tonoise filter and created new script
Navbryce Nov 4, 2019
10c4af6
changed some paths
Navbryce Nov 5, 2019
7610530
Improved recording script. Used to wait for a certain amount of disco…
Navbryce Nov 10, 2019
54a4c4c
Changed some print statements. Changed some recording parameters (sma…
Navbryce Nov 11, 2019
0f4add6
snowboy
Navbryce Nov 14, 2019
e9564bf
started writing corpus
Navbryce Nov 14, 2019
697e75c
used custom corpus
Navbryce Nov 14, 2019
4bfac59
Made some tweaks to the scripts. Seeing improved accuracy with new le…
Navbryce Nov 14, 2019
aadbb18
removed swap files
Navbryce Nov 14, 2019
e26e973
created script to autogenerate corpus
Navbryce Nov 15, 2019
e52081d
fixed small bug in ptyon script
Navbryce Nov 15, 2019
c3c6339
accuracy tests
Navbryce Nov 15, 2019
c9ff69a
created post process python script
Navbryce Nov 18, 2019
e45f8a9
redirected output ot python script
Navbryce Nov 18, 2019
0fa44cd
snowboy record interferes with command record. kill snowboy detector …
ramyadhadidi Nov 21, 2019
301dc91
created convenience script
ramyadhadidi Nov 21, 2019
93b75d5
Tweaks
ramyadhadidi Nov 25, 2019
b14ab24
created a way to cancel the script while it's mid-recording. improved…
Navbryce Nov 27, 2019
1dafbd9
updated the jack fix command
ramyadhadidi Dec 2, 2019
fbcccf3
changed jackd script
ramyadhadidi Dec 3, 2019
da74269
updated corpus
Navbryce Dec 3, 2019
f58edc2
Connected to demo script
ramyadhadidi Dec 3, 2019
22a398f
removed demo dependencies
Navbryce Dec 11, 2019
8a8647a
Cleaned up some of the files. Reorganized some of the code
Navbryce Dec 12, 2019
b659c72
removed extraneous file
Navbryce Dec 12, 2019
053840d
Changed where the pocket sphinx log is saved
Navbryce Dec 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
output/unwanted-stuff.log
output/words.txt
output/*
inputs/*
._*
decode
snowboy-decode
testfiles/filtered.wav
testfiles/noisy.wav
output/*.txt
output/*.log

#
/output/
# swap files
*.swp
# Prerequisites
*.d

Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ default: decode
decode.o: decode.c
gcc -c decode.c -o decode.o

decode: decode.o
snowboy-decode.o: snowboy-decode.c
gcc -c snowboy-decode.c -o snowboy-decode.o

decode: decode.o snowboy-decode.o
gcc decode.o -o decode
gcc snowboy-decode.o -o snowboy-decode

clean:
-rm -f decode.o
-rm -f decode
-rm -f snowboy-decode
-rm -f snowby-decode.o

19 changes: 19 additions & 0 deletions accuracy-test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
What I said, What Klauba heard
Take me to room 2337,Take me to room 2337
How do I get to room 2335,How do I get to room 2335
Go forward,Go forward
Go backward,Go backward
Move left,Move left
Move right,Move right
Where am I,Where am I?
Show me to room 2341,Show me to room 2341
Stop,Stop
Move forward,Move forward
Move backward,Move backward
Where is 2342,Where is 2342
Where is room 2346,Where is room 2346
How do I get to room 2360,How are you get to room 2360
Stop moving,Stop moving
Hi Klauba,I Klauba
Hello Klauba,Hello Klauba

19 changes: 11 additions & 8 deletions decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,23 @@

int main(void) {
struct timespec start, end;

if (getenv("SPEECH_RECOGNITION") == NULL) {
system("echo Please set the SPEECH_RECOGNITION environment variable to point to the git repository");
return 1;
}
system("export LD_LIBRARY_PATH=/usr/local/lib");
system("aplay /home/pi/speech2text/beep-07.wav");
system("arecord --format=S16_LE --duration=5 --rate=16k -D sysdefault:CARD=1 --file-type=wav testfiles/noisy.wav");
system("aplay /home/pi/speech2text/beep-08b.wav");
system("aplay $SPEECH_RECOGNITION/beep-07.wav");
system("arecord --format=S16_LE --duration=5 -r 16000 --file-type=wav inputs/noisy.wav");
system("aplay $SPEECH_RECOGNITION/beep-08b.wav");
system("echo done recording...");
system("python testfiles/noiseClean.py");
system("python noiseClean.py");
system("echo done cleaning...");
clock_gettime(CLOCK_REALTIME, &start);
system("\
pocketsphinx_continuous \
-infile testfiles/noisy.wav \
-dict dicts/3651.dic \
-lm dicts/3651.lm \
-infile inputs/filtered.wav \
-dict ./models/corpus/Corpus_V3/100.dic \
-lm ./models/corpus/Corpus_V3/100.lm \
2>./output/unwanted-stuff.log | tee ./output/words.txt");
// pocketsphinx_continuous -infile testfiles/speech.wav -dict dicts/8050.dic -lm dicts/8050.lm 2>./output/unwanted-stuff.log | tee ./output/words.txt
system("echo done decoding...");
Expand Down
12 changes: 0 additions & 12 deletions dicts/3651.dic

This file was deleted.

82 changes: 0 additions & 82 deletions dicts/3651.lm

This file was deleted.

12 changes: 0 additions & 12 deletions dicts/3651.log_pronounce

This file was deleted.

12 changes: 0 additions & 12 deletions dicts/3651.sent

This file was deleted.

11 changes: 0 additions & 11 deletions dicts/3651.vocab

This file was deleted.

36 changes: 0 additions & 36 deletions dicts/8050.dic

This file was deleted.

Loading