Offline Whisper model configuration.
More...
#include <cxx-api.h>
Definition at line 447 of file cxx-api.h.
◆ decoder
| std::string sherpa_onnx::cxx::OfflineWhisperModelConfig::decoder |
Decoder ONNX model.
Definition at line 451 of file cxx-api.h.
◆ enable_segment_timestamps
| bool sherpa_onnx::cxx::OfflineWhisperModelConfig::enable_segment_timestamps = false |
Enable segment timestamps in the result JSON.
Definition at line 461 of file cxx-api.h.
◆ enable_token_timestamps
| bool sherpa_onnx::cxx::OfflineWhisperModelConfig::enable_token_timestamps = false |
Enable token timestamps in the result.
Definition at line 459 of file cxx-api.h.
◆ encoder
| std::string sherpa_onnx::cxx::OfflineWhisperModelConfig::encoder |
Encoder ONNX model.
Definition at line 449 of file cxx-api.h.
◆ language
| std::string sherpa_onnx::cxx::OfflineWhisperModelConfig::language |
Whisper language string such as "en" or "zh".
Definition at line 453 of file cxx-api.h.
◆ tail_paddings
| int32_t sherpa_onnx::cxx::OfflineWhisperModelConfig::tail_paddings = -1 |
Optional tail paddings in samples.
Definition at line 457 of file cxx-api.h.
◆ task
| std::string sherpa_onnx::cxx::OfflineWhisperModelConfig::task = "transcribe" |
Task such as "transcribe" or "translate".
Definition at line 455 of file cxx-api.h.
The documentation for this struct was generated from the following file: