MCPcopy Create free account

hub / github.com/aarnphm/whispercpp / functions

Functions190 in github.com/aarnphm/whispercpp

MethodParams
src/whispercpp/context.h:164
MethodSamplingBeamSearch
NOTE: upstream not implemented, ref: https://arxiv.org/pdf/2204.05424.pdf
src/whispercpp/context.h:62
MethodSamplingGreedy
ref: https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/transcribe.py#L264
src/whispercpp/context.h:43
MethodSamplingStrategies
src/whispercpp/context.h:86
MethodWavFileWrapper
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
Functionavailable_audio_devices
Returns a list of available audio devices on the system.
src/whispercpp/utils.py:155
Methodbeg_token
src/whispercpp/context.h:545
Methodbuild
src/whispercpp/context.h:36
Methodbuild
src/whispercpp/context.h:89
Functiondownload_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
Methodencode
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
Methodeot_token
Some special tokens
src/whispercpp/context.h:540
Functionfixture_audio_file
()
tests/context_export_test.py:25
Functionfixture_params
()
tests/context_export_test.py:18
Methodfrom_sampling_strategy
src/whispercpp/params.cc:19
Methodfull_get_token_data
Get token data for the specified token in the specified segment. This contains probabilities, timestamps, etc.
src/whispercpp/context.cc:553
Methodfull_get_token_prob
Get the probability of the specified token in the specified segment.
src/whispercpp/context.cc:563
Methodfull_get_token_text
Get the token text of the specified token in the specified segment.
src/whispercpp/context.cc:524
Methodfull_lang_id
Language id associated with the context's default state
src/whispercpp/context.cc:467
Methodget_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
FunctionhandleNewSegment
(context: w.api.Context, n_new: int, text: list[str])
tests/export_test.py:93
Methodhas_ext_modules
(self)
setup.py:41
Methodis_init_with_state
src/whispercpp/context.h:470
Methodlang_detect
language functions. Returns a vector of probabilities for each language.
src/whispercpp/context.cc:257
Methodlang_id_to_str
Returns short string of specified language id, raise exception if nullptr is returned
src/whispercpp/context.cc:249
Methodlang_max_id
Returns largest language id
src/whispercpp/context.h:537
Methodlang_token
src/whispercpp/context.h:548
Functionmake_unique
src/whispercpp/api_cpp2py_export.h:37
Methodn_len
Get mel spectrogram length
src/whispercpp/context.cc:298
Methodn_text_ctx
Get number of text context
src/whispercpp/context.cc:310
Functionnew_segment_callback_handler
src/whispercpp/params.cc:37
Methodnot_token
src/whispercpp/context.h:544
Methodpc_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
Methodprev_token
src/whispercpp/context.h:542
Functionpytest_configure
(config: Config)
tests/conftest.py:11
Methodrun
(self)
setup.py:27
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodset_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
Methodsolm_token
src/whispercpp/context.h:543
Methodsot_token
src/whispercpp/context.h:541
Methodstream
(self)
examples/bentoml/service.py:40
Methodstream_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
Methodsys_info
src/whispercpp/context.h:555
Functiontest_available_audio_devices
()
tests/utils_test.py:29
Functiontest_callback
()
tests/export_test.py:92
Functiontest_forbid_init
()
tests/export_test.py:48
Functiontest_from_buffer
( models: str, params: w.api.Params, audio_file: NDArray[np.float32] )
tests/context_export_test.py:60
Functiontest_from_file_with_state
( models: str, params: w.api.Params, audio_file: NDArray[np.float32] )
tests/context_export_test.py:50
Functiontest_from_params
()
tests/export_test.py:63
Functiontest_from_pretrained
()
tests/export_test.py:57
Functiontest_full_with_init_state_manually
( params: w.api.Params, audio_file: NDArray[np.float32] )
tests/context_export_test.py:39
Functiontest_init_state_runtime_error
( params: w.api.Params, audio_file: NDArray[np.float32] )
tests/context_export_test.py:31
Functiontest_invalid_load_module
()
tests/utils_test.py:14
Functiontest_invalid_models
()
tests/export_test.py:39
Functiontest_lazy_warning
(caplog: LogCaptureFixture)
tests/utils_test.py:20
Functiontest_load_wav_file
()
tests/export_test.py:69
Functiontest_main
()
examples/bindings/explore_test.py:11
Functiontest_sampling_beam_search
()
tests/params_export_test.py:34
Functiontest_sampling_greedy
()
tests/params_export_test.py:8
Functiontest_sampling_on_setattr_warning
()
tests/params_export_test.py:81
Functiontest_sampling_strategies_from_enum
()
tests/params_export_test.py:61
Functiontest_sampling_strategy_build_copy
()
tests/params_export_test.py:76
Functiontest_sampling_strategy_deprecation
()
tests/params_export_test.py:20
Functiontest_sampling_strategy_from_strategy_type
()
tests/params_export_test.py:67
Functiontest_set_language
()
tests/params_export_test.py:91
Functiontest_transcribe_from_wav
()
tests/export_test.py:82
Methodto_enum
src/whispercpp/context.h:76
Methodto_enum
src/whispercpp/context.h:95
Methodtoken_transcribe
src/whispercpp/context.h:547
Methodtoken_translate
src/whispercpp/context.h:546
Methodtokenize
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
Methodtranscribe_array
(self, arr: NDArray[np.float32])
examples/bentoml/service.py:29
Functiontranscribe_file
(input_file: str)
examples/bentoml/service.py:53
Methodtranscribe_file
(self, p: str)
examples/bentoml/service.py:33
Functiontranscribe_ndarray
(arr: NDArray[np.float32])
examples/bentoml/service.py:58
Functiontranscribe_strict
()
tests/export_test.py:76
Methodwith_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
← previous101–190 of 190, ranked by callers