Code Monkey home page Code Monkey logo

Comments (6)

mkckr0 avatar mkckr0 commented on May 22, 2024

It may be caused by PipeWire itself. Run pw-play -v test.wav to see the delay.

Rocky Linux 9 works well, the delay is 2048 and I can hear a clear sound.

now=2472351168973 rate=1/48000 ticks=43008 delay=2048 queued=0
now=2473075616347 rate=1/48000 ticks=77824 delay=2048 queued=0
now=2474183420970 rate=1/48000 ticks=131072 delay=2048 queued=0
now=2475351964615 rate=1/48000 ticks=186368 delay=2048 queued=0
now=2476069723593 rate=1/48000 ticks=221184 delay=2048 queued=0
now=2477168449525 rate=1/48000 ticks=274432 delay=2048 queued=0
now=2478279790842 rate=1/48000 ticks=327680 delay=2048 queued=0
now=2479399421351 rate=1/48000 ticks=380928 delay=2048 queued=0

I also test on Fedora 39, which delay is 10240 and I can hear noisy sound.

stream time: now:1912175561068 rate:1/48000 ticks:61440 delay:10240 queued:1882 buffered:32 buffers:1 avail:1
stream time: now:1913004872486 rate:1/48000 ticks:94208 delay:10240 queued:1881 buffered:32 buffers:1 avail:1
stream time: now:1913896419255 rate:1/48000 ticks:120832 delay:10240 queued:1882 buffered:32 buffers:1 avail:1
stream time: now:1914859452183 rate:1/48000 ticks:149504 delay:10240 queued:1881 buffered:32 buffers:1 avail:1
stream time: now:1915894128718 rate:1/48000 ticks:180224 delay:10240 queued:1881 buffered:32 buffers:1 avail:1

Maybe changing some config of PipeWire can fix it. But I'm not familiar with it.

from audio-share.

mfeng9 avatar mfeng9 commented on May 22, 2024

I can confirm that with pw-play, I had rattling sound as well. But after following the instructions from https://linuxmusicians.com/viewtopic.php?t=25768, I was able to get clear sound with pw-play. Unfortunately, the remote audio still is noisy even though pw-play is working well.

from audio-share.

mkckr0 avatar mkckr0 commented on May 22, 2024

I can confirm that with pw-play, I had rattling sound as well. But after following the instructions from https://linuxmusicians.com/viewtopic.php?t=25768, I was able to get clear sound with pw-play. Unfortunately, the remote audio still is noisy even though pw-play is working well.

This post introduce the new config way using pw-metadata -n settings instead of editing the .conf file directly. But the Rokcy Linux 9 and Fedora 39 both have same runtime settings.

[abc@localhost ~]$ pw-metadata -n settings
Found "settings" metadata 30
update: id:0 key:'log.level' value:'2' type:''
update: id:0 key:'clock.rate' value:'48000' type:''
update: id:0 key:'clock.allowed-rates' value:'[ 48000 ]' type:''
update: id:0 key:'clock.quantum' value:'1024' type:''
update: id:0 key:'clock.min-quantum' value:'1024' type:''
update: id:0 key:'clock.max-quantum' value:'2048' type:''
update: id:0 key:'clock.force-quantum' value:'0' type:''
update: id:0 key:'clock.force-rate' value:'0' type:''

from audio-share.

mkckr0 avatar mkckr0 commented on May 22, 2024

The Rocky 9 and Fedora 39 are both installed in my VirtualBox. I install VBox Guest Additions for Fedora 39 and the sound become clear while the PipeWire settings is untouched.

from audio-share.

mkckr0 avatar mkckr0 commented on May 22, 2024

I'll close this issue. If you still have problem, you can reopen it.

from audio-share.

mfeng9 avatar mfeng9 commented on May 22, 2024

Here is a little tip for other Linux users: there is a flatpak app that relays audio from Linux device without rattling sound but perhaps higher latency: https://flathub.org/apps/de.haeckerfelix.AudioSharing

from audio-share.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.