-
Notifications
You must be signed in to change notification settings - Fork 90
Feature: add --volume-controller, which enables LVA to use pipewire for master volume control. USB audio natively with LVA!
#272
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
Open
machineonamission
wants to merge
35
commits into
OHF-Voice:main
Choose a base branch
from
machineonamission:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
efb42c8
Add files via upload
omaramin-2000 06eb194
Delete sound files
omaramin-2000 8cbfe6b
Merge branch 'OHF-Voice:main' into main
omaramin-2000 f9442de
Merge branch 'OHF-Voice:main' into main
omaramin-2000 7ff5762
Merge branch 'OHF-Voice:main' into main
omaramin-2000 02d0493
Merge branch 'OHF-Voice:main' into main
omaramin-2000 e9dbd12
Merge branch 'OHF-Voice:main' into main
omaramin-2000 b6c1029
Add maximum seconds for ringing timer
omaramin-2000 94dedba
Add maximum seconds for ringing timer
omaramin-2000 9802d7b
Add maximum seconds for ringing timer
omaramin-2000 d683576
Update satellite.py
omaramin-2000 ccabeea
Update satellite.py
omaramin-2000 e19dfb8
Merge branch 'OHF-Voice:main' into main
omaramin-2000 531b59c
Fix lint formatting
omaramin-2000 4f44609
Update satellite.py
omaramin-2000 a45a387
Update __main__.py
omaramin-2000 443c8bb
Update satellite.py
omaramin-2000 f0246c2
Update satellite.py
omaramin-2000 8a6d975
i messed up the git and its betteer now
machineonamission 8c447d6
squash a bunch of git push based debugging
machineonamission c71d181
undo autoformatting and debugging stuff
machineonamission f5c99fb
dammit
machineonamission 2550c2d
add docs
machineonamission 65d5e17
its one commit cause i messed up the base commit TWICE
machineonamission e0bb3a8
why
machineonamission 413bb73
Merge branch 'main' into main
florian-asche 105ba85
testing pure pactl impl
machineonamission 0052284
wabelabebl
machineonamission acf29a4
wabelabebl
machineonamission 4169858
wabelabebl
machineonamission ef8603b
wabelabebl
machineonamission 00a41ec
wabelabebl
machineonamission 82fe9d2
Merge branch 'pw-volume'
machineonamission 606a374
Merge remote-tracking branch 'upstream/main'
machineonamission 9133163
i am so stupid
machineonamission File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # Additional Audio Settings | ||
|
|
||
| This document is still in an early stage and will be updated soon. | ||
|
|
||
| ## Pipewire: | ||
|
|
||
| ### Pipewire-based Volume Control: | ||
|
|
||
| If you set the environment variable `VOLUME_CONTROLLER` to `pipewire`, LVA will use Pipewire for volume control, which | ||
| often works with USB volume controls/displays. You may need a daemon to handle external volume buttons, such | ||
| as [alsa_volume_from_usb_hid](https://github.com/neildavis/alsa_volume_from_usb_hid) | ||
| or [its docker version](https://github.com/machineonamission/alsa_volume_from_usb_hid). | ||
|
|
||
| ## Pulseaudio: | ||
|
|
||
| ### Acoustic Echo Cancellation: | ||
|
|
||
| Enable the echo cancel PulseAudio module: | ||
|
|
||
| ``` sh | ||
| pactl load-module module-echo-cancel \ | ||
| aec_method=webrtc \ | ||
| aec_args="analog_gain_control=0 digital_gain_control=1 noise_suppression=1" | ||
| ``` | ||
|
|
||
| Verify that the `echo-cancel-source` and `echo-cancel-sink` devices are present: | ||
|
|
||
| ``` sh | ||
| pactl list short sources | ||
| pactl list short sinks | ||
| ``` | ||
|
|
||
| Use the new devices: | ||
|
|
||
| ``` sh | ||
| # The device names may be different on your system. | ||
| # Double check with --list-input-devices and --list-output-devices | ||
| python3 -m linux_voice_assistant ... \ | ||
| --audio-input-device 'Echo-Cancel Source' \ | ||
| --audio-output-device 'pipewire/echo-cancel-sink' | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think writing the pactl output to stdout is the right long-term approach.