ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
34.52k stars 3.52k forks source link

Unable to open audio device for capture on ARM SoC (ODROID N2) running Ubuntu Minimal OS #951

Open CymaSpace opened 1 year ago

CymaSpace commented 1 year ago

Description: I'm encountering an issue with the ./stream command in the whisper.cpp project. I'm trying to use a USB microphone (Blue Yeti) as the capture device, but I'm unable to open the audio device for capture.

Steps I've taken:

  1. Verified that the ALSA configuration is correctly set in the /etc/asound.conf file.
  2. Checked the ALSA settings for the USB Yeti X microphone.
  3. Confirmed that the USB microphone is functional by using the arecord command to capture audio successfully.
  4. Tried specifying the capture device using the -D hw:1,0 option in the arecord command, but it still fails to open the audio device.

Additional Information: Output of arecord -l command: List of CAPTURE Hardware Devices card 0: AMLAUGESOUND [AML-AUGESOUND], device 1: TDM-C-T9015-audio-hifi T9015-audio-hifi-1 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: X [Yeti X], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0

Request for assistance: I would appreciate any guidance or suggestions on how to resolve this issue and successfully use the USB microphone as the capture device with the ./stream command in the whisper.cpp project.

mylesdebastion commented 1 year ago

This is the failure we got too:

root@odroid:~/whisper.cpp# ./stream -m models/ggml-tiny.en.bin --step 4000 --length 8000 -c 1 -t 4 -ac 512
init: found 2 capture devices:
init:    - Capture device #0: 'AML-AUGESOUND, '
init:    - Capture device #1: 'Yeti X, USB Audio'
init: attempt to open capture device 1 : 'Yeti X, USB Audio' ...
init: couldn't open an audio device for capture: ALSA: Couldn't find any hardware audio formats!
main: audio.init() failed!