Configuration for a non-streaming Whisper model.
More...
#include <c-api.h>
Definition at line 855 of file c-api.h.
◆ decoder
| const char* SherpaOnnxOfflineWhisperModelConfig::decoder |
Path to the decoder ONNX model.
Definition at line 859 of file c-api.h.
◆ enable_segment_timestamps
| int32_t SherpaOnnxOfflineWhisperModelConfig::enable_segment_timestamps |
Non-zero to enable Whisper segment-level timestamps.
Definition at line 871 of file c-api.h.
◆ enable_token_timestamps
| int32_t SherpaOnnxOfflineWhisperModelConfig::enable_token_timestamps |
Non-zero to enable token-level timestamps when supported by the model.
Definition at line 868 of file c-api.h.
◆ encoder
| const char* SherpaOnnxOfflineWhisperModelConfig::encoder |
Path to the encoder ONNX model.
Definition at line 857 of file c-api.h.
◆ language
| const char* SherpaOnnxOfflineWhisperModelConfig::language |
Optional language hint, for example "en" or "zh".
Definition at line 861 of file c-api.h.
◆ tail_paddings
| int32_t SherpaOnnxOfflineWhisperModelConfig::tail_paddings |
Number of tail padding frames appended internally.
Definition at line 865 of file c-api.h.
◆ task
| const char* SherpaOnnxOfflineWhisperModelConfig::task |
Optional Whisper task such as "transcribe" or "translate".
Definition at line 863 of file c-api.h.
The documentation for this struct was generated from the following file: