diff --git a/birdnet.conf-defaults b/birdnet.conf-defaults
index 6eb87b6..12d81c7 100644
--- a/birdnet.conf-defaults
+++ b/birdnet.conf-defaults
@@ -115,6 +115,22 @@ CONFIDENCE=0.7
SENSITIVITY=1.25
+## Configuration of the frequency shifting feature, useful for earing impaired people.
+
+## FREQSHIFT_TOOL
+
+FREQSHIFT_TOOL=sox
+
+## If the tool is ffmpeg, you have to define a freq. shift from HI to LO:
+## FREQSHIFT_HI
+FREQSHIFT_HI=6000
+## FREQSHIFT_LO
+FREQSHIFT_LO=3000
+
+## If the tool is sox, you have to define the pitch shift (amount of 100ths of semitone)
+## FREQSHIFT_PITCH
+FREQSHIFT_PITCH=-1500
+
## CHANNELS holds the variable that corresponds to the number of channels the
## sound card supports.
diff --git a/homepage/images/shift.svg b/homepage/images/shift.svg
new file mode 100644
index 0000000..ab89871
--- /dev/null
+++ b/homepage/images/shift.svg
@@ -0,0 +1,74 @@
+
+
diff --git a/homepage/images/spinner.gif b/homepage/images/spinner.gif
new file mode 100644
index 0000000..b267d17
Binary files /dev/null and b/homepage/images/spinner.gif differ
diff --git a/homepage/images/unshift.svg b/homepage/images/unshift.svg
new file mode 100644
index 0000000..a04eb15
--- /dev/null
+++ b/homepage/images/unshift.svg
@@ -0,0 +1,74 @@
+
+
diff --git a/scripts/advanced.php b/scripts/advanced.php
index d2cdfe7..ae3b542 100644
--- a/scripts/advanced.php
+++ b/scripts/advanced.php
@@ -100,6 +100,38 @@ if(isset($_GET['submit'])) {
}
}
+ if(isset($_GET["freqshift_hi"])) {
+ $freqshift_hi = $_GET["freqshift_hi"];
+ if(strcmp($freqshift_hi,$config['FREQSHIFT_HI']) !== 0) {
+ $contents = preg_replace("/FREQSHIFT_HI=.*/", "FREQSHIFT_HI=$freqshift_hi", $contents);
+ $contents2 = preg_replace("/FREQSHIFT_HI=.*/", "FREQSHIFT_HI=$freqshift_hi", $contents2);
+ }
+ }
+
+ if(isset($_GET["freqshift_lo"])) {
+ $freqshift_lo = $_GET["freqshift_lo"];
+ if(strcmp($freqshift_lo,$config['FREQSHIFT_LO']) !== 0) {
+ $contents = preg_replace("/FREQSHIFT_LO=.*/", "FREQSHIFT_LO=$freqshift_lo", $contents);
+ $contents2 = preg_replace("/FREQSHIFT_LO=.*/", "FREQSHIFT_LO=$freqshift_lo", $contents2);
+ }
+ }
+
+ if(isset($_GET["freqshift_pitch"])) {
+ $freqshift_pitch = $_GET["freqshift_pitch"];
+ if(strcmp($freqshift_pitch,$config['FREQSHIFT_PITCH']) !== 0) {
+ $contents = preg_replace("/FREQSHIFT_PITCH=.*/", "FREQSHIFT_PITCH=$freqshift_pitch", $contents);
+ $contents2 = preg_replace("/FREQSHIFT_PITCH=.*/", "FREQSHIFT_PITCH=$freqshift_pitch", $contents2);
+ }
+ }
+
+ if(isset($_GET["freqshift_tool"])) {
+ $freqshift_tool = $_GET["freqshift_tool"];
+ if(strcmp($freqshift_tool,$config['FREQSHIFT_TOOL']) !== 0) {
+ $contents = preg_replace("/FREQSHIFT_TOOL=.*/", "FREQSHIFT_TOOL=$freqshift_tool", $contents);
+ $contents2 = preg_replace("/FREQSHIFT_TOOL=.*/", "FREQSHIFT_TOOL=$freqshift_tool", $contents2);
+ }
+ }
+
if(isset($_GET["full_disk"])) {
$full_disk = $_GET["full_disk"];
if(strcmp($full_disk,$config['FULL_DISK']) !== 0) {
@@ -253,16 +285,65 @@ foreach($formats as $format){
The BirdNET-Pi URL is how the main page will be reached. If you want your installation to respond to an IP address, place that here, but be sure to indicate "http://". Example for IP: http://192.168.0.109 Example if you own your own domain: https://virginia.birdnetpi.com
>
+
BirdNET-Lite Settings
-
-
-
Min=0.0, Max=2.9
-
-
-
Min=0.01, Max=0.99
-
-
-
Min=0.5, Max=1.5
+
+
+
+
+ Min=0.0, Max=2.9
+
+
+
+
+ Min=0.01, Max=0.99
+
+
+
+
+ Min=0.5, Max=1.5
+
+
+
Accessibility Settings
+
+
Birdsongs Frequency shifting configuration:
+ this can be useful for earing impaired people.
+
+
+
+
+
+
+ Choose here the shifting tool.
+
+
+
+ using ffmpeg:
+ e.g. origin=6000, target=4000, performs a shift of 2000 Hz down.
+
+
+
+
+
+
+
+ using sox:
+ e.g. shiftPitch=-1200 performs a shift of 1 octave down. This value is in 100ths of a semitone.
+
+
+