mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
JS8Call - Fixed an audio decode issue in JS8Call when the ET_DEVICE plughw device is used.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 24 October 2024
|
# Date : 24 October 2024
|
||||||
# Updated : 28 October 2024
|
# Updated : 30 October 2024
|
||||||
# Purpose : Wrapper script for starting JS8Call with PnP support
|
# Purpose : Wrapper script for starting JS8Call with PnP support
|
||||||
#
|
#
|
||||||
# Preconditions
|
# Preconditions
|
||||||
@@ -62,7 +62,15 @@ update-config () {
|
|||||||
APLAY_OUT=$(arecord -l | grep ET_AUDIO)
|
APLAY_OUT=$(arecord -l | grep ET_AUDIO)
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
AUDIO_DEVICE=$(echo $APLAY_OUT | cut -d"," -f2 | cut -d":" -f1 | awk '{print $2}')
|
AUDIO_DEVICE=$(echo $APLAY_OUT | cut -d"," -f2 | cut -d":" -f1 | awk '{print $2}')
|
||||||
JS8_AUDIO_DEVICE="plughw:CARD=ET_AUDIO,DEV=${AUDIO_DEVICE}"
|
|
||||||
|
# JS8Call has an issue decoding the received audio following a
|
||||||
|
# transmission when the device below is used.
|
||||||
|
#
|
||||||
|
#JS8_AUDIO_DEVICE="plughw:CARD=ET_AUDIO,DEV=${AUDIO_DEVICE}"
|
||||||
|
#
|
||||||
|
# Instead, the following device solves this issue:
|
||||||
|
JS8_AUDIO_DEVICE="sysdefault:CARD=ET_AUDIO"
|
||||||
|
|
||||||
et-log "Using '${JS8_AUDIO_DEVICE}' for JS8Call configuration."
|
et-log "Using '${JS8_AUDIO_DEVICE}' for JS8Call configuration."
|
||||||
|
|
||||||
# 3. Check for existing JS8Call sound configuration
|
# 3. Check for existing JS8Call sound configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user