server_config.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "mode": "server",
  3. "debug_mode": false,
  4. "data_directory": "data",
  5. "config_file": "config/server_config.json",
  6. "network": {
  7. "command_port": 2101,
  8. "command_bind_address": "0.0.0.0",
  9. "command_max_connections": 50,
  10. "command_timeout": 30,
  11. "command_buffer_size": 8192,
  12. "raw_audio_input_port": 2102,
  13. "raw_audio_output_port": 2103,
  14. "raw_music_output_port": 2104,
  15. "audio_bind_address": "0.0.0.0",
  16. "audio_timeout": 10,
  17. "audio_buffer_size": 16384,
  18. "heartbeat_interval": 30,
  19. "max_retry_attempts": 5,
  20. "retry_delay": 5,
  21. "connection_timeout": 10,
  22. "enable_encryption": false,
  23. "encryption_key_file": null,
  24. "enable_compression": true,
  25. "compression_level": 6
  26. },
  27. "audio": {
  28. "sample_rate": 16000,
  29. "channels": 1,
  30. "bit_depth": 16,
  31. "frame_size": 1024,
  32. "max_recording_duration": 60,
  33. "silence_threshold": 0.01,
  34. "silence_duration": 3.0,
  35. "pre_recording_buffer": 1.0,
  36. "enable_noise_reduction": true,
  37. "enable_auto_gain": true,
  38. "gain_level": 1.0,
  39. "vad_enabled": true,
  40. "vad_aggressiveness": 2,
  41. "vad_frame_duration": 30,
  42. "music_sample_rate": 48000,
  43. "music_channels": 2,
  44. "music_bit_depth": 16
  45. },
  46. "ml": {
  47. "wakeword_model_path": "models/wakeword/default.pth",
  48. "voice_recognition_model_path": "models/voice_recognition/default.pth",
  49. "wakeword_threshold": 0.8,
  50. "voice_recognition_threshold": 0.7,
  51. "model_cache_size": 3,
  52. "enable_gpu": true,
  53. "gpu_device_id": 0,
  54. "batch_size": 1,
  55. "max_inference_time": 5.0,
  56. "training_data_path": "trainer/data",
  57. "model_output_path": "models",
  58. "training_batch_size": 32,
  59. "training_epochs": 100,
  60. "learning_rate": 0.001
  61. },
  62. "plugins": {
  63. "plugin_directories": [
  64. "plugins"
  65. ],
  66. "auto_load_plugins": true,
  67. "plugin_timeout": 30,
  68. "max_plugin_memory": 512,
  69. "enable_plugin_sandboxing": true,
  70. "allowed_plugin_apis": [
  71. "event_handler",
  72. "satellite_manager",
  73. "asset_manager",
  74. "config_manager",
  75. "scheduler"
  76. ],
  77. "enable_hot_reload": true,
  78. "reload_check_interval": 5,
  79. "max_reload_attempts": 3
  80. },
  81. "security": {
  82. "enable_encryption": false,
  83. "encryption_algorithm": "AES-256-GCM",
  84. "key_rotation_interval": 86400,
  85. "require_authentication": false,
  86. "auth_token_expiry": 3600,
  87. "max_auth_attempts": 3,
  88. "auth_lockout_duration": 300,
  89. "allowed_clients": [],
  90. "blocked_clients": [],
  91. "max_connections_per_client": 5,
  92. "enable_audit_logging": true,
  93. "audit_log_file": "logs/security_audit.log",
  94. "enable_intrusion_detection": false
  95. },
  96. "logging": {
  97. "log_level": "info",
  98. "log_format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
  99. "date_format": "%Y-%m-%d %H:%M:%S",
  100. "enable_file_logging": true,
  101. "log_file_path": "logs/trixy.log",
  102. "max_log_file_size": 10485760,
  103. "log_file_backup_count": 5,
  104. "enable_console_logging": true,
  105. "console_log_level": "info",
  106. "enable_event_logging": true,
  107. "event_log_file": "logs/events.log",
  108. "enable_performance_logging": false,
  109. "performance_log_file": "logs/performance.log",
  110. "debug_mode": false,
  111. "verbose_errors": false,
  112. "log_stack_traces": false
  113. },
  114. "registration_mode_timeout": 60,
  115. "max_satellites": 50,
  116. "satellite_heartbeat_timeout": 60,
  117. "enable_web_interface": false,
  118. "web_interface_port": 8080,
  119. "asset_profile": "default",
  120. "asset_cache_size": 100,
  121. "conversation_timeout": 300,
  122. "max_concurrent_conversations": 10
  123. }