Skip to content

Commit 2e162bb

Browse files
committed
23
1 parent ab88280 commit 2e162bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/sherpa-rs/src/sense_voice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl SenseVoiceRecognizer {
100100
let hotwords_file_cstr = config.hotwords_file.map(|f| cstring_from_str(&f));
101101
// Recognizer config
102102
let config = sherpa_rs_sys::SherpaOnnxOfflineRecognizerConfig {
103-
decoding_method: "greedy_search",
103+
decoding_method: cstring_from_str("greedy_search"),
104104
feat_config: sherpa_rs_sys::SherpaOnnxFeatureConfig {
105105
sample_rate: 16000,
106106
feature_dim: 80,

0 commit comments

Comments
 (0)