Add the ability to set speech-dispatcher configuration in settings.conf if desired.
This commit is contained in:
@ -273,6 +273,11 @@ help() {
|
||||
echo
|
||||
echo "ipfsGateway=\"https://gateway.pinata.cloud\" # Gateway to be used for ipfs downloads."
|
||||
echo "noCache=\"true\" # Do not keep downloaded items in the cache."
|
||||
echo "spd_module=\<module_name>\" # set speech-dispatcher module."
|
||||
echo "spd_pitch=\<number>\" # set speech-dispatcher speech pitch."
|
||||
echo "spd_rate=\<number>\" # set speech-dispatcher speech rate."
|
||||
echo "spd_voice=\<voice_name>\" # set speech-dispatcher voice. Be sure module is correct."
|
||||
echo "spd_volume=\<number>\" # set speech-dispatcher speech volume."
|
||||
exit 0
|
||||
}
|
||||
|
||||
@ -480,6 +485,11 @@ if [[ -r "${configFile%/*}/settings.conf" ]]; then
|
||||
fi
|
||||
unset noCache
|
||||
export ipfsGateway="${ipfsGateway:-https://gateway.pinata.cloud}"
|
||||
export spd_module="${spd_module:+ -o ${spd_module}}"
|
||||
export spd_pitch="${spd_pitch:+ -p ${spd_pitch}}"
|
||||
export spd_rate="${spd_rate:+ -r ${spd_rate}}"
|
||||
export spd_voice="${spd_voice:+ -y ${spd_voice}}"
|
||||
export spd_volume="${spd_volume:+ -i ${spd_volume}}"
|
||||
|
||||
# The list of games available for installation.
|
||||
# Use menu friendly names.
|
||||
|
Reference in New Issue
Block a user