Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Everything is great but there is no audio output from the SOX process #140

Open
Sap333 opened this issue Nov 17, 2023 · 7 comments
Open

Comments

@Sap333
Copy link

Sap333 commented Nov 17, 2023

All sound device appear and seem to work properly once Lirebird is enabled. SOX process also starts.
But there is no output on Lirebird's monitor device.
In the system mixer I see input on "SOX input" input device and nothing on the output device.

Ubuntu 23.04
Python 3 => Python 3.11.4 (the default version for this release).
Lyrebird 1.2.0 was installed from a DEB-file.

@Sap333 Sap333 changed the title Everything is great bus there not audiooutput from SOX process. Everything is great but there is no audio output from the SOX process Nov 17, 2023
@ddan39
Copy link

ddan39 commented Nov 19, 2023

this is because of a bug currently where sox is run with "-vol 0" argument, that does just that, sets the volume to 0. see my pull request #138 for that bug fix, and another.

@Sap333
Copy link
Author

Sap333 commented Nov 19, 2023

Yeap. Seems like you are right. I am just suprised that no one even tested the release with such a silly bug.

@develroo
Copy link

develroo commented Nov 30, 2023

I am not sure it is related to that in my case as I am on Debian testing.

Python 3.11.6
libpipewire 0.3.85
libpulse 16.1.0

Try as I might I cannot get any sound out of lyrebird. I see the input go in but nothing seems to come out of sox to be passed down the chain.

This is how it looks in qpwgraph. I think I am doing it all correctly?
Screenshot from 2023-11-30 13-53-45

Tell a lie. It might be related though, as I am on Debian not sure why this is the default. I did an strace and captured this.

lyrebird-debug.txt.885199:execve("/usr/bin/sox", ["sox", "--buffer", "17", "-q", "-t", "pulseaudio", "default", "-t", "pulseaudio", "Lyrebird-Output", "pitch", "250.0", "vol", "0", "downsample", "1"], 0x7ffc6c78d498 /* 55 vars */) = 0

@Sap333
Copy link
Author

Sap333 commented Nov 30, 2023

The whole thing looks pretty much broken. It creates loops.

@ddan39
Copy link

ddan39 commented Nov 30, 2023

@develroo Look at my reply above. As you can see in the strace exec you found, sox is being run with "vol 0" which sets the volume to absolute 0.

@Sap333
Copy link
Author

Sap333 commented Dec 1, 2023

ddan39 I tryied you patch and it helped a lot but didn't solve the problem. Lyrebird creates loops everytime it enables or changes configuiration.

@ddan39
Copy link

ddan39 commented Dec 1, 2023

@Sap333 I'm not sure what you mean. I believe lyrebird is supposed to create loops, that's how it redirects the audio around. I don't run ubuntu though, so I won't be much help getting it to work on your system. I made my own PKGBUILD for archlinux, with my patches, and it works for me.

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

No branches or pull requests

3 participants