Skip to content

Commit

Permalink
ref #10 : quick-and-dirty attempt for real-time audio transciption
Browse files Browse the repository at this point in the history
- Processes input in chunks of 3 seconds.
- Padding audio with silence
- Uses 1 second audio from previous pass
- No text context
  • Loading branch information
ggerganov committed Oct 2, 2022
1 parent 77d929f commit b6bf906
Show file tree
Hide file tree
Showing 3 changed files with 2,517 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sync.sh
main
stream
*.o
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CC_SDL=`sdl2-config --cflags --libs`

main: ggml.o main.o
g++ -pthread -o main ggml.o main.o
./main -h
Expand All @@ -8,6 +10,9 @@ ggml.o: ggml.c ggml.h
main.o: main.cpp ggml.h
g++ -pthread -O3 -std=c++11 -c main.cpp

stream: stream.cpp
g++ -pthread -O3 -std=c++11 -o stream stream.cpp ggml.o $(CC_SDL)

# clean up the directory
clean:
rm -f *.o main
Expand Down
Loading

0 comments on commit b6bf906

Please sign in to comment.