Spaces:
Sleeping
Sleeping
wchess : update readme
Browse files- examples/wchess/README.md +37 -2
examples/wchess/README.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
| 1 |
-
# wchess
|
| 2 |
|
| 3 |
-
Voice-controlled chess using Whisper
|
| 4 |
|
| 5 |
Online demo: https://whisper.ggerganov.com/wchess/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# wchess
|
| 2 |
|
| 3 |
+
Voice-controlled chess using Whisper
|
| 4 |
|
| 5 |
Online demo: https://whisper.ggerganov.com/wchess/
|
| 6 |
+
|
| 7 |
+
https://github.com/ggerganov/whisper.cpp/assets/1991296/c2b2f03c-9684-49f3-8106-357d2d4e67fa
|
| 8 |
+
|
| 9 |
+
## Command-line tool
|
| 10 |
+
|
| 11 |
+
```bash
|
| 12 |
+
mkdir build && cd build
|
| 13 |
+
cmake -DWHISPER_SDL2=1 ..
|
| 14 |
+
make -j
|
| 15 |
+
|
| 16 |
+
./bin/wchess -m ../models/ggml-base.en.bin
|
| 17 |
+
|
| 18 |
+
Move: start
|
| 19 |
+
|
| 20 |
+
a b c d e f g h
|
| 21 |
+
r n b q k b n r 8
|
| 22 |
+
p p p p p p p p 7
|
| 23 |
+
. * . * . * . * 6
|
| 24 |
+
* . * . * . * . 5
|
| 25 |
+
. * . * . * . * 4
|
| 26 |
+
* . * . * . * . 3
|
| 27 |
+
P P P P P P P P 2
|
| 28 |
+
R N B Q K B N R 1
|
| 29 |
+
|
| 30 |
+
White's turn
|
| 31 |
+
[(l)isten/(p)ause/(q)uit]:
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## TODO
|
| 35 |
+
|
| 36 |
+
- Improve web-browser audio capture - sometimes it does not record the voice properly
|
| 37 |
+
- Add support for more languages by making the generated grammar string multi-lingual
|
| 38 |
+
- Fix bugs in the chess moves logic
|
| 39 |
+
|
| 40 |
+
PRs welcome!
|