-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load DLL 'sherpa-onnx-c-api' or one of its dependencies #1050
Comments
为啥C#的案例运行起来后都是 sherpa-onnx-c-api 动态链接库(DLL)初始化例程失败。 (0x8007045A) |
我本地没问题, CI 也没问题,你是第二位有这个问题的同学。我不清楚是什么原因导致的. |
有群或者QQ嘛,也许可以远程对比排查下。 |
请看 建议加 qq 群 |
@qiaokesi |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`// Copyright (c) 2023 Xiaomi Corporation
//
// This file shows how to use a streaming model for real-time speech
// recognition from a microphone.
// Please refer to
// https://k2-fsa.github.io/sherpa/onnx/pretrained_models/online-transducer/zipformer-transducer-models.html
// to download streaming models
using CommandLine.Text;
using CommandLine;
using PortAudioSharp;
using System.Threading;
using SherpaOnnx;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System;
class SpeechRecognitionFromMicrophone
{
class Options
{
[Option(Required = true, HelpText = "Path to tokens.txt")]
public string Tokens { get; set; }
It specifies number of active paths to keep during the search")]
public int MaxActivePaths { get; set; } = 4;
larger than this value even if nothing has been decoded. Used only when --enable-endpoint is true.")]
public float Rule1MinTrailingSilence { get; set; }
larger than this value after something that is not blank has been decoded. Used
only when --enable-endpoint is true.")]
public float Rule2MinTrailingSilence { get; set; }
larger than this value. Used only when --enable-endpoint is true.")]
public float Rule3MinUtteranceLength { get; set; }
}
static void Main(string[] args)
{
}
}
`
system:
win10,i9 cpu
erro:
Unhandled exception. System.DllNotFoundException: Unable to load DLL 'sherpa-onnx-c-api' or one of its dependencies: 动 态链接库(DLL)初始化例程失败。 (0x8007045A)
at SherpaOnnx.OnlineRecognizer.CreateOnlineRecognizer(OnlineRecognizerConfig& config)
at SherpaOnnx.OnlineRecognizer..ctor(OnlineRecognizerConfig config)
at SpeechRecognitionFromMicrophone.Main(String[] args) in
The text was updated successfully, but these errors were encountered: