Merge remote-tracking branch 'origin/dev' into feat/vad-agent

# Conflicts:
#	pyproject.toml
#	src/control_backend/main.py
#	uv.lock
This commit is contained in:
Twirre Meulenbelt
2025-10-28 10:44:03 +01:00
18 changed files with 271 additions and 95 deletions

View File

@@ -1,5 +1,5 @@
import os
from unittest.mock import MagicMock, AsyncMock
from unittest.mock import AsyncMock, MagicMock
import pytest
import soundfile as sf
@@ -17,7 +17,7 @@ def get_audio_chunks() -> list[bytes]:
chunks = []
with sf.SoundFile(file, 'r') as f:
with sf.SoundFile(file, "r") as f:
assert f.samplerate == 16000
assert f.channels == 1
assert f.subtype == "FLOAT"
@@ -54,4 +54,4 @@ async def test_real_audio(mocker):
audio_out_socket.send.assert_called()
for args in audio_out_socket.send.call_args_list:
assert isinstance(args[0][0], bytes)
assert len(args[0][0]) >= 512*4*3 # Should be at least 3 chunks of audio
assert len(args[0][0]) >= 512 * 4 * 3 # Should be at least 3 chunks of audio