Code:
/ DotNET / DotNET / 8.0 / untmp / 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 [....] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ValidationEventArgs.cs
- TargetInvocationException.cs
- RotateTransform.cs
- XmlSchemaSimpleContentRestriction.cs
- ExpressionCopier.cs
- SpellerHighlightLayer.cs
- FrugalMap.cs
- DataServiceClientException.cs
- SchemaCollectionCompiler.cs
- SkipStoryboardToFill.cs
- SqlDataReaderSmi.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SiteMapProvider.cs
- Win32KeyboardDevice.cs
- SiteMap.cs
- Enum.cs
- MappingItemCollection.cs
- precedingsibling.cs
- Page.cs
- Int32RectConverter.cs
- HttpRuntime.cs
- ProcessStartInfo.cs
- DataGridViewRowCancelEventArgs.cs
- EventLog.cs
- BitmapEffectGeneralTransform.cs
- InternalConfigHost.cs
- DocumentPropertiesDialog.cs
- PerformanceCounter.cs
- WebPartEditorOkVerb.cs
- LabelAutomationPeer.cs
- ImmutableDispatchRuntime.cs
- ErrorFormatter.cs
- SafeNativeMethods.cs
- LoadItemsEventArgs.cs
- WorkflowServiceNamespace.cs
- DetailsViewDeleteEventArgs.cs
- figurelength.cs
- RenderingEventArgs.cs
- DocumentOutline.cs
- SequenceDesigner.xaml.cs
- DocumentScope.cs
- EnumConverter.cs
- WebPartConnectionsCancelVerb.cs
- DesignBindingEditor.cs
- RadialGradientBrush.cs
- SQLBytes.cs
- IPPacketInformation.cs
- MDIWindowDialog.cs
- DisplayMemberTemplateSelector.cs
- HandlerWithFactory.cs
- XmlSchemaProviderAttribute.cs
- MemberNameValidator.cs
- HtmlElementEventArgs.cs
- PerformanceCounterPermissionEntry.cs
- EntityDataSourceDataSelectionPanel.cs
- PermissionRequestEvidence.cs
- XmlCountingReader.cs
- FormConverter.cs
- CheckoutException.cs
- ErrorWrapper.cs
- WebDisplayNameAttribute.cs
- FamilyMapCollection.cs
- NamedPipeAppDomainProtocolHandler.cs
- PtsCache.cs
- Int32AnimationBase.cs
- RowUpdatingEventArgs.cs
- X509AudioLogo.cs
- EditCommandColumn.cs
- HttpPostedFile.cs
- ProfileParameter.cs
- ServiceOperationListItem.cs
- DataGridViewRowsRemovedEventArgs.cs
- OdbcEnvironmentHandle.cs
- HttpClientProtocol.cs
- MsmqSecureHashAlgorithm.cs
- ReaderWriterLockWrapper.cs
- CriticalExceptions.cs
- BindingContext.cs
- ContractBase.cs
- TextRangeEditLists.cs
- SqlNodeTypeOperators.cs
- StylusButtonEventArgs.cs
- Utility.cs
- TextAutomationPeer.cs
- Activity.cs
- TemplateBaseAction.cs
- DataGridViewCell.cs
- wmiprovider.cs
- PopupRootAutomationPeer.cs
- Mapping.cs
- UxThemeWrapper.cs
- GatewayDefinition.cs
- ping.cs
- Pen.cs
- ZipIOExtraFieldZip64Element.cs
- ParameterBinding.cs
- DataGridViewMethods.cs
- XmlSchemaSimpleContentExtension.cs
- CodeTypeMember.cs
- AssemblyAssociatedContentFileAttribute.cs