Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / Synthesis / SpeechSeg.cs / 1 / SpeechSeg.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // Contains either a reference to an audio audioStream or a list of // text fragments. // // History: // 2/1/2005 jeanfp Created from the Sapi Managed code //----------------------------------------------------------------- using System; using System.Collections.Generic; using System.Speech.Synthesis.TtsEngine; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages. namespace System.Speech.Internal.Synthesis { ////// /// internal class SpeechSeg { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal SpeechSeg (TTSVoice voice, AudioData audio) { _voice = voice; _audio = audio; } #endregion //******************************************************************** // // Internal Properties // //******************************************************************* #region Internal Properties internal ListFragmentList { get { return _textFragments; } } internal AudioData Audio { get { return _audio; } } internal TTSVoice Voice { get { return _voice; } } internal bool IsText { get { return _audio == null; } } #if SPEECHSERVER || PROMPT_ENGINE internal bool ContainsPrompEngineFragment { set { _hasPromptEngineFragment = value; } get { return _hasPromptEngineFragment; } } #endif #endregion //******************************************************************** // // Internal Methods // //******************************************************************** #region Internal Methods internal void AddFrag (TextFragment textFragment) { if (_audio != null) { throw new InvalidOperationException (); } _textFragments.Add (textFragment); } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region private Fields private TTSVoice _voice; List _textFragments = new List (); #pragma warning disable 56524 // The _audio are not created in this module and should not be disposed private AudioData _audio; #pragma warning enable 56524 #if SPEECHSERVER || PROMPT_ENGINE // Reference to the VoiceSynthesizer that created it private bool _hasPromptEngineFragment; #endif #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // // // Contains either a reference to an audio audioStream or a list of // text fragments. // // History: // 2/1/2005 jeanfp Created from the Sapi Managed code //----------------------------------------------------------------- using System; using System.Collections.Generic; using System.Speech.Synthesis.TtsEngine; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages. namespace System.Speech.Internal.Synthesis { ////// /// internal class SpeechSeg { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal SpeechSeg (TTSVoice voice, AudioData audio) { _voice = voice; _audio = audio; } #endregion //******************************************************************** // // Internal Properties // //******************************************************************* #region Internal Properties internal ListFragmentList { get { return _textFragments; } } internal AudioData Audio { get { return _audio; } } internal TTSVoice Voice { get { return _voice; } } internal bool IsText { get { return _audio == null; } } #if SPEECHSERVER || PROMPT_ENGINE internal bool ContainsPrompEngineFragment { set { _hasPromptEngineFragment = value; } get { return _hasPromptEngineFragment; } } #endif #endregion //******************************************************************** // // Internal Methods // //******************************************************************** #region Internal Methods internal void AddFrag (TextFragment textFragment) { if (_audio != null) { throw new InvalidOperationException (); } _textFragments.Add (textFragment); } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region private Fields private TTSVoice _voice; List _textFragments = new List (); #pragma warning disable 56524 // The _audio are not created in this module and should not be disposed private AudioData _audio; #pragma warning enable 56524 #if SPEECHSERVER || PROMPT_ENGINE // Reference to the VoiceSynthesizer that created it private bool _hasPromptEngineFragment; #endif #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HTTPNotFoundHandler.cs
- TimersDescriptionAttribute.cs
- RichTextBox.cs
- DataSourceControl.cs
- ExcCanonicalXml.cs
- FontResourceCache.cs
- EntitySetBase.cs
- DbConnectionStringBuilder.cs
- Currency.cs
- XmlBindingWorker.cs
- _NegoStream.cs
- TrustLevelCollection.cs
- DockAndAnchorLayout.cs
- HttpClientCertificate.cs
- XComponentModel.cs
- DomainUpDown.cs
- ProfileManager.cs
- GenericsInstances.cs
- SkipQueryOptionExpression.cs
- SHA256Managed.cs
- AsyncContentLoadedEventArgs.cs
- ReflectionHelper.cs
- StatusBarPanelClickEvent.cs
- InkPresenter.cs
- GeneralTransformCollection.cs
- SqlConnectionString.cs
- FontSource.cs
- DesignerTransaction.cs
- StsCommunicationException.cs
- RenamedEventArgs.cs
- BindableTemplateBuilder.cs
- RequiredAttributeAttribute.cs
- Int64AnimationUsingKeyFrames.cs
- MDIControlStrip.cs
- ErrorStyle.cs
- ManipulationDevice.cs
- EntitySqlQueryCacheEntry.cs
- WebPartManagerInternals.cs
- OdbcException.cs
- DbQueryCommandTree.cs
- UnsafeNetInfoNativeMethods.cs
- CodeAttributeArgumentCollection.cs
- MimeReturn.cs
- OleDbSchemaGuid.cs
- RecognizerStateChangedEventArgs.cs
- Base64Encoding.cs
- DataGridViewDataConnection.cs
- TableRow.cs
- TimeSpanOrInfiniteConverter.cs
- EntityContainer.cs
- ColorMap.cs
- TraceUtils.cs
- MailMessageEventArgs.cs
- DataBinding.cs
- Parser.cs
- TextSelectionHighlightLayer.cs
- HttpFileCollection.cs
- CreateUserWizardStep.cs
- FilterQuery.cs
- DataGridColumn.cs
- EntityObject.cs
- ExpressionBuilder.cs
- TextRange.cs
- HttpRequestCacheValidator.cs
- SiteMap.cs
- DataBindingHandlerAttribute.cs
- SQLSingleStorage.cs
- SiteMapPathDesigner.cs
- DependentTransaction.cs
- Light.cs
- SimpleType.cs
- OutOfMemoryException.cs
- WindowsToolbarAsMenu.cs
- Bold.cs
- XmlUtil.cs
- FillBehavior.cs
- TdsParserStaticMethods.cs
- RawStylusInputReport.cs
- GridViewDeleteEventArgs.cs
- EventPropertyMap.cs
- AdapterDictionary.cs
- AudioDeviceOut.cs
- XmlIgnoreAttribute.cs
- X509Extension.cs
- SafeSystemMetrics.cs
- LocalizedNameDescriptionPair.cs
- XmlStreamNodeWriter.cs
- OleDbReferenceCollection.cs
- HostProtectionException.cs
- ImageAnimator.cs
- Transform3DGroup.cs
- Row.cs
- ZipIOModeEnforcingStream.cs
- SchemaCollectionPreprocessor.cs
- BookmarkManager.cs
- ProgressBarBrushConverter.cs
- EventWaitHandleSecurity.cs
- Compiler.cs
- ProfileGroupSettingsCollection.cs
- IsolatedStorageFile.cs