add ability to configure codecserver
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
from owrx.controllers.settings import SettingsFormController, SettingsBreadcrumb
|
||||
from owrx.form.section import Section
|
||||
from owrx.form.input import CheckboxInput, NumberInput, DropdownInput, Js8ProfileCheckboxInput, MultiCheckboxInput, Option
|
||||
from owrx.form.input import CheckboxInput, NumberInput, DropdownInput, Js8ProfileCheckboxInput, MultiCheckboxInput, Option, TextInput
|
||||
from owrx.form.input.wfm import WfmTauValues
|
||||
from owrx.form.input.wsjt import Q65ModeMatrix, WsjtDecodingDepthsInput
|
||||
from owrx.form.input.converter import OptionalConverter
|
||||
from owrx.wsjt import Fst4Profile, Fst4wProfile
|
||||
from owrx.breadcrumb import Breadcrumb, BreadcrumbItem
|
||||
|
||||
@ -40,6 +41,13 @@ class DecodingSettingsController(SettingsFormController):
|
||||
infotext="Determines the quality, and thus the cpu usage, for the ambe codec used by digital voice"
|
||||
+ " modes.<br />If you're running on a Raspberry Pi (up to 3B+) you should leave this set at 1",
|
||||
),
|
||||
TextInput(
|
||||
"digital_voice_codecserver",
|
||||
"Codecserver address",
|
||||
infotext="Address of a remote codecserver instance (name[:port]). Leave empty to use local"
|
||||
+ " codecserver",
|
||||
converter=OptionalConverter(),
|
||||
),
|
||||
CheckboxInput(
|
||||
"digital_voice_dmr_id_lookup",
|
||||
'Enable lookup of DMR ids in the <a href="https://www.radioid.net/" target="_blank">'
|
||||
|
@ -72,6 +72,7 @@ class DspManager(Output, SdrSourceEventClient):
|
||||
"start_mod",
|
||||
"start_freq",
|
||||
"wfm_deemphasis_tau",
|
||||
"digital_voice_codecserver",
|
||||
),
|
||||
)
|
||||
|
||||
@ -130,6 +131,7 @@ class DspManager(Output, SdrSourceEventClient):
|
||||
self.props.wireProperty("digital_voice_unvoiced_quality", self.dsp.set_unvoiced_quality),
|
||||
self.props.wireProperty("dmr_filter", self.dsp.set_dmr_filter),
|
||||
self.props.wireProperty("wfm_deemphasis_tau", self.dsp.set_wfm_deemphasis_tau),
|
||||
self.props.wireProperty("digital_voice_codecserver", self.dsp.set_codecserver),
|
||||
self.props.filter("center_freq", "offset_freq").wire(set_dial_freq),
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user