Closed korjavin closed 6 months ago
I'm using Pipewire but it will be the same, I solved it by doing this:
Check the device number with python -m sounddevice
Edit src/transcription.py: line ~45~ and add your device number as device
with sd.InputStream(samplerate=sample_rate, channels=1, dtype='int16', blocksize=sample_rate * frame_duration // 1000, device=8, callback=lambda indata, frames, time, status: buffer.extend(indata[:, 0])):
I needed to change the sample rate too ie. sample_rate = 48000
checking it with pactl list short sinks
Maybe I should add some code to do it from the program arguments...
Hi there,
Thank you @uberkael for your response! In my latest commit, I've added config options for choosing the sound device and sample rate. :)
Is there a way to specify the device for recording?