Closed Dakai closed 3 weeks ago
@ylacombe
Hey @Dakai, thanks for opening this issue! Looks like it might be an issue with your KDE, have you been able to use Alsa in your terminal?
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
System Info
transformers
version: 4.44.0Who can help?
@Narsil
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
follow https://huggingface.co/learn/audio-course/chapter7/voice-assistant
Expected behavior
The course's code running in my local Linux machine does not record anything, I tried to use the latest ffmpeg to record the sound with command
ffpmeg -f alsa -i default -t 5 test.wav
and got an empty wav file, thenffmpeg -f pulse -i default -t 5 test.wav
worked perfectly.So I edited the file,
venv/lib/python3.12/site-packages/transformers/pipelines/audio_utils.py
at line 30, changedfomat_ = "alsa"
intoformat_ = "pulse"
, then the code works as expected and successfully recognised the wake word.Can you please look into this issue with Linux audio system and make it compatible with both ALSA and PulseAudio?