106 references to Helpers
System.Speech (106)
Internal\ObjectToken\RegistryDataKey.cs (2)
359
Helpers
.ThrowIfEmptyOrNull(keyName, nameof(keyName));
378
Helpers
.ThrowIfEmptyOrNull(keyName, nameof(keyName));
Internal\ObjectToken\SAPICategories.cs (1)
17
Helpers
.ThrowIfEmptyOrNull(category, nameof(category));
Internal\PhonemeConverter.cs (1)
64
sPhone = sPhone.Trim(
Helpers
._achTrimChars);
Internal\SeekableReadStream.cs (1)
115
Helpers
.BlockingRead(_baseStream, readBuffer, 0, (int)bytesToReadLong);
Internal\SrgsCompiler\BackEnd.cs (5)
126
streamBuffer.WriteArray(s_abZero3, cBasePath *
Helpers
._sizeOfChar & 3);
734
sToken = sToken.Trim(
Helpers
._achTrimChars);
1034
ulOffset += (uint)_words.SerializeSize() *
Helpers
._sizeOfChar;
1037
ulOffset += (uint)_symbols.SerializeSize() *
Helpers
._sizeOfChar;
1042
ulOffset += (uint)((cBasePath *
Helpers
._sizeOfChar + 3) & ~3);
Internal\SrgsCompiler\CFGGrammar.cs (2)
410
CheckSetOffsets(pFH.pszWords, pFH.cchWords *
Helpers
._sizeOfChar, ref ullStartOffset, pFH.ulTotalSerializedSize);
415
CheckSetOffsets(pFH.pszSymbols, pFH.cchSymbols *
Helpers
._sizeOfChar, ref ullStartOffset, pFH.ulTotalSerializedSize);
Internal\SrgsCompiler\SemanticTag.cs (1)
24
sTag = sTag.Trim(
Helpers
._achTrimChars);
Internal\SrgsCompiler\Subset.cs (1)
23
foreach (char ch in
Helpers
._achTrimChars)
Internal\SrgsParser\XmlParser.cs (7)
123
sChars = sChars.Trim(
Helpers
._achTrimChars);
944
sPronunciation = reader.Value.Trim(
Helpers
._achTrimChars);
963
sDisplay = reader.Value.Trim(
Helpers
._achTrimChars);
1012
string content = GetStringContent(reader).Trim(
Helpers
._achTrimChars);
1095
return GetStringContent(reader).Trim(
Helpers
._achTrimChars);
1683
name = sTag.Substring(0, iEqual).Trim(
Helpers
._achTrimChars);
1830
Helpers
.ThrowIfEmptyOrNull(id, nameof(id));
Internal\StreamMarshaler.cs (5)
32
byte[] ab =
Helpers
.ReadStreamToByteArray(_stream, sizeObject);
62
int sizeObject = c *
Helpers
._sizeOfChar;
66
byte[] ab =
Helpers
.ReadStreamToByteArray(_stream, sizeObject);
102
int sizeObject = c *
Helpers
._sizeOfChar;
119
byte[] ab =
Helpers
.ReadStreamToByteArray(_stream, sizeObject);
Internal\Synthesis\AudioBase.cs (1)
167
byte[] ab =
Helpers
.ReadStreamToByteArray(audio._stream, dataHdr._len);
Internal\Synthesis\SSmlParser.cs (3)
1490
time = time.Trim(
Helpers
._achTrimChars);
1685
sNumber = sNumber.Trim(
Helpers
._achTrimChars);
1742
sNumber = sNumber.Trim(
Helpers
._achTrimChars);
Internal\Synthesis\VoiceSynthesis.cs (1)
1304
if (culture != null && tokCulture != null &&
Helpers
.CompareInvariantCulture(tokCulture, culture))
Recognition\Choices.cs (1)
43
Helpers
.ThrowIfEmptyOrNull(phrase, "phrase");
Recognition\Grammar.cs (4)
173
if (
Helpers
.CompareInvariantCulture(new CultureInfo(int.Parse(cultureId!, CultureInfo.InvariantCulture)), CultureInfo.CurrentUICulture))
590
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
627
_cfgData =
Helpers
.ReadStreamToByteArray(stream, (int)stream.Length);
732
if (
Helpers
.CompareInvariantCulture(new CultureInfo(int.Parse(cultureId!, CultureInfo.InvariantCulture)), CultureInfo.CurrentUICulture))
Recognition\GrammarBuilder.cs (7)
77
Helpers
.ThrowIfEmptyOrNull(phrase, nameof(phrase));
84
Helpers
.ThrowIfEmptyOrNull(phrase, nameof(phrase));
92
Helpers
.ThrowIfEmptyOrNull(phrase, nameof(phrase));
187
Helpers
.ThrowIfEmptyOrNull(category, nameof(category));
204
Helpers
.ThrowIfEmptyOrNull(path, nameof(path));
224
Helpers
.ThrowIfEmptyOrNull(path, nameof(path));
225
Helpers
.ThrowIfEmptyOrNull(rule, nameof(rule));
Recognition\RecognizerBase.cs (8)
313
Helpers
.ThrowIfEmptyOrNull(inputText, nameof(inputText));
320
Helpers
.ThrowIfEmptyOrNull(inputText, nameof(inputText));
327
Helpers
.ThrowIfEmptyOrNull(inputText, nameof(inputText));
346
Helpers
.ThrowIfEmptyOrNull(inputText, nameof(inputText));
828
Helpers
.ThrowIfEmptyOrNull(settingName, nameof(settingName));
836
Helpers
.ThrowIfEmptyOrNull(settingName, nameof(settingName));
855
Helpers
.ThrowIfEmptyOrNull(settingName, nameof(settingName));
862
Helpers
.ThrowIfEmptyOrNull(settingName, nameof(settingName));
Recognition\SemanticResultKey.cs (3)
18
Helpers
.ThrowIfEmptyOrNull(semanticResultKey, nameof(semanticResultKey));
26
Helpers
.ThrowIfEmptyOrNull(semanticResultKey, nameof(semanticResultKey));
39
Helpers
.ThrowIfEmptyOrNull(semanticResultKey, nameof(semanticResultKey));
Recognition\SemanticResultValue.cs (1)
22
Helpers
.ThrowIfEmptyOrNull(phrase, nameof(phrase));
Recognition\SpeechRecognitionEngine.cs (3)
47
if (
Helpers
.CompareInvariantCulture(recognizerInfo.Culture, culture))
59
Helpers
.ThrowIfEmptyOrNull(recognizerId, nameof(recognizerId));
228
Helpers
.ThrowIfEmptyOrNull(path, nameof(path));
Recognition\SpeechUI.cs (1)
16
Helpers
.ThrowIfEmptyOrNull(feedback, nameof(feedback));
Recognition\SrgsGrammar\SrgsDocument.cs (2)
34
Helpers
.ThrowIfEmptyOrNull(path, nameof(path));
264
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
457
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\SrgsGrammar\SrgsGrammarCompiler.cs (5)
24
Helpers
.ThrowIfEmptyOrNull(inputPath, nameof(inputPath));
61
Helpers
.ThrowIfEmptyOrNull(outputPath, nameof(outputPath));
96
Helpers
.ThrowIfEmptyOrNull(outputPath, nameof(outputPath));
107
Helpers
.ThrowIfEmptyOrNull(outputPath, nameof(outputPath));
148
Helpers
.CopyStream(seekableInputStream, outputStream, cfgLength);
Recognition\SrgsGrammar\SrgsItem.cs (1)
27
Helpers
.ThrowIfEmptyOrNull(text, nameof(text));
Recognition\SrgsGrammar\SrgsNameValueTag.cs (3)
176
Helpers
.ThrowIfEmptyOrNull(name, parameterName);
179
name = name.Trim(
Helpers
._achTrimChars);
182
Helpers
.ThrowIfEmptyOrNull(name, parameterName);
Recognition\SrgsGrammar\SrgsRule.cs (1)
122
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\SrgsGrammar\SrgsRuleRef.cs (5)
25
Helpers
.ThrowIfEmptyOrNull(rule, nameof(rule));
31
Helpers
.ThrowIfEmptyOrNull(semanticKey, nameof(semanticKey));
37
Helpers
.ThrowIfEmptyOrNull(parameters, nameof(parameters));
50
Helpers
.ThrowIfEmptyOrNull(semanticKey, nameof(semanticKey));
57
Helpers
.ThrowIfEmptyOrNull(parameters, nameof(parameters));
Recognition\SrgsGrammar\SrgsSemanticInterpretationTag.cs (1)
68
string script = Script.Trim(
Helpers
._achTrimChars);
Recognition\SrgsGrammar\SrgsSubset.cs (6)
24
Helpers
.ThrowIfEmptyOrNull(text, nameof(text));
33
_text = text.Trim(
Helpers
._achTrimChars);
34
Helpers
.ThrowIfEmptyOrNull(_text, nameof(text));
64
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
65
value = value.Trim(
Helpers
._achTrimChars);
66
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\SrgsGrammar\SrgsToken.cs (5)
22
Helpers
.ThrowIfEmptyOrNull(text, nameof(text));
37
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
40
string text = value.Trim(
Helpers
._achTrimChars);
58
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
72
Helpers
.ThrowIfEmptyOrNull(value, nameof(value));
Synthesis\InstalledVoice.cs (1)
87
if (
Helpers
.CompareInvariantCulture(ti.VoiceInfo.Culture!, culture))
Synthesis\PromptBuilder.cs (8)
321
Helpers
.ThrowIfEmptyOrNull(name, nameof(name));
547
Helpers
.ThrowIfEmptyOrNull(sayAs, nameof(sayAs));
560
Helpers
.ThrowIfEmptyOrNull(textToSpeak, nameof(textToSpeak));
561
Helpers
.ThrowIfEmptyOrNull(pronunciation, nameof(pronunciation));
659
Helpers
.ThrowIfEmptyOrNull(path, nameof(path));
707
Helpers
.ThrowIfEmptyOrNull(bookmarkName, nameof(bookmarkName));
730
Helpers
.ThrowIfEmptyOrNull(path, nameof(path));
763
Helpers
.ThrowIfEmptyOrNull(ssmlMarkup, nameof(ssmlMarkup));
Synthesis\SpeechSynthesizer.cs (3)
37
Helpers
.ThrowIfEmptyOrNull(name, nameof(name));
189
Helpers
.ThrowIfEmptyOrNull(path, nameof(path));
197
Helpers
.ThrowIfEmptyOrNull(path, nameof(path));
Synthesis\TTSEngine\TTSEngineTypes.cs (4)
177
public string TextToSpeak { get { return _textToSpeak; } set {
Helpers
.ThrowIfEmptyOrNull(value, nameof(value)); _textToSpeak = value; } }
413
[DisallowNull] public string? InterpretAs { get { return _interpretAs; } set {
Helpers
.ThrowIfEmptyOrNull(value, nameof(value)); _interpretAs = value; } }
414
[DisallowNull] public string? Format { get { return _format; } set {
Helpers
.ThrowIfEmptyOrNull(value, nameof(value)); _format = value; } }
415
[DisallowNull] public string? Detail { get { return _detail; } set {
Helpers
.ThrowIfEmptyOrNull(value, nameof(value)); _detail = value; } }
Synthesis\VoiceInfo.cs (1)
24
Helpers
.ThrowIfEmptyOrNull(name, nameof(name));