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

[BUG]: Audio data received but not played in Linux environment #1032

Open
Tomato-in opened this issue Feb 5, 2025 · 0 comments
Open

[BUG]: Audio data received but not played in Linux environment #1032

Tomato-in opened this issue Feb 5, 2025 · 0 comments

Comments

@Tomato-in
Copy link

Description

Audio data received but not played in Linux environment

Reproduction

Environment

  • OS: Ubuntu 22.04.5 LTS
  • Pot Version: 3.0.6
  • Audio System: PulseAudio 15.99.1

Issue Description

When clicking the pronunciation button in Pot, the application successfully fetches audio data but fails to play it. This happens consistently regardless of the translation service being used (tested with Youdao Dict, DeepL, etc.).

Observed Behavior

  1. Pot successfully connects to PulseAudio (confirmed via strace logs)
  2. Pot successfully fetches audio data from the translation services (e.g., received 32074 bytes of audio data)
  3. However, no audio is played, and no audio-related system calls are made after receiving the data

Expected Behavior

The audio should be played through the system's audio output after the pronunciation button is clicked.

Investigation Details

  1. System audio works correctly (tested with paplay)
  2. Pot connects to PulseAudio successfully:
    connect(..., "/run/user/1000/pulse/native", ...) = 0
  3. Audio data is successfully received, but no subsequent audio processing occurs:
    [DEBUG][hyper::proto::h1::conn] incoming body is content-length (32074 bytes)
  4. No audio-related system calls are made after receiving the data, suggesting the audio processing pipeline might be broken

Additional Notes

  • Opening pavucontrol sometimes temporarily resolves the issue, suggesting this might be related to how Pot handles the audio stream setup
  • Other applications' audio works normally
  • All audio devices show as SUSPENDED in pactl output, but this is normal behavior and other applications can wake them up correctly

Platform

Linux

System Version

Ubuntu 22.04.5 LTS

Window System (Linux Only)

X11

Software Version

3.0.6

Log File

Happy to provide more detailed logs if needed.

pot.log

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant