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