Skip to content

Commit 755c812

Browse files
committed
update:修改vosk
1 parent 257e365 commit 755c812

File tree

1 file changed

+2
-2
lines changed
  • main/xiaozhi-server/core/providers/asr

1 file changed

+2
-2
lines changed

main/xiaozhi-server/core/providers/asr/vosk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
class ASRProvider(ASRProviderBase):
1414
def __init__(self, config: dict, delete_audio_file: bool = True):
1515
super().__init__()
16-
self.interface_type = InterfaceType.NON_STREAM
17-
self.model_path = config.get("model_path", "models/vosk/vosk-model-small-cn-0.22")
16+
self.interface_type = InterfaceType.LOCAL
17+
self.model_path = config.get("model_path")
1818
self.output_dir = config.get("output_dir", "tmp/")
1919
self.delete_audio_file = delete_audio_file
2020

0 commit comments

Comments
 (0)