alphacep / alphacep/vosk-api

PyPI package for VOSK is out of date and lacks fix for JSON output format

未關閉
#2,025 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
15.1k
分支
1.8k
PR 合併指標
30 天內沒有已合併 PR

描述

Hey everyone,

The current version of VOSK on PyPI (0.3.45, Dec 14 2022) does not match the current release (0.3.50). Due to this, the fix made in 322a57b (Nov 27, 2023) is not present.

This causes VOSK to crash when attempting to output a JSON document as we attempt to append to `monologue["text"]` when we should be appending to `monologues["text"]`.

**Workaround**:
Edit `transcriber.py` manually and add the missing `s`:
```python
# Line 100 ⬇️
for part in result:
if part["text"] != "":
# change to "monologues["text"] += [part["text"]]" here!
monologue["text"] += part["text"]
```

This is my first time poking around here but this project seems super cool and I'm looking forward to playing with it!
_Edit: fix fixed line, I forgot the brackets_

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。