Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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
- BitArray.cs
- CommandArguments.cs
- StateManagedCollection.cs
- DataSourceXmlClassAttribute.cs
- StylusPointPropertyUnit.cs
- DataPagerFieldItem.cs
- SecurityTokenAuthenticator.cs
- AuthenticationModuleElementCollection.cs
- elementinformation.cs
- ProfilePropertyNameValidator.cs
- TextPointer.cs
- MessageBuffer.cs
- DataGridParentRows.cs
- DrawingBrush.cs
- WebReferencesBuildProvider.cs
- TextServicesManager.cs
- DataSourceExpressionCollection.cs
- _SpnDictionary.cs
- DataRelationPropertyDescriptor.cs
- XPathQilFactory.cs
- Inflater.cs
- DataControlHelper.cs
- UIElementPropertyUndoUnit.cs
- ListViewInsertedEventArgs.cs
- PaperSource.cs
- AutomationElement.cs
- SchemaInfo.cs
- BinaryWriter.cs
- TrackBarDesigner.cs
- WindowsListView.cs
- AnchoredBlock.cs
- DataObjectCopyingEventArgs.cs
- DefaultValueAttribute.cs
- HTTPAPI_VERSION.cs
- TableRowGroup.cs
- WebBrowserSiteBase.cs
- WindowsListViewItem.cs
- WebDisplayNameAttribute.cs
- StringAnimationUsingKeyFrames.cs
- UserMapPath.cs
- XmlSchemaValidator.cs
- SimpleRecyclingCache.cs
- SQLUtility.cs
- MessageEncoderFactory.cs
- QuaternionAnimation.cs
- FixedTextSelectionProcessor.cs
- TcpWorkerProcess.cs
- DataFormats.cs
- DesignerImageAdapter.cs
- MemoryRecordBuffer.cs
- HTTPAPI_VERSION.cs
- DrawListViewSubItemEventArgs.cs
- CookielessHelper.cs
- XmlAtomicValue.cs
- StylusOverProperty.cs
- SymbolMethod.cs
- MouseCaptureWithinProperty.cs
- XmlExceptionHelper.cs
- WindowShowOrOpenTracker.cs
- XMLSchema.cs
- DBBindings.cs
- CategoryGridEntry.cs
- TextDecorationCollectionConverter.cs
- ExpressionBuilder.cs
- ThreadStateException.cs
- SymLanguageType.cs
- RIPEMD160Managed.cs
- UnauthorizedAccessException.cs
- BitFlagsGenerator.cs
- UpdateException.cs
- ControlEvent.cs
- Button.cs
- NullableFloatAverageAggregationOperator.cs
- CommandHelpers.cs
- EllipseGeometry.cs
- XmlRawWriter.cs
- XPathParser.cs
- Point3D.cs
- HttpValueCollection.cs
- ValueQuery.cs
- InputScope.cs
- PointLight.cs
- WmiEventSink.cs
- DnsPermission.cs
- ThousandthOfEmRealPoints.cs
- documentsequencetextview.cs
- ChannelEndpointElementCollection.cs
- StrokeCollection2.cs
- LineMetrics.cs
- CodeRegionDirective.cs
- TcpChannelHelper.cs
- Wizard.cs
- TimeSpanConverter.cs
- OrderedHashRepartitionStream.cs
- ControlAdapter.cs
- GetCryptoTransformRequest.cs
- SqlDeflator.cs
- SHA256Managed.cs
- CodeTypeOfExpression.cs
- HostingEnvironment.cs