refactor: remove constants and put in config file #24
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user