-
Notifications
You must be signed in to change notification settings - Fork 1
/
rc.conf
54 lines (50 loc) · 2.26 KB
/
rc.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# RadioChronicle configuration file
#
[general]
fileNameFormat = ./RC-%Y%m%d-%H%M%S.wav ; Output file name location and format, default is ./RC-%Y%m%d-%H%M%S.wav
monitor = off ; Provide audio monitoring through output device, default is OFF
[tuning]
volumeTreshold = 5.0 ; Volume treshold (0-100), louder is transmission, quieter is silence, default is 5.0
maxPauseLength = 1.0 ; Max pause (in seconds) of silence in transmission not causing recording stop, default is 1.0
trailLength = 1.0 ; Length of trail (in seconds) of silence left at the end of the recorded transmission, default is 1.0
minRecordingLength = 0.5 ; Min transmission length, any shorter record is considered noise and deleted, default is 0.5
[device]
chunkSize = 1024 ; Number of frames to process at once, normally default of 1024 is fine, change carefully
inputDevice = -1 ; Specifies the index of input device to use for recording, -1 denotes default input device
outputDevice = -1 ; Specifies the index of output device to use for monitoring, -1 denotes default output device
audioBits = 16 ; Recording quantization in bits (8/16/32), defaults to 16, 8 and 32 may not work on some soundcards
sampleRate = 44100 ; Sampling frequency, typical values are 8000, 11025, 22050, 44100, 48000, 96000, defaults to 44100
channel = LEFT ; Input channel to monitor - number/LEFT/RIGHT/STEREO/ALL/MONO, default is MONO
; LEFT is the same as 1, RIGHT is the same as 2
; STEREO or ALL specifies that all input channels must be recorded
; MONO specifies that all input channels should be downmixed to one mono channel
[loggers] ; Logging configuration
keys=root
[handlers]
keys=Console, LogFile, RotatingLogFile
[formatters]
keys=short,long
[logger_root]
level=DEBUG
handlers=Console, LogFile ; Comment to turn on log file rotation
#handlers=Console, RotatingLogFile ; Uncomment to turn on log file rotation
[handler_Console]
class=StreamHandler
level=DEBUG
formatter=short
args=()
[handler_LogFile]
class=FileHandler
level=DEBUG
formatter=long
args=("rc.log",) ; Log file name
[handler_RotatingLogFile]
class=handlers.TimedRotatingFileHandler
level=DEBUG
formatter=long
args=("rc.log", 'midnight', 1) ; Log file name, rotated at midnight
[formatter_short]
format=%(message)s
[formatter_long]
format=%(asctime)s %(levelname)-8s %(message)s