refactor: remove constants and put in config file #24

Merged
8464960 merged 14 commits from refactor/config-file into dev 2025-11-19 16:31:52 +00:00
Showing only changes of commit 7120a7a8aa - Show all commits

View File

@@ -28,7 +28,7 @@ class TranscriptionAgent(BaseAgent):
class Transcribing(CyclicBehaviour): class Transcribing(CyclicBehaviour):
def __init__(self, audio_in_socket: azmq.Socket): def __init__(self, audio_in_socket: azmq.Socket):
super().__init__() 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.audio_in_socket = audio_in_socket
self.speech_recognizer = SpeechRecognizer.best_type() self.speech_recognizer = SpeechRecognizer.best_type()
self._concurrency = asyncio.Semaphore(max_concurrent_tasks) self._concurrency = asyncio.Semaphore(max_concurrent_tasks)