alphacep / alphacep/vosk-api

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

オープン
#2,025 コメント 0 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。