From 1b58549c2ab3580a35217a55750943dbdd1336c4 Mon Sep 17 00:00:00 2001 From: Twirre Meulenbelt <43213592+TwirreM@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:41:48 +0100 Subject: [PATCH] test: fix expected test value after changing audio token allowance ref: N25B-209 --- test/unit/agents/transcription/test_speech_recognizer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/agents/transcription/test_speech_recognizer.py b/test/unit/agents/transcription/test_speech_recognizer.py index 88a5ac2..ab28dcf 100644 --- a/test/unit/agents/transcription/test_speech_recognizer.py +++ b/test/unit/agents/transcription/test_speech_recognizer.py @@ -5,12 +5,13 @@ from control_backend.agents.transcription.speech_recognizer import OpenAIWhisper def test_estimate_max_tokens(): - """Inputting one minute of audio, assuming 300 words per minute, expecting 400 tokens.""" + """Inputting one minute of audio, assuming 450 words per minute and adding a 10 token padding, + expecting 610 tokens.""" audio = np.empty(shape=(60 * 16_000), dtype=np.float32) actual = SpeechRecognizer._estimate_max_tokens(audio) - assert actual == 400 + assert actual == 610 assert isinstance(actual, int)