-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from SEPIA-Framework/dev
SEPIA-Home v2.6.2 release candidate
- Loading branch information
Showing
40 changed files
with
982 additions
and
182 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
10 changes: 10 additions & 0 deletions
10
sepia-client-installation/rpi/import_self_signed_SSL_to_Chromium.sh
This file contains 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,10 @@ | ||
#!/bin/bash | ||
set -e | ||
if [ "$#" -ne 2 ]; then | ||
echo "Usage: bash import_self_signed_SSL_to_Chromium.sh [host:port] [cert-name]" | ||
echo "Example: bash import_self_signed_SSL_to_Chromium.sh \"sepia-home.local:20726\" sepia-home" | ||
exit 1 | ||
fi | ||
echo "Importing '/usr/local/share/ca-certificates/$2.crt' as '$1' into NSSDB" | ||
certutil -d "sql:$HOME/.pki/nssdb" -A -t "C,," -n "$1" -i "/usr/local/share/ca-certificates/$2.crt" | ||
echo "DONE" |
This file contains 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 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
18 changes: 18 additions & 0 deletions
18
sepia-client-installation/rpi/install_raspiaudio_mic_plus.sh
This file contains 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,18 @@ | ||
#!/bin/bash | ||
echo "This script will install the Raspiaudio MIC+ HAT with on-board speakers." | ||
echo "" | ||
echo "NOTE: It will download and execute the official script via 'sudo'." | ||
echo "" | ||
read -p "Press any key to continue (or CTRL+C to abort)." | ||
echo "" | ||
sudo wget -O - mic.raspiaudio.com | sudo bash | ||
echo "" | ||
echo "Some notes:" | ||
echo "" | ||
echo "Volume of the mic seems to be very low at least on RPi OS Bullseye." | ||
echo "You might need to set a high gain value via client settings." | ||
echo "" | ||
echo "Run 'pulsemixer' afterwards and change source setup (F3) to:" | ||
echo "Multichannel Duplex" | ||
echo "" | ||
|
This file contains 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 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,51 @@ | ||
#!/bin/bash | ||
# check: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/tree/master/src/modules/echo-cancel for Parameters | ||
|
||
# masters - use: 'pactl list short sources' and 'pactl list short sinks' to get names | ||
source_master=alsa_input.platform-soc_sound.multichannel-input | ||
sink_master=alsa_output.platform-soc_sound.multichannel-output | ||
|
||
# names | ||
source_name=input.aec_source | ||
sink_name=output.aec_sink | ||
|
||
# properties | ||
source_properties=device.description=$source_name | ||
sink_properties=device.description=$sink_name | ||
|
||
# other options | ||
aec_method='speex' | ||
aec_args='"filter_size_ms=200 agc=0 denoise=0 dereverb=0 echo_suppress=1 echo_suppress_attenuation=0 echo_suppress_attenuation_active=0"' | ||
#note for speex: attenuation is negative db, filtering needs channels=1 | ||
#note 2: on recording speex usually takes around 5s to calibrate ... each time! | ||
#aec_method='webrtc' | ||
#aec_args='"voice_detection=0 noise_suppression=1 analog_gain_control=0 digital_gain_control=0 high_pass_filter=1 drift_compensation=1 intelligibility_enhancer=1 extended_filter=0"' | ||
#aec_args='"mobile=1 routing_mode=loud-speakerphone comfort_noise=0"' | ||
#note for webrtc: remove channels and use master format if you want to experiment with beamforming | ||
#aec_method='null' | ||
#aec_args= | ||
|
||
# more stuff to potentially improve performance: | ||
#if [ $(pactl list modules short | grep module-suspend-on-idle | wc -l) -gt 0 ]; then | ||
# pactl unload-module module-suspend-on-idle | ||
#fi | ||
|
||
# load the module | ||
if [ $(pactl list modules short | grep module-echo-cancel | wc -l) -gt 0 ]; then | ||
pactl unload-module module-echo-cancel | ||
echo "Pulseaudio: unloaded old instance of 'module-echo-cancel'" | ||
fi | ||
pactl load-module module-echo-cancel \ | ||
source_name=$source_name \ | ||
source_master=$source_master \ | ||
source_properties=$source_properties \ | ||
sink_name=$sink_name sink_master=$sink_master \ | ||
sink_properties=$sink_properties \ | ||
rate=32000 \ | ||
channels=1 \ | ||
use_master_format=0 \ | ||
aec_method=$aec_method \ | ||
aec_args=$aec_args | ||
|
||
pactl set-default-source $source_name | ||
pactl set-default-sink $sink_name |
This file contains 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.