-
Notifications
You must be signed in to change notification settings - Fork 5
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
Autoactivate #5
Comments
Can you try that without the quotes? It should work that way. As for the delay, I'm not immediately sure where that comes from. Maybe it has something to do with the sample rate. Both this and Cadmus use this and its readme says
Cadmus always uses 48kHz for the null sink if I remember it correctly, while this application uses the sampling rate of the given device. Maybe just using 48kHz hardcoded is better after all. I think this may be a lead if you can confirm you never experience this with Cadmus and whether you're using a microphone with a different sampling rate than 48kHz. I have a 44100Hz device myself, I'll try leaving it on for a couple of hours and test whether using a 48kHz sink works. |
This may solve a sync issue (mentioned in #5) causing audio delay that increases with usage time
This may solve a sync issue (mentioned in #5) causing audio delay that increases with usage time
Ok it now works without the quotes, thank you, and I can have it autoload in my xinitrc meaning I automatically have a denoised microphone, so thats great. I never experienced any delay on Cadmus. Doing
so it turns out I have the same sample rate as you. Also doing it with cadmus loaded gives me this
so Idk but it seems like this implies that cadmus uses the same sample rate as the users microphone, although I could be wrong. |
My bad, I should've checked that. It seems like I was wrong and Cadmus just omits the rate argument where I determine it based on the device. I misremembered because the problem I faced in the past was the opposite, I think Cadmus will not work on a 48kHz mic because of this omission, as the default value is 44.1kHz. Anyway, I found another promising lead.
Turns out Cadmus is already doing this and I must've thought it looked rather random/silly and of course at first sight it works just as well without it. |
Can you try installing from the latest |
…d at the werman repo Hopefully helps with #5 as well.
Your commits seems to have fixed the issue. Thank you for actually helping me, and creating something that I will probably be using for a long time now. It does exactly what I need and nothing more, nothing less. Thank you! |
@Edesem would you please guide me on how have you managed to run the plugin using the |
I just put this line into my xinitrc before I run my window manager The important thing is you have your config file configured to automatically use the same device each time you run |
what is your OS and desktop environment/tiling window manager? |
I am using Ubuntu 20.04 LTS.. Also, I would like to mention that I have created a systemd service inside my /etc/systemd/system directory to run it as a daemon process when the OS boots up,
However, It doesn't work as well and produced some warnings Here is the result of my
As you have noticed it showed |
yeah xinitrc is usually for window managers but ubuntu does it in its own special way. Try this https://askubuntu.com/questions/493632/automatically-run-a-command-on-start-up/493643#493643 |
thank you for your help, i managed to run the plugin on the os boot up using the following guide However, that's not my case.. |
Switched from cadmus to this because I thought with a cli you can atleast autostart it, however following the config it it doesnt automatically pick my device.
config file at ~/.config/rnnoise_cli/rnnoise_cli.conf
Ideally I would like to have rnnoise run with my .xinitrc and then automatically choose my microphone and then done.
Edit:
I wanted to say alongside this issue, I have noticed after use that the microphone begins to become out of sync over time, with roughly a 3 second delay after an hour or two. This is fixed by deactivating and reactivating but I've noticed that even when its freshly activate, there is an ever slight delay. I want to love this and if I can get it to automatically turn on when I turn on my pc that would be great. But hopefully this delay is an easy fix.
The text was updated successfully, but these errors were encountered: