Transcribing audio with Whisper.cpp

Message
Author
User avatar
Adrian
Developer
Posts: 8855
Joined: Wed Jul 12, 2006 1:42 am

Transcribing audio with Whisper.cpp

#1 Post by Adrian »

Take a look at this amazing project https://github.com/ggerganov/whisper.cpp

You have the instructions in the repo, but it's basically:

Code: Select all

git clone https://github.com/ggerganov/whisper.cpp.git
cd whisper.cpp
sh ./models/download-ggml-model.sh base.en

# build the main example
make -j

# transcribe an audio file
./main -f samples/jfk.wav

User avatar
dolphin_oracle
Developer
Posts: 22002
Joined: Sun Dec 16, 2007 12:17 pm

Re: Transcribing audio with Whisper.cpp

#2 Post by dolphin_oracle »

I was just hearing someone talking about that yesterday.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Adrian
Developer
Posts: 8855
Joined: Wed Jul 12, 2006 1:42 am

Re: Transcribing audio with Whisper.cpp

#3 Post by Adrian »

I heard it from Alex Stamos on TWiT.tv

User avatar
operadude
Posts: 842
Joined: Tue Nov 05, 2019 12:08 am

Re: Transcribing audio with Whisper.cpp

#4 Post by operadude »

Adrian wrote: Wed Oct 30, 2024 4:11 pm Take a look at this amazing project https://github.com/ggerganov/whisper.cpp

You have the instructions in the repo, but it's basically:

Code: Select all

git clone https://github.com/ggerganov/whisper.cpp.git
cd whisper.cpp
sh ./models/download-ggml-model.sh base.en

# build the main example
make -j

# transcribe an audio file
./main -f samples/jfk.wav
:number1:

Very clear instructions!

Thanks for the "make -j" line!!!
Since I don't work with compiled languages ( :bagoverhead: :bagoverhead: ), I never would have succeeded in implementing this wicked-cool project.

I just added output to a file:

Code: Select all

./main -m /mnt/Testing/github-projects/whisper.cpp/models/ggml-base.en.bin -f samples/jfk.wav > test.txt
Time to Play :exclamation: :happy:

User avatar
Jerry3904
Administrator
Posts: 23040
Joined: Wed Jul 19, 2006 6:13 am

Re: Transcribing audio with Whisper.cpp

#5 Post by Jerry3904 »

That looks pretty interesting, will have to take a look.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Stevo
Developer
Posts: 14415
Joined: Fri Dec 15, 2006 7:07 pm

Re: Transcribing audio with Whisper.cpp

#6 Post by Stevo »

Hmmm--shouldn't that "make -j" include a number after the "j" to specify how many CPU cores the build is supposed to use?
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
Adrian
Developer
Posts: 8855
Joined: Wed Jul 12, 2006 1:42 am

Re: Transcribing audio with Whisper.cpp

#7 Post by Adrian »

From what I understand it will use as many jobs it can create if you don't specify a number. I assume it won't create an infinite number of jobs though what it means is that it will create as many jobs as threads available (so on a hyperthreaded 8-core CPU for example it will create 16)
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.

User avatar
operadude
Posts: 842
Joined: Tue Nov 05, 2019 12:08 am

Re: Transcribing audio with Whisper.cpp

#8 Post by operadude »

Adrian wrote: Thu Oct 31, 2024 5:50 pm From what I understand it will use as many jobs it can create if you don't specify a number. I assume it won't create an infinite number of jobs though what it means is that it will create as many jobs as threads available (so on a hyperthreaded 8-core CPU for example it will create 16)
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
Thanks, Adrian.

Here is a quote from the "make" man page, which seems to say it in a less ambiguous way (without invoking "infinity"):
-j [jobs], --jobs[=jobs]
Specifies the number of jobs (commands) to run simultaneously. If there is more than one
-j option, the last one is effective. If the -j option is given without an argument, make
will not limit the number of jobs that can run simultaneously. When make invokes a sub-
make, all instances of make will coordinate to run the specified number of jobs at a time;
see the section PARALLEL MAKE AND THE JOBSERVER for details.
Again, thanks for the thread.

Have wanted for some time to get back on the bike with the "1TBS" group. ;)

:cool:

Post Reply

Return to “General”