How to transcribe from audio output device? #3731
Replies: 1 comment
|
Use the monitor source of your output device. PulseAudio and PipeWire make a monitor source for each sink. A monitor source records the audio that the sink plays. 1. Build the stream tool with SDL2. sudo apt-get install libsdl2-dev
cmake -B build -DWHISPER_SDL2=ON
cmake --build build --config Release2. Find the monitor source. pactl list short sources | grep monitorThe name ends with 3. Start the transcription. Set PULSE_SOURCE=alsa_output.pci-0000_00_1f.3.analog-stereo.monitor \
./build/bin/whisper-stream -m ./models/ggml-base.en.bin -t 6 --step 0 --length 30000 -vth 0.6The text goes to the screen as a stream. Notes
I tested the routing on PipeWire. |
Uh oh!
There was an error while loading. Please reload this page.
transcribe from audio output device on linux,
output on screen as stream,
ignore audio input devices (microphone)
All reactions