mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
update:修改vosk
This commit is contained in:
parent
257e365299
commit
755c81286c
1 changed files with 2 additions and 2 deletions
|
|
@ -13,8 +13,8 @@ logger = setup_logging()
|
|||
class ASRProvider(ASRProviderBase):
|
||||
def __init__(self, config: dict, delete_audio_file: bool = True):
|
||||
super().__init__()
|
||||
self.interface_type = InterfaceType.NON_STREAM
|
||||
self.model_path = config.get("model_path", "models/vosk/vosk-model-small-cn-0.22")
|
||||
self.interface_type = InterfaceType.LOCAL
|
||||
self.model_path = config.get("model_path")
|
||||
self.output_dir = config.get("output_dir", "tmp/")
|
||||
self.delete_audio_file = delete_audio_file
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue