Closed qiaokesi closed 2 months ago
为啥C#的案例运行起来后都是 sherpa-onnx-c-api 动态链接库(DLL)初始化例程失败。 (0x8007045A)
我本地没问题, CI 也没问题,你是第二位有这个问题的同学。我不清楚是什么原因导致的.
我本地没问题, CI 也没问题,你试试第二位有这个问题的同学。我不清楚是什么原因导致的.
有群或者QQ嘛,也许可以远程对比排查下。
我本地没问题, CI 也没问题,你试试第二位有这个问题的同学。我不清楚是什么原因导致的.
有群或者QQ嘛,也许可以远程对比排查下。
请看 https://k2-fsa.github.io/sherpa/social-groups.html
建议加 qq 群
@qiaokesi please try the latest version. It should work now.
`// 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