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

Offline FunASR Nano model configuration. More...

#include <cxx-api.h>

+ Collaboration diagram for sherpa_onnx::cxx::OfflineFunASRNanoModelConfig:

Public Attributes

std::string encoder_adaptor
 
std::string llm
 
std::string embedding
 
std::string tokenizer
 
std::string system_prompt = "You are a helpful assistant."
 
std::string user_prompt = "语音转写:"
 
int32_t max_new_tokens = 512
 
float temperature = 1e-6f
 
float top_p = 0.8f
 
int32_t seed = 42
 
std::string language
 
bool itn = true
 
std::string hotwords
 

Detailed Description

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

Member Data Documentation

◆ embedding

std::string sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::embedding

Embedding model file.

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

◆ encoder_adaptor

std::string sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::encoder_adaptor

Encoder adaptor model file.

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

◆ hotwords

std::string sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::hotwords

Optional hotwords string.

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

◆ itn

bool sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::itn = true

Enable inverse text normalization.

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

◆ language

std::string sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::language

Language hint.

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

◆ llm

std::string sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::llm

LLM model file.

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

◆ max_new_tokens

int32_t sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::max_new_tokens = 512

Maximum number of generated tokens.

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

◆ seed

int32_t sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::seed = 42

Random seed.

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

◆ system_prompt

std::string sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::system_prompt = "You are a helpful assistant."

System prompt passed to the model.

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

◆ temperature

float sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::temperature = 1e-6f

Sampling temperature.

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

◆ tokenizer

std::string sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::tokenizer

Tokenizer file.

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

◆ top_p

float sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::top_p = 0.8f

Top-p sampling parameter.

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

◆ user_prompt

std::string sherpa_onnx::cxx::OfflineFunASRNanoModelConfig::user_prompt = "语音转写:"

User prompt prefix passed to the model.

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


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