Fangjun Kuang
Committed by GitHub

Fix CI (#456)

@@ -168,6 +168,7 @@ class OfflineTtsVitsImpl : public OfflineTtsImpl { @@ -168,6 +168,7 @@ class OfflineTtsVitsImpl : public OfflineTtsImpl {
168 } 168 }
169 169
170 private: 170 private:
  171 +#if __ANDROID_API__ >= 9
171 void InitFrontend(AAssetManager *mgr) { 172 void InitFrontend(AAssetManager *mgr) {
172 if (model_->IsPiper() && !config_.model.vits.data_dir.empty()) { 173 if (model_->IsPiper() && !config_.model.vits.data_dir.empty()) {
173 frontend_ = std::make_unique<PiperPhonemizeLexicon>( 174 frontend_ = std::make_unique<PiperPhonemizeLexicon>(
@@ -179,6 +180,7 @@ class OfflineTtsVitsImpl : public OfflineTtsImpl { @@ -179,6 +180,7 @@ class OfflineTtsVitsImpl : public OfflineTtsImpl {
179 model_->IsPiper()); 180 model_->IsPiper());
180 } 181 }
181 } 182 }
  183 +#endif
182 184
183 void InitFrontend() { 185 void InitFrontend() {
184 if (model_->IsPiper() && !config_.model.vits.data_dir.empty()) { 186 if (model_->IsPiper() && !config_.model.vits.data_dir.empty()) {