Skip to content

Commit 10bc609

Browse files
committed
chore: remove speedup
1 parent c610a88 commit 10bc609

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ usage: pwcpp [-h] [-m MODEL] [--version] [--processors PROCESSORS] [-otxt] [-ovt
180180
[--translate TRANSLATE] [--no_context NO_CONTEXT] [--single_segment SINGLE_SEGMENT] [--print_special PRINT_SPECIAL]
181181
[--print_progress PRINT_PROGRESS] [--print_realtime PRINT_REALTIME] [--print_timestamps PRINT_TIMESTAMPS]
182182
[--token_timestamps TOKEN_TIMESTAMPS] [--thold_pt THOLD_PT] [--thold_ptsum THOLD_PTSUM] [--max_len MAX_LEN]
183-
[--split_on_word SPLIT_ON_WORD] [--max_tokens MAX_TOKENS] [--speed_up SPEED_UP] [--audio_ctx AUDIO_CTX]
183+
[--split_on_word SPLIT_ON_WORD] [--max_tokens MAX_TOKENS] [--audio_ctx AUDIO_CTX]
184184
[--prompt_tokens PROMPT_TOKENS] [--prompt_n_tokens PROMPT_N_TOKENS] [--language LANGUAGE] [--suppress_blank SUPPRESS_BLANK]
185185
[--suppress_non_speech_tokens SUPPRESS_NON_SPEECH_TOKENS] [--temperature TEMPERATURE] [--max_initial_ts MAX_INITIAL_TS]
186186
[--length_penalty LENGTH_PENALTY] [--temperature_inc TEMPERATURE_INC] [--entropy_thold ENTROPY_THOLD]
@@ -234,7 +234,6 @@ options:
234234
split on word rather than on token (when used with max_len)
235235
--max_tokens MAX_TOKENS
236236
max tokens per segment (0 = no limit)
237-
--speed_up SPEED_UP speed-up the audio by 2x using Phase Vocoder
238237
--audio_ctx AUDIO_CTX
239238
overwrite the audio context size (0 = use default)
240239
--prompt_tokens PROMPT_TOKENS

pywhispercpp/constants.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,6 @@
154154
'options': None,
155155
'default': 0
156156
},
157-
# [EXPERIMENTAL] speed-up techniques
158-
# note: these can significantly reduce the quality of the output
159-
'speed_up': {
160-
'type': bool,
161-
'description': "speed-up the audio by 2x using Phase Vocoder",
162-
'options': None,
163-
'default': False
164-
},
165157
'audio_ctx': {
166158
'type': int,
167159
'description': "overwrite the audio context size (0 = use default)",

pywhispercpp/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Model:
5252
Example usage.
5353
```python
5454
model = Model('base.en', n_threads=6)
55-
segments = model.transcribe('file.mp3', speed_up=True)
55+
segments = model.transcribe('file.mp3')
5656
for segment in segments:
5757
print(segment.text)
5858
```

src/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ PYBIND11_MODULE(_pywhispercpp, m) {
490490
.def_readwrite("max_len", &whisper_full_params::max_len)
491491
.def_readwrite("split_on_word", &whisper_full_params::split_on_word)
492492
.def_readwrite("max_tokens", &whisper_full_params::max_tokens)
493-
.def_readwrite("speed_up", &whisper_full_params::speed_up)
494493
.def_readwrite("audio_ctx", &whisper_full_params::audio_ctx)
495494
.def_readwrite("initial_prompt", &whisper_full_params::initial_prompt)
496495
.def_readwrite("prompt_tokens", &whisper_full_params::prompt_tokens)

0 commit comments

Comments
 (0)