error loading this model in kaldi

#2
by realmartinshkreli - opened

Traceback (most recent call last):
File "/usr/local/bin/uvicorn", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/uvicorn/main.py", line 418, in main
run(
File "/usr/local/lib/python3.8/dist-packages/uvicorn/main.py", line 587, in run
server.run()
File "/usr/local/lib/python3.8/dist-packages/uvicorn/server.py", line 62, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/dist-packages/uvicorn/server.py", line 69, in serve
config.load()
File "/usr/local/lib/python3.8/dist-packages/uvicorn/config.py", line 458, in load
self.loaded_app = import_from_string(self.app)
File "/usr/local/lib/python3.8/dist-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/usr/src/app/server.py", line 75, in
inference = Inference()
File "/usr/src/app/python_api_examples/inference.py", line 19, in init
self.engines = self.initialize_engines()
File "/usr/src/app/python_api_examples/inference.py", line 411, in initialize_engines
self.engine_cache[unique_key] = self.create_engine(*paths)
File "/usr/src/app/python_api_examples/inference.py", line 429, in create_engine
return sherpa_onnx.OfflineTts(tts_config)
RuntimeError: Number of NFA states exceeds limit. Please use shorter regex string, or use smaller brace expression, or make _GLIBCXX_REGEX_STATE_LIMIT larger.

Could you try the code from sherpa-onnx without any change and see if it works?

By the way, please ask on GitHub via issues to get a faster reply.

Sign up or log in to comment