Pythonic API design
未關閉
- 主要語言
- Jupyter Notebook
- 星號
- 15.1k
- 分支
- 1.8k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
@nshmyrev this is my idea of "pythonic" api.
```
import vosk
# print available models
print(vosk.list_models())
# auto downloads the model if not found in local
asr = vosk.load("en-us")
# word_list is optional
# if stream=True, will return iterator for partial results
# if stream=False will return final result
# default stream = False
result = asr.recognize('wav_file_path', word_list, stream=True)
```
let me know if this is ok or any changes required.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。