mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-03-01 04:06:07 +00:00
Update stt.py
This commit is contained in:
parent
b323b3b64b
commit
70f91d5168
@ -38,7 +38,8 @@ class LollmsSTT:
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
self,
|
||||
name:str,
|
||||
app: LollmsApplication,
|
||||
model="",
|
||||
output_path=None,
|
||||
@ -52,6 +53,7 @@ class LollmsSTT:
|
||||
model (str, optional): The STT model to be used for transcription. Defaults to an empty string.
|
||||
output_path (Path or str, optional): Path where the output transcription files will be saved. Defaults to None.
|
||||
"""
|
||||
self.name = name
|
||||
self.ready = False
|
||||
self.app = app
|
||||
self.output_path = output_path
|
||||
@ -129,4 +131,4 @@ class LollmsSTT:
|
||||
"status": True,
|
||||
"device_names": [device['name'] for device in devices if device["max_input_channels"]>0],
|
||||
"device_indexes": [device['index'] for device in devices if device["max_input_channels"]>0]
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user