Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio demo not working #48

Open
1 task done
hdumcke opened this issue May 24, 2023 · 0 comments
Open
1 task done

audio demo not working #48

hdumcke opened this issue May 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hdumcke
Copy link
Contributor

hdumcke commented May 24, 2023

Reproduction steps

run demos/audio_test.py

Actual results

ubuntu@minipupperv2:/mini_pupper_bsp/demos$ chmod +x audio_test.py
ubuntu@minipupperv2:
/mini_pupper_bsp/demos$ ./audio_test.py
Simple mixer control 'Headphone',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback 400 [100%] [4.00dB] [on]
Mini Pupper 2 audio record start...
Traceback (most recent call last):
File "/home/ubuntu/mini_pupper_bsp/demos/./audio_test.py", line 35, in
record = sd.rec(int(duration * fs), samplerate=fs, channels=2)
File "/usr/local/lib/python3.10/dist-packages/sounddevice.py", line 276, in rec
ctx.start_stream(InputStream, samplerate, ctx.input_channels,
File "/usr/local/lib/python3.10/dist-packages/sounddevice.py", line 2582, in start_stream
self.stream = StreamClass(samplerate=samplerate,
File "/usr/local/lib/python3.10/dist-packages/sounddevice.py", line 1421, in init
_StreamBase.init(self, kind='input', wrap_callback='array',
File "/usr/local/lib/python3.10/dist-packages/sounddevice.py", line 817, in init
_get_stream_parameters(kind, device, channels, dtype, latency,
File "/usr/local/lib/python3.10/dist-packages/sounddevice.py", line 2660, in _get_stream_parameters
info = query_devices(device)
File "/usr/local/lib/python3.10/dist-packages/sounddevice.py", line 569, in query_devices
raise PortAudioError(f'Error querying device {device}')
sounddevice.PortAudioError: Error querying device -1

Expected results

no Python trace

Version

Mini Pupper 2

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@hdumcke hdumcke added the bug Something isn't working label May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant