Skip to content

Commit

Permalink
Bump up version to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-plus committed Jul 12, 2023
1 parent f2d3a91 commit f07c48a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ lrcer.run('./data/test.mp3', target_lang='zh-cn', context_path='./data/context.y
# To skip translation process
lrcer.run('./data/test.mp3', target_lang='en', skip_trans=True)
# Change asr_options or vad_options, check openlrc.defaults for details
vad_options = {"threshold": 0.1}
lrcer = LRCer(vad_options=vad_options)
lrcer.run('./data/test.mp3', target_lang='zh-cn')
```

### Context
Expand All @@ -87,11 +92,6 @@ description_map: {
}
```

## Known issue

- Process crash after the `LRCer` get GC-ed in Windows. (from https://github.com/guillaumekln/faster-whisper/issues/71).
No workaround now.

## Todo

- [x] [Efficiency] Batched translate/polish for GPT request (enable contextual ability).
Expand Down
2 changes: 2 additions & 0 deletions openlrc/defaults.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (C) 2023. Hao Zheng
# All rights reserved.

# Check https://github.com/guillaumekln/faster-whisper/blob/3b4a6aa1c22d293ddde9f08bdd31fc842086a6ea/faster_whisper/transcribe.py#L153 for details
default_asr_options = {
"beam_size": 3,
"best_of": 5,
Expand All @@ -26,6 +27,7 @@
"append_punctuations": "\"'.。,,!!??::”)]}、",
}

# Check https://github.com/guillaumekln/faster-whisper/blob/3b4a6aa1c22d293ddde9f08bdd31fc842086a6ea/faster_whisper/vad.py#L14 for details
default_vad_options = {
"threshold": 0.382,
"min_speech_duration_ms": 250,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ in-project = true

[tool.poetry]
name = "openlrc"
version = "0.1.5"
version = "0.2.0"
description = "Transcribe (whisper) and translate (gpt) voice into LRC file."
license = "MIT"
authors = [
Expand Down

0 comments on commit f07c48a

Please sign in to comment.