This commit is contained in:
Fangjun Kuang
2023-12-01 11:00:16 +08:00
committed by GitHub
parent 62dc3c3e46
commit 539b27e575

View File

@@ -168,6 +168,7 @@ class OfflineTtsVitsImpl : public OfflineTtsImpl {
}
private:
#if __ANDROID_API__ >= 9
void InitFrontend(AAssetManager *mgr) {
if (model_->IsPiper() && !config_.model.vits.data_dir.empty()) {
frontend_ = std::make_unique<PiperPhonemizeLexicon>(
@@ -179,6 +180,7 @@ class OfflineTtsVitsImpl : public OfflineTtsImpl {
model_->IsPiper());
}
}
#endif
void InitFrontend() {
if (model_->IsPiper() && !config_.model.vits.data_dir.empty()) {