25 lines
591 B
C#
25 lines
591 B
C#
/// Copyright (c) 2024.5 by 东风破
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SherpaOnnx
|
|
{
|
|
public struct SpokenLanguageIdentificationConfig
|
|
{
|
|
public SpokenLanguageIdentificationConfig()
|
|
{
|
|
Whisper = new SpokenLanguageIdentificationWhisperConfig();
|
|
NumThreads = 1;
|
|
Debug = 0;
|
|
Provider = "cpu";
|
|
}
|
|
public SpokenLanguageIdentificationWhisperConfig Whisper;
|
|
|
|
public int NumThreads;
|
|
public int Debug;
|
|
|
|
[MarshalAs(UnmanagedType.LPStr)]
|
|
public string Provider;
|
|
}
|
|
|
|
} |