sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
sherpa_onnx::cxx::OfflineWhisperModelConfig Struct Reference

Offline Whisper model configuration. More...

#include <cxx-api.h>

+ Collaboration diagram for sherpa_onnx::cxx::OfflineWhisperModelConfig:

Public Attributes

std::string encoder
 
std::string decoder
 
std::string language
 
std::string task = "transcribe"
 
int32_t tail_paddings = -1
 
bool enable_token_timestamps = false
 
bool enable_segment_timestamps = false
 

Detailed Description

Definition at line 447 of file cxx-api.h.

Member Data Documentation

◆ 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: