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
Method
Params
src/whispercpp/context.h:164
Method
SamplingBeamSearch
NOTE: upstream not implemented, ref: https://arxiv.org/pdf/2204.05424.pdf
src/whispercpp/context.h:62
Method
SamplingGreedy
ref: https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/transcribe.py#L264
src/whispercpp/context.h:43
Method
SamplingStrategies
src/whispercpp/context.h:86
Method
WavFileWrapper
src/whispercpp/api_cpp2py_export.h:70
Method
__dir__
Return all module attributes. Lazy load the module on first access.
src/whispercpp/utils.py:147
Method
__getattr__
Lazy load the module on first access.
src/whispercpp/utils.py:141
Method
__init__
Create a lazy loaded module. Args: local_name (str): The name of the module in the parent's globals. parent_module_gl
src/whispercpp/utils.py:87
Method
__init__
Empty init method. This will raise a ``RuntimeError``.
src/whispercpp/__init__.py:63
Method
__init__
(self)
examples/bentoml/service.py:24
Method
_store_transcript_handler
(self, ctx: api.Context, n_new: int, data: list[str])
src/whispercpp/__init__.py:255
Function
available_audio_devices
Returns a list of available audio devices on the system.
src/whispercpp/utils.py:155
Method
beg_token
src/whispercpp/context.h:545
Method
build
src/whispercpp/context.h:36
Method
build
src/whispercpp/context.h:89
Function
download_model
Download a preconverted model from a given model name. Currently it doesn't support custom preconverted models yet. PRs are welcome. Args:
src/whispercpp/utils.py:48
Method
encode
Run the Whisper encoder on the log mel spectrogram stored inside the provided whisper context. Make sure to call whisper_pcm_to_mel() or whisper_set_m
src/whispercpp/context.cc:161
Method
eot_token
Some special tokens
src/whispercpp/context.h:540
Function
fixture_audio_file
()
tests/context_export_test.py:25
Function
fixture_params
()
tests/context_export_test.py:18
Method
from_sampling_strategy
src/whispercpp/params.cc:19
Method
full_get_token_data
Get token data for the specified token in the specified segment. This contains probabilities, timestamps, etc.
src/whispercpp/context.cc:553
Method
full_get_token_prob
Get the probability of the specified token in the specified segment.
src/whispercpp/context.cc:563
Method
full_get_token_text
Get the token text of the specified token in the specified segment.
src/whispercpp/context.cc:524
Method
full_lang_id
Language id associated with the context's default state
src/whispercpp/context.cc:467
Method
get_logits
Token logits obtained from the last call to whisper_decode() The logits for the last token are stored in the last row Rows: n_tokens Cols: n_vocab
src/whispercpp/context.cc:320
Function
handleNewSegment
(context: w.api.Context, n_new: int, text: list[str])
tests/export_test.py:93
Method
has_ext_modules
(self)
setup.py:41
Method
is_init_with_state
src/whispercpp/context.h:470
Method
lang_detect
language functions. Returns a vector of probabilities for each language.
src/whispercpp/context.cc:257
Method
lang_id_to_str
Returns short string of specified language id, raise exception if nullptr is returned
src/whispercpp/context.cc:249
Method
lang_max_id
Returns largest language id
src/whispercpp/context.h:537
Method
lang_token
src/whispercpp/context.h:548
Function
make_unique
src/whispercpp/api_cpp2py_export.h:37
Method
n_len
Get mel spectrogram length
src/whispercpp/context.cc:298
Method
n_text_ctx
Get number of text context
src/whispercpp/context.cc:310
Function
new_segment_callback_handler
src/whispercpp/params.cc:37
Method
not_token
src/whispercpp/context.h:544
Method
pc_to_mel
Convert RAW PCM audio to log mel spectrogram. The resulting spectrogram is stored inside the provided whisper context. Returns 0 on success. This is t
src/whispercpp/context.cc:103
Method
prev_token
src/whispercpp/context.h:542
Function
pytest_configure
(config: Config)
tests/conftest.py:11
Method
run
(self)
setup.py:27
Method
set_encoder_begin_callback
Set the callback for starting the encoder. Do not use this function unless you know what you are doing. Defaults to None.
src/whispercpp/params.cc:125
Method
set_encoder_begin_callback_user_data
Set the user data to be passed to the encoder begin callback. Defaults to None. See set_encoder_begin_callback.
src/whispercpp/params.cc:132
Method
set_logits_filter_callback
Set the callback for each decoder to filter obtained logits. Do not use this function unless you know what you are doing. Defaults to None.
src/whispercpp/params.cc:139
Method
set_logits_filter_callback_user_data
Set the user data to be passed to the logits filter callback. Defaults to None. See set_logits_filter_callback.
src/whispercpp/params.cc:146
Method
set_mel
Low-level API for setting custom log mel spectrogram. The resulting spectrogram is stored inside the provided whisper context.
src/whispercpp/context.cc:136
Method
set_tokens
Set tokens to provide the model as initial input. These tokens are prepended to any existing text content from a previous call. Calling this more than
src/whispercpp/params.cc:109
Method
solm_token
src/whispercpp/context.h:543
Method
sot_token
src/whispercpp/context.h:541
Method
stream
(self)
examples/bentoml/service.py:40
Method
stream_transcribe
Streaming transcription from microphone. Note that this function is blocking. Args: length_ms (int, optional): Length of audio to
src/whispercpp/__init__.py:215
Method
sys_info
src/whispercpp/context.h:555
Function
test_available_audio_devices
()
tests/utils_test.py:29
Function
test_callback
()
tests/export_test.py:92
Function
test_forbid_init
()
tests/export_test.py:48
Function
test_from_buffer
( models: str, params: w.api.Params, audio_file: NDArray[np.float32] )
tests/context_export_test.py:60
Function
test_from_file_with_state
( models: str, params: w.api.Params, audio_file: NDArray[np.float32] )
tests/context_export_test.py:50
Function
test_from_params
()
tests/export_test.py:63
Function
test_from_pretrained
()
tests/export_test.py:57
Function
test_full_with_init_state_manually
( params: w.api.Params, audio_file: NDArray[np.float32] )
tests/context_export_test.py:39
Function
test_init_state_runtime_error
( params: w.api.Params, audio_file: NDArray[np.float32] )
tests/context_export_test.py:31
Function
test_invalid_load_module
()
tests/utils_test.py:14
Function
test_invalid_models
()
tests/export_test.py:39
Function
test_lazy_warning
(caplog: LogCaptureFixture)
tests/utils_test.py:20
Function
test_load_wav_file
()
tests/export_test.py:69
Function
test_main
()
examples/bindings/explore_test.py:11
Function
test_sampling_beam_search
()
tests/params_export_test.py:34
Function
test_sampling_greedy
()
tests/params_export_test.py:8
Function
test_sampling_on_setattr_warning
()
tests/params_export_test.py:81
Function
test_sampling_strategies_from_enum
()
tests/params_export_test.py:61
Function
test_sampling_strategy_build_copy
()
tests/params_export_test.py:76
Function
test_sampling_strategy_deprecation
()
tests/params_export_test.py:20
Function
test_sampling_strategy_from_strategy_type
()
tests/params_export_test.py:67
Function
test_set_language
()
tests/params_export_test.py:91
Function
test_transcribe_from_wav
()
tests/export_test.py:82
Method
to_enum
src/whispercpp/context.h:76
Method
to_enum
src/whispercpp/context.h:95
Method
token_transcribe
src/whispercpp/context.h:547
Method
token_translate
src/whispercpp/context.h:546
Method
tokenize
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:221
Method
transcribe_array
(self, arr: NDArray[np.float32])
examples/bentoml/service.py:29
Function
transcribe_file
(input_file: str)
examples/bentoml/service.py:53
Method
transcribe_file
(self, p: str)
examples/bentoml/service.py:33
Function
transcribe_ndarray
(arr: NDArray[np.float32])
examples/bentoml/service.py:58
Function
transcribe_strict
()
tests/export_test.py:76
Method
with_max_len
[EXPERIMENTAL] max segment length in characters defaults to 0 (no limit)
src/whispercpp/context.h:289
Method
~AudioCapture
src/whispercpp/audio.h:39
Method
~Context
src/whispercpp/context.h:460
Method
~SamplingType
src/whispercpp/context.h:33
← previous
101–190 of 190, ranked by callers