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
- GlobalDataBindingHandler.cs
- CachedFontFace.cs
- DesignerActionUI.cs
- DbDeleteCommandTree.cs
- FloatUtil.cs
- DataSourceControlBuilder.cs
- StrokeFIndices.cs
- CustomValidator.cs
- DataView.cs
- FacetEnabledSchemaElement.cs
- SkewTransform.cs
- DataContractSerializer.cs
- XmlSecureResolver.cs
- Floater.cs
- ConfigXmlCDataSection.cs
- WpfXamlType.cs
- SoapFormatter.cs
- CodeAccessSecurityEngine.cs
- PerfCounters.cs
- OracleParameterCollection.cs
- TreeNodeBinding.cs
- DataControlLinkButton.cs
- SystemDiagnosticsSection.cs
- ChangePassword.cs
- Thickness.cs
- NumberSubstitution.cs
- IApplicationTrustManager.cs
- FixedSOMImage.cs
- ListViewDataItem.cs
- PerspectiveCamera.cs
- WebPartZoneDesigner.cs
- _BasicClient.cs
- DataBindingCollection.cs
- XmlKeywords.cs
- ListViewAutomationPeer.cs
- OleDbCommand.cs
- SolidColorBrush.cs
- WpfWebRequestHelper.cs
- Size.cs
- ComponentGlyph.cs
- UriTemplateTrieLocation.cs
- DefaultHttpHandler.cs
- MonthCalendar.cs
- ExpandSegment.cs
- RolePrincipal.cs
- StructuralComparisons.cs
- CodeAccessPermission.cs
- BitmapPalettes.cs
- NumberEdit.cs
- VisualCollection.cs
- CompilationUnit.cs
- HttpApplication.cs
- FieldDescriptor.cs
- BinaryEditor.cs
- SafeHandles.cs
- MultiAsyncResult.cs
- Label.cs
- elementinformation.cs
- CodeAttributeArgumentCollection.cs
- PageStatePersister.cs
- LinqDataSource.cs
- CodeBlockBuilder.cs
- HtmlTableCell.cs
- XmlObjectSerializerContext.cs
- UiaCoreTypesApi.cs
- RegistryPermission.cs
- StoryFragments.cs
- TypeUtil.cs
- FileStream.cs
- ProfileBuildProvider.cs
- DrawingImage.cs
- ExceptionValidationRule.cs
- TableDesigner.cs
- WhiteSpaceTrimStringConverter.cs
- SqlBuffer.cs
- ObjRef.cs
- Matrix3DConverter.cs
- ButtonBase.cs
- QueryExpr.cs
- WebPartTransformerAttribute.cs
- EmptyReadOnlyDictionaryInternal.cs
- OracleCommand.cs
- GPPOINT.cs
- LocationInfo.cs
- SingletonConnectionReader.cs
- TabRenderer.cs
- SHA1Cng.cs
- SQLDoubleStorage.cs
- ResourcePermissionBaseEntry.cs
- SQLStringStorage.cs
- FacetEnabledSchemaElement.cs
- SafeHandles.cs
- DefinitionUpdate.cs
- DefaultBindingPropertyAttribute.cs
- CodeNamespaceImportCollection.cs
- UpdatePanel.cs
- SiteMapNodeItemEventArgs.cs
- TraceProvider.cs
- ErrorEventArgs.cs
- EnumBuilder.cs