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 448 of file cxx-api.h.

Member Data Documentation

◆ decoder

std::string sherpa_onnx::cxx::OfflineWhisperModelConfig::decoder

Decoder ONNX model.

Definition at line 452 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 462 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 460 of file cxx-api.h.

◆ encoder

std::string sherpa_onnx::cxx::OfflineWhisperModelConfig::encoder

Encoder ONNX model.

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

◆ language

std::string sherpa_onnx::cxx::OfflineWhisperModelConfig::language

Whisper language string such as "en" or "zh".

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

◆ tail_paddings

int32_t sherpa_onnx::cxx::OfflineWhisperModelConfig::tail_paddings = -1

Optional tail paddings in samples.

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

◆ task

std::string sherpa_onnx::cxx::OfflineWhisperModelConfig::task = "transcribe"

Task such as "transcribe" or "translate".

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


The documentation for this struct was generated from the following file: