Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aarnphm/whispercpp
/ functions
Functions
190 in github.com/aarnphm/whispercpp
⨍
Functions
190
◇
Types & classes
21
↳
Endpoints
2
↓ 51 callers
Method
get
src/whispercpp/audio.cc:188
↓ 14 callers
Method
build
src/whispercpp/context.h:180
↓ 10 callers
Method
from_pretrained
Load a preconverted model from a given model name. Currently it doesn't support custom preconverted models yet. PRs are welcome. Arg
src/whispercpp/__init__.py:81
↓ 9 callers
Method
from_enum
src/whispercpp/params.cc:7
↓ 8 callers
Method
full_n_segments
Number of generated text segments A segment can be a few words, a sentence, or even a paragraph.
src/whispercpp/context.cc:457
↓ 7 callers
Method
full
Run the entire model: PCM -> log mel spectrogram -> encoder -> decoder -> text Uses the specified decoding strategy to obtain the text. This is usual
src/whispercpp/context.cc:365
↓ 7 callers
Method
to_enum
src/whispercpp/context.h:51
↓ 5 callers
Method
from_file
src/whispercpp/context.cc:59
↓ 5 callers
Method
full_get_segment_text
Get the text of the specified segment.
src/whispercpp/context.cc:498
↓ 5 callers
Method
set_context
setters functions
src/whispercpp/context.h:463
↓ 4 callers
Method
clear
src/whispercpp/audio.cc:132
↓ 4 callers
Method
load_wav_file
src/whispercpp/api_cpp2py_export.cc:3
↓ 4 callers
Function
preprocess
(file: Path, sample_rate: int = 16000)
tests/export_test.py:24
↓ 4 callers
Method
set_strategy
src/whispercpp/context.h:91
↓ 4 callers
Method
transcribe
Transcribe audio from a given numpy array. Args: data (np.ndarray): Audio data as a numpy array. num_proc (int, optio
src/whispercpp/__init__.py:158
↓ 4 callers
Method
with_print_progress
Whether to print progress information Defaults to false
src/whispercpp/context.h:242
↓ 4 callers
Method
with_print_realtime
Print results from within whisper.cpp. Try to use the callback methods instead: [set_new_segment_callback](FullParams::set_new_segment_callback), [set
src/whispercpp/context.h:252
↓ 3 callers
Method
stream_transcribe
src/whispercpp/audio.cc:275
↓ 3 callers
Method
transcribe_from_file
Transcribe audio from a given file. This function uses a simple C++ implementation for loading audio file. Currently only WAV files are suppo
src/whispercpp/__init__.py:192
↓ 3 callers
Method
with_beam_size
src/whispercpp/context.h:67
↓ 3 callers
Method
with_language
Set target language. For auto-detection, set this either to 'auto' or nullptr. defaults to 'en'.
src/whispercpp/context.h:341
↓ 3 callers
Method
with_patience
src/whispercpp/context.h:71
↓ 2 callers
Method
_load
Load the module and insert it into the parent's globals.
src/whispercpp/utils.py:118
↓ 2 callers
Function
compile_ext
()
setup.py:17
↓ 2 callers
Method
copy_for_full
src/whispercpp/params.cc:96
↓ 2 callers
Method
from_params
Load a preconverted model from a given model name and params. Currently it doesn't support custom preconverted models yet. PRs are welcome.
src/whispercpp/__init__.py:121
↓ 2 callers
Method
init_state
src/whispercpp/context.cc:54
↓ 2 callers
Method
n_audio_ctx
Get number of audio context
src/whispercpp/context.cc:312
↓ 2 callers
Method
reset_timings
src/whispercpp/context.h:554
↓ 2 callers
Method
run
(self)
setup.py:34
↓ 2 callers
Method
set_init_with_state
check if whether context is set with state
src/whispercpp/context.h:467
↓ 2 callers
Method
set_state
src/whispercpp/context.h:464
↓ 2 callers
Function
to_timestamp
500 -> 00:05.000 6000 -> 01:00.000
src/whispercpp/audio.cc:256
↓ 2 callers
Method
with_audio_ctx
[EXPERIMENTAL] Speed-up techniques (can reduce the quality of output) Overwrite the audio context size. Default to 0 to use the default value
src/whispercpp/context.h:318
↓ 2 callers
Method
with_best_of
src/whispercpp/context.h:46
↓ 2 callers
Method
with_duration_ms
Set audio duration in milliseconds to decode. defaults to 0 (decode until end of audio)
src/whispercpp/context.h:207
↓ 2 callers
Method
with_max_tokens
[EXPERIMENTAL] Set the maximum tokens per segment. Default to 0 (no limit).
src/whispercpp/context.h:303
↓ 2 callers
Method
with_n_threads
Set the number of threads to use for decoding. Defaults to min(4, std::thread::hardware_concurrency()).
src/whispercpp/context.h:186
↓ 2 callers
Method
with_print_special
Whether to print special tokens (<SOT>, <EOT>, <BEG>) Defaults to false
src/whispercpp/context.h:235
↓ 2 callers
Method
with_print_timestamps
Whether to print timestamps for each text segment when printing realtime Only has an effect if [set_print_realtime](FullParams::set_print_realtime) is
src/whispercpp/context.h:261
↓ 2 callers
Method
with_single_segment
Force single segment output. This may be useful for streaming. Defaults to false
src/whispercpp/context.h:228
↓ 2 callers
Method
with_speed_up
[EXPERIMENTAL] Speed-up techniques (can reduce the quality of output) Speed-up the audio by 2x using Phase Vocoder defaults to false
src/whispercpp/context.h:311
↓ 2 callers
Method
with_temperature_inc
Set temperatur increase. See https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/transcribe.py#L274-L278 Defaults
src/whispercpp/context.h:393
↓ 2 callers
Method
with_translate
Whether to translate to output to language specified under `language` parameter. Defaults to false.
src/whispercpp/context.h:214
↓ 1 callers
Method
AudioCapture
src/whispercpp/audio.h:34
↓ 1 callers
Function
ExportAudioApi
src/whispercpp/audio.cc:568
↓ 1 callers
Function
ExportContextApi
src/whispercpp/context.cc:572
↓ 1 callers
Function
ExportParamsApi
src/whispercpp/params.cc:362
↓ 1 callers
Function
ExportSamplingStrategiesApi
src/whispercpp/params.cc:219
↓ 1 callers
Function
as_pyarray
src/whispercpp/api_cpp2py_export.h:53
↓ 1 callers
Method
callback
src/whispercpp/audio.cc:154
↓ 1 callers
Method
decode
Run the Whisper decoder to obtain the logits and probabilities for the next token. Make sure to call whisper_encode() first. tokens + n_tokens is the
src/whispercpp/context.cc:189
↓ 1 callers
Method
free
src/whispercpp/context.cc:92
↓ 1 callers
Method
free_state
src/whispercpp/context.cc:87
↓ 1 callers
Method
from_buffer
src/whispercpp/context.cc:73
↓ 1 callers
Method
full_get_segment_t0
Get the start time of the specified segment.
src/whispercpp/context.cc:478
↓ 1 callers
Method
full_get_segment_t1
Get the end time of the specified segment.
src/whispercpp/context.cc:488
↓ 1 callers
Method
full_get_token_id
Get the token text of the specified token in the specified segment
src/whispercpp/context.cc:542
↓ 1 callers
Method
full_n_tokens
Get numbers of tokens in specified segments.
src/whispercpp/context.cc:514
↓ 1 callers
Method
full_parallel
Split the input audio in chunks and process each chunk separately using whisper_full_with_state() Result is stored in the default state of the contex
src/whispercpp/context.cc:416
↓ 1 callers
Method
get
src/whispercpp/context.h:178
↓ 1 callers
Function
get_model
()
examples/bindings/explore.py:19
↓ 1 callers
Method
init_device
src/whispercpp/audio.cc:32
↓ 1 callers
Method
is_multilingual
check if the model is multilingual
src/whispercpp/context.cc:314
↓ 1 callers
Method
lang_str_to_id
Returns id of a given language, raise exception if not found
src/whispercpp/context.cc:238
↓ 1 callers
Method
list_available_devices
src/whispercpp/audio.cc:14
↓ 1 callers
Function
main
CLI entrypoint for demonstrating how to use the API binding directly.
examples/bindings/explore.py:26
↓ 1 callers
Function
main
(**kwargs: t.Any)
examples/stream/stream.py:10
↓ 1 callers
Method
n_vocab
Get number of vocab
src/whispercpp/context.cc:308
↓ 1 callers
Method
pause
src/whispercpp/audio.cc:116
↓ 1 callers
Method
print_timings
perf inform and sys info
src/whispercpp/context.h:553
↓ 1 callers
Method
resume
src/whispercpp/audio.cc:100
↓ 1 callers
Function
sdl_poll_events
src/whispercpp/audio.cc:554
↓ 1 callers
Method
set_new_segment_callback
called for every newly generated text segments Do not use this function unless you know what you are doing. Defaults to None.
src/whispercpp/params.cc:117
↓ 1 callers
Method
to_string
src/whispercpp/params.cc:159
↓ 1 callers
Method
token_to_str
Convert token id to string. Use the vocabulary in provided context
src/whispercpp/context.cc:352
↓ 1 callers
Method
transcribe
(self)
examples/bentoml/locustfile.py:10
↓ 1 callers
Function
update_submodules
(directory: str)
setup.py:11
↓ 1 callers
Method
with_entropy_thold
Set entropy threshold, similar to OpenAI's compression ratio threshold. See https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519
src/whispercpp/context.h:403
↓ 1 callers
Method
with_length_penalty
Set length penalty. See https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/transcribe.py#L267 for more informatio
src/whispercpp/context.h:385
↓ 1 callers
Method
with_logprob_thold
Set logprob_thold. See https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/transcribe.py#L274-L278 for more inform
src/whispercpp/context.h:412
↓ 1 callers
Method
with_max_initial_ts
Set max intial timestamps. See https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/decoding.py#L97 for more inform
src/whispercpp/context.h:376
↓ 1 callers
Method
with_n_max_text_ctx
Set max tokens from past text as prompt for decoder. defaults to 16384
src/whispercpp/context.h:193
↓ 1 callers
Method
with_no_context
Do not use past translation (if any) as initial prompt for the decoder. Defaults to false.
src/whispercpp/context.h:221
↓ 1 callers
Method
with_no_speech_thold
Set no_speech_thold. Currently (as of v1.2.0) not implemented. Defaults to 0.6.
src/whispercpp/context.h:419
↓ 1 callers
Method
with_offset_ms
Set offset in milliseconds to start decoding from. defaults to 0
src/whispercpp/context.h:200
↓ 1 callers
Method
with_prompt_n_tokens
src/whispercpp/context.h:333
↓ 1 callers
Method
with_prompt_tokens
src/whispercpp/context.h:329
↓ 1 callers
Method
with_split_on_word
[EXPERIMENTAL] split on word rather on token (in conjunction with max_len) defaults to false
src/whispercpp/context.h:296
↓ 1 callers
Method
with_suppress_blank
Set suppress_blank. See https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/decoding.py#L89 for more information.
src/whispercpp/context.h:351
↓ 1 callers
Method
with_suppress_non_speech_tokens
Set suppress none speech tokens. See https://github.com/openai/whisper/blob/7858aa9c08d98f75575035ecd6481f462d66ca27/whisper/tokenizer.py#L224-L253 fo
src/whispercpp/context.h:360
↓ 1 callers
Method
with_temperature
Set initial decoding temperature. Defaults to 1.0. See https://ai.stackexchange.com/a/32478
src/whispercpp/context.h:367
↓ 1 callers
Method
with_thold_pt
[EXPERIMENTAL] Set timestamp token probability threshold. Defaults to 0.01
src/whispercpp/context.h:275
↓ 1 callers
Method
with_thold_ptsum
[EXPERIMENTAL] Set timestamp token sum probability threshold. Defaults to 0.01
src/whispercpp/context.h:282
↓ 1 callers
Method
with_token_timestamps
[EXPERIMENTAL] token-level timestamps default to false
src/whispercpp/context.h:268
Method
CallbackAndContext
src/whispercpp/context.h:122
Method
Container
src/whispercpp/context.h:113
Function
PYBIND11_MODULE
src/whispercpp/audio.cc:9
Function
PYBIND11_MODULE
src/whispercpp/api_cpp2py_export.cc:17
Method
Params
src/whispercpp/params.cc:77
next →
1–100 of 190, ranked by callers