Add skimmed version

pull/124/head
Carlos Aguilar 3 years ago
parent 24cd12f647
commit 741a017326

@ -81,9 +81,14 @@ endif
# Build library + main # Build library + main
# #
main: examples/main/main.cpp ggml.o whisper.o # main: examples/main/main.cpp ggml.o whisper.o
$(CXX) $(CXXFLAGS) examples/main/main.cpp whisper.o ggml.o -o main $(LDFLAGS) # $(CXX) $(CXXFLAGS) examples/main/main.cpp whisper.o ggml.o -o main $(LDFLAGS)
./main -h # ./main -h
# change the main to my stripped down version
main: examples/whisperer/whisperer.cpp ggml.o whisper.o
$(CXX) $(CXXFLAGS) examples/whisperer/whisperer.cpp whisper.o ggml.o -o whisperer $(LDFLAGS)
./whisperer -h
ggml.o: ggml.c ggml.h ggml.o: ggml.c ggml.h
$(CC) $(CFLAGS) -c ggml.c -o ggml.o $(CC) $(CFLAGS) -c ggml.c -o ggml.o

@ -0,0 +1,3 @@
set(TARGET main)
add_executable(${TARGET} main.cpp)
target_link_libraries(${TARGET} PRIVATE whisper ${CMAKE_THREAD_LIBS_INIT})

File diff suppressed because it is too large Load Diff

@ -0,0 +1,4 @@
import subprocess
batcmd="./main -m models/ggml-medium.en.bin -f samples/jfk.wav -t 8 --print_colors"
result = subprocess.check_output(batcmd, shell=True)
print(str(result, 'utf-8'))

@ -0,0 +1,4 @@
import subprocess
batcmd="./main -m models/ggml-medium.en.bin -f samples/jfk.wav -t 8 --print_colors --output-words"
result = subprocess.check_output(batcmd, shell=True)
print(str(result, 'utf-8'))

Binary file not shown.
Loading…
Cancel
Save