Files
Dec2017-Script-Dump/UnityEngine/Windows/Speech/GrammarRecognizer.cs
T
2026-06-04 11:42:34 +02:00

35 lines
1.1 KiB
C#

using System;
namespace UnityEngine.Windows.Speech
{
// Token: 0x02000504 RID: 1284
public sealed class GrammarRecognizer : PhraseRecognizer
{
// Token: 0x06003C5A RID: 15450 RVA: 0x0006AAD4 File Offset: 0x00068CD4
public GrammarRecognizer(string grammarFilePath)
: this(grammarFilePath, ConfidenceLevel.Medium)
{
}
// Token: 0x06003C5B RID: 15451 RVA: 0x0006AAE0 File Offset: 0x00068CE0
public GrammarRecognizer(string grammarFilePath, ConfidenceLevel minimumConfidence)
{
if (grammarFilePath == null)
{
throw new ArgumentNullException("grammarFilePath");
}
if (grammarFilePath.Length == 0)
{
throw new ArgumentException("Grammar file path cannot be empty.");
}
this.GrammarFilePath = grammarFilePath;
this.m_Recognizer = base.CreateFromGrammarFile(grammarFilePath, minimumConfidence);
}
// Token: 0x17000D98 RID: 3480
// (get) Token: 0x06003C5C RID: 15452 RVA: 0x0006AB30 File Offset: 0x00068D30
// (set) Token: 0x06003C5D RID: 15453 RVA: 0x0006AB4C File Offset: 0x00068D4C
public string GrammarFilePath { get; private set; }
}
}