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
- OdbcUtils.cs
- Socket.cs
- XsdDateTime.cs
- BrowserCapabilitiesFactory.cs
- TransactionScope.cs
- EventlogProvider.cs
- DesignerToolStripControlHost.cs
- VirtualDirectoryMappingCollection.cs
- _SSPISessionCache.cs
- AspNetHostingPermission.cs
- DoubleCollectionConverter.cs
- OdbcUtils.cs
- ItemCollection.cs
- ContextProperty.cs
- WebConfigurationHostFileChange.cs
- WorkflowDefinitionDispenser.cs
- FrugalMap.cs
- DocobjHost.cs
- LabelExpression.cs
- DispatcherTimer.cs
- PersonalizationStateQuery.cs
- Signature.cs
- UserValidatedEventArgs.cs
- User.cs
- TemplateKey.cs
- HttpStaticObjectsCollectionBase.cs
- EditorPartCollection.cs
- Condition.cs
- Menu.cs
- JavascriptCallbackBehaviorAttribute.cs
- TcpPortSharing.cs
- WriteTimeStream.cs
- datacache.cs
- ThumbButtonInfoCollection.cs
- StorageComplexTypeMapping.cs
- PnrpPermission.cs
- SQLBinaryStorage.cs
- EntityDataSourceUtil.cs
- GAC.cs
- PasswordDeriveBytes.cs
- LambdaCompiler.Expressions.cs
- Point3DCollectionConverter.cs
- HostedImpersonationContext.cs
- RuntimeConfigLKG.cs
- COM2Properties.cs
- PolygonHotSpot.cs
- InputScope.cs
- DeploymentSection.cs
- LZCodec.cs
- PolyLineSegmentFigureLogic.cs
- XPathDocument.cs
- UriTemplateCompoundPathSegment.cs
- ZipIOLocalFileHeader.cs
- EmbeddedMailObjectsCollection.cs
- TextMarkerSource.cs
- ComponentDispatcherThread.cs
- GeneralTransform3DTo2DTo3D.cs
- Annotation.cs
- FacetDescriptionElement.cs
- ExpressionVisitor.cs
- WinFormsUtils.cs
- EmulateRecognizeCompletedEventArgs.cs
- PersistChildrenAttribute.cs
- FieldAccessException.cs
- XmlSerializableReader.cs
- CancelEventArgs.cs
- PagedDataSource.cs
- DataGridTableCollection.cs
- ListControlDesigner.cs
- SafeSecurityHandles.cs
- RulePatternOps.cs
- RowVisual.cs
- StylusButtonCollection.cs
- SqlError.cs
- ExpressionBindingCollection.cs
- StateElementCollection.cs
- RegexWriter.cs
- XmlSchemaObjectCollection.cs
- ScaleTransform3D.cs
- WindowsFormsLinkLabel.cs
- SmtpReplyReader.cs
- UniqueIdentifierService.cs
- SoapMessage.cs
- CompoundFileStreamReference.cs
- SynchronizedDispatch.cs
- X509ClientCertificateAuthentication.cs
- SoapExtension.cs
- SchemaObjectWriter.cs
- SchemaCollectionCompiler.cs
- AuthenticationSection.cs
- InsufficientExecutionStackException.cs
- DesignerForm.cs
- WebConfigurationManager.cs
- RelationshipDetailsRow.cs
- HashCodeCombiner.cs
- Win32Exception.cs
- SQLInt16.cs
- PanelStyle.cs
- EntityDataSourceContainerNameItem.cs
- PropertyGrid.cs