mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 09:03:54 +08:00
update:修改vosk
This commit is contained in:
@@ -13,8 +13,8 @@ logger = setup_logging()
|
|||||||
class ASRProvider(ASRProviderBase):
|
class ASRProvider(ASRProviderBase):
|
||||||
def __init__(self, config: dict, delete_audio_file: bool = True):
|
def __init__(self, config: dict, delete_audio_file: bool = True):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.interface_type = InterfaceType.NON_STREAM
|
self.interface_type = InterfaceType.LOCAL
|
||||||
self.model_path = config.get("model_path", "models/vosk/vosk-model-small-cn-0.22")
|
self.model_path = config.get("model_path")
|
||||||
self.output_dir = config.get("output_dir", "tmp/")
|
self.output_dir = config.get("output_dir", "tmp/")
|
||||||
self.delete_audio_file = delete_audio_file
|
self.delete_audio_file = delete_audio_file
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user