feat: migra cliente web para áudio contínuo com VAD no backend
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user