Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Twirre <s.a.meulenbelt@students.uu.nl>
This commit is contained in:
Pim Hutting
2025-11-19 11:48:11 +00:00
parent d60df2174c
commit 7120a7a8aa

View File

@@ -28,7 +28,7 @@ class TranscriptionAgent(BaseAgent):
class Transcribing(CyclicBehaviour):
def __init__(self, audio_in_socket: azmq.Socket):
super().__init__()
max_concurrent_tasks = settings.transcription_settings.max_concurrent_transcriptions
max_concurrent_tasks = settings.behaviour_settings.transcription_max_concurrent_tasks
self.audio_in_socket = audio_in_socket
self.speech_recognizer = SpeechRecognizer.best_type()
self._concurrency = asyncio.Semaphore(max_concurrent_tasks)