You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As dependencies will throw this error at runtime when initializing sherpa-onnx TTS on Linux:
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'sherpa-onnx-c-api' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
/home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/runtimes/linux-x64/native/sherpa-onnx-c-api.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.1/sherpa-onnx-c-api.so: cannot open shared object file: No such file or directory
/home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/sherpa-onnx-c-api.so: cannot open shared object file: No such file or directory
/home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/runtimes/linux-x64/native/libonnxruntime.so: version `VERS_1.17.1' not found (required by /home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/runtimes/linux-x64/native/libsherpa-onnx-c-api.so)
/usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.1/libsherpa-onnx-c-api.so: cannot open shared object file: No such file or directory
/home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/libsherpa-onnx-c-api.so: cannot open shared object file: No such file or directory
/home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/runtimes/linux-x64/native/sherpa-onnx-c-api: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.1/sherpa-onnx-c-api: cannot open shared object file: No such file or directory
/home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/sherpa-onnx-c-api: cannot open shared object file: No such file or directory
/home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/runtimes/linux-x64/native/libsherpa-onnx-c-api: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.1/libsherpa-onnx-c-api: cannot open shared object file: No such file or directory
/home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/bin/Debug/net9.0/libsherpa-onnx-c-api: cannot open shared object file: No such file or directory
at SherpaOnnx.OfflineTts.SherpaOnnxCreateOfflineTts(OfflineTtsConfig& config)
at SherpaOnnx.OfflineTts..ctor(OfflineTtsConfig config)
at OfflineTtsDemo.Main(String[] args) in /home/zhenyapav/Projects/sherpa-onnx/dotnet-examples/kokoro-tts/Program.cs:line 27
This issue is only present on Linux, not Windows. Not sure if other functionality besides TTS is affected.
A project with both
As dependencies will throw this error at runtime when initializing sherpa-onnx TTS on Linux:
This issue is only present on Linux, not Windows. Not sure if other functionality besides TTS is affected.
Steps to replicate:
<PackageReference Include="EchoSharp.Onnx.Sherpa" Version="0.1.0" />
to csprojI think it could be due to EchoSharp.Onnx.Sherpa requiring Microsoft.ML.OnnxRuntime (>= 1.20.0)
Same issue in the sherpa-onnx repository: k2-fsa/sherpa-onnx#1771
The text was updated successfully, but these errors were encountered: