feat: migra cliente web para áudio contínuo com VAD no backend

This commit is contained in:
alex alves
2026-11-03 18:34:45 -03:00
parent bdd2f6f67d
commit 7cbe86ed39
14 changed files with 834 additions and 1574 deletions

View File

@@ -32,3 +32,13 @@ def test_web_client_audio_worklet():
assert response.status_code == 200
assert "registerProcessor" in response.text
assert "pcm-input" in response.text
def test_active_web_client_uses_continuous_server_detection():
response = client.get("/web/voice-session.js")
assert response.status_code == 200
assert 'turn_detection: "server"' in response.text
assert 'type: "audio.input"' in response.text
assert "VoiceActivityDetector" not in response.text
assert client.get("/web/vad.js").status_code == 404