Add Python API (#31)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// sherpa/csrc/online-transducer-model-config.h
|
||||
// sherpa-onnx/csrc/online-transducer-model-config.h
|
||||
//
|
||||
// Copyright (c) 2023 Xiaomi Corporation
|
||||
#ifndef SHERPA_ONNX_CSRC_ONLINE_TRANSDUCER_MODEL_CONFIG_H_
|
||||
@@ -15,6 +15,17 @@ struct OnlineTransducerModelConfig {
|
||||
int32_t num_threads;
|
||||
bool debug = false;
|
||||
|
||||
OnlineTransducerModelConfig() = default;
|
||||
OnlineTransducerModelConfig(const std::string &encoder_filename,
|
||||
const std::string &decoder_filename,
|
||||
const std::string &joiner_filename,
|
||||
int32_t num_threads, bool debug)
|
||||
: encoder_filename(encoder_filename),
|
||||
decoder_filename(decoder_filename),
|
||||
joiner_filename(joiner_filename),
|
||||
num_threads(num_threads),
|
||||
debug(debug) {}
|
||||
|
||||
std::string ToString() const;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user