feat: ajout APIs détection et configuration cartes son (Phase 2.5)
- GET /admin/audio/devices : énumération devices CoreAudio - GET /admin/audio/device : récupération config actuelle - POST /admin/audio/device : sélection carte son + sample rate - Workaround naudiodon segfault avec devices fictifs - Configuration sauvegardée dans config.yaml
This commit is contained in:
+17
-25
@@ -1,50 +1,42 @@
|
||||
# PTT Live - Configuration
|
||||
# Format simplifié : nom du groupe + canaux (les IDs sont générés automatiquement)
|
||||
|
||||
# Configuration audio globale
|
||||
audio:
|
||||
sampleRate: 48000
|
||||
frameSize: 20 # ms
|
||||
defaultBitrate: 96 # kbps
|
||||
frameSize: 20
|
||||
defaultBitrate: 96
|
||||
jitterBufferMs: 40
|
||||
|
||||
# Configuration des groupes
|
||||
device:
|
||||
inputDeviceId: 0
|
||||
outputDeviceId: 2
|
||||
sampleRate: 48000
|
||||
groups:
|
||||
- name: "Production"
|
||||
- name: Production
|
||||
audioBitrate: 96
|
||||
channels:
|
||||
- name: "Principal"
|
||||
- name: Principal
|
||||
audioInput: 0
|
||||
audioOutput: 0
|
||||
- name: "Backup"
|
||||
- name: Backup
|
||||
audioInput: 1
|
||||
audioOutput: 1
|
||||
|
||||
- name: "Technique"
|
||||
- name: Technique
|
||||
channels:
|
||||
- name: "Général"
|
||||
- name: Général
|
||||
audioInput: 2
|
||||
audioOutput: 2
|
||||
|
||||
- name: "Sonorisation"
|
||||
- name: Sonorisation
|
||||
audioBitrate: 128
|
||||
channels:
|
||||
- name: "Principal"
|
||||
- name: Principal
|
||||
audioInput: 3
|
||||
audioOutput: 3
|
||||
- name: "Retours"
|
||||
- name: Retours
|
||||
audioInput: 4
|
||||
audioOutput: 4
|
||||
|
||||
# Configuration serveur
|
||||
server:
|
||||
host: "0.0.0.0"
|
||||
host: 0.0.0.0
|
||||
port: 3000
|
||||
livekit:
|
||||
url: "ws://localhost:7880"
|
||||
|
||||
# Logging
|
||||
url: ws://localhost:7880
|
||||
logging:
|
||||
level: "debug"
|
||||
level: debug
|
||||
logLatency: true
|
||||
logAudioStats: true
|
||||
|
||||
Reference in New Issue
Block a user