Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

sendspin daemon --audio-device "my_alsa_device" should not try reaching a pulseaudio server

未关闭
#272 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
cli

调研方向

Start in sendspin/cli.py at _run_client_mode and then inspect sendspin/audio_devices.py, where sounddevice is imported and the audio device is resolved. Reproduce the command with the ALSA device from the report on a system without PulseAudio. Done means selecting that device no longer attempts to connect to a PulseAudio server.

由索引模型根据 Issue 内容生成。

描述

Env:

  • Kernel/Arch: 6.18.38-current-sunxi / armv7l
  • OS: Ubuntu 26.04
  • sendpin-cli 7.5.0
  • No Pulseaudio software installed or running.

Steps

$ /root/.local/bin/sendspin daemon --log-level DEBUG --name "P0" --audio-device "plughw:CARD=Lite,DEV=0" --hardware-volume true

Note: plughw:CARD=Lite,DEV=0 is a ALSA device.

Logs

Traceback (most recent call last):
  File "/root/.local/bin/sendspin", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/root/.local/share/pipx/venvs/sendspin/lib/python3.14/site-packages/sendspin/cli.py", line 782, in main
    return asyncio.run(_run_client_mode(args))
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/runners.py", line 204, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/asyncio/runners.py", line 127, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/root/.local/share/pipx/venvs/sendspin/lib/python3.14/site-packages/sendspin/cli.py", line 798, in _run_client_mode
    from sendspin.audio_devices import resolve_audio_device
  File "/root/.local/share/pipx/venvs/sendspin/lib/python3.14/site-packages/sendspin/audio_devices.py", line 10, in <module>
    import sounddevice
  File "/root/.local/share/pipx/venvs/sendspin/lib/python3.14/site-packages/sounddevice.py", line 2972, in <module>
    _initialize()
    ~~~~~~~~~~~^^
  File "/root/.local/share/pipx/venvs/sendspin/lib/python3.14/site-packages/sounddevice.py", line 2936, in _initialize
    _check(_lib.Pa_Initialize(), 'Error initializing PortAudio')
    ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/share/pipx/venvs/sendspin/lib/python3.14/site-packages/sounddevice.py", line 2836, in _check
    raise PortAudioError(errormsg, err, hosterror_info)
sounddevice.PortAudioError: Error initializing PortAudio: Unanticipated host error [PaErrorCode -9999]: 'PulseAudio_Initialize: Can't connect to server' [<error getting host API: -10000> error -1]
```
主要语言
Python
星标
190
派生
36
平均合并
11 天 19 小时
30 天内合并 PR
2

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Sendspin/sendspin-python-cli 的其他 Issue

查看 Sendspin/sendspin-python-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。