Prepare CPU Parakeet Redux and interchangeable STT endpoint
This commit is contained in:
1 parent
d28dce4476
commit
81cc316ebe
15 files changed
+349
-14
No files matched your search
@@ -147,6 +147,16 @@ class Server(ThreadingHTTPServer):
|
||||
self.tts_tests.acquire=self.scheduler.tts_reservation
|
||||
self.scheduler.evict_tts=self.tts_tests.unload_idle
|
||||
self.stt=STT(self.profiles,self.catalog,self.runtime)
|
||||
self.profiles.stt_blockers=self.stt.blockers
|
||||
if self.stt.parakeet.status()['installed']:
|
||||
marker=self.stt.parakeet.root/'profile-created'
|
||||
if not marker.exists():
|
||||
from parakeet_runtime import supported as redux_supported
|
||||
from profiles import SCHEMAS
|
||||
model_id=self.stt.parakeet.register(self.catalog)
|
||||
if not any(p['kind']=='stt' and redux_supported(p.get('model')) for p in self.profiles.status()['profiles']):
|
||||
self.profiles.save(dict(id=None,revision=0,name='Parakeet Redux CPU',kind='stt',model_id=model_id,parameters={k:v[2] for k,v in SCHEMAS['stt'].items()}))
|
||||
marker.write_text('Redux STT profile registered\n')
|
||||
self.voxcpm_tests.reference_transcriber=self.stt.transcribe_reference
|
||||
self.profiles.stt_blockers=self.stt.blockers
|
||||
self.endpoint=Endpoint(self.catalog.root.parent,self.profiles,self.worker,self.scheduler,self.image_tests,self.credentials,self.server_port)
|
||||
@@ -426,7 +436,7 @@ class Handler(BaseHTTPRequestHandler):
|
||||
else self.server.video.runtime)
|
||||
return {'embeddings':chat,'stt':chat,'chat':chat,
|
||||
'image':self.server.image_runtime.status().get('installed',False),
|
||||
'audio':self.server.tts_runtime.status().get('installed',False),
|
||||
'audio':self.server.tts_runtime.status().get('installed',False),'parakeet':self.server.stt.parakeet.status()['installed'],
|
||||
'video':video_runtime.status().get('installed',False),
|
||||
'acestep':self.server.acestep_runtime.status()['installed'],
|
||||
'audio_cpp':self.server.audio_cpp_runtime.status()['installed'],
|
||||
|
||||
Reference in new issue
Block a user