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
- GridViewDeletedEventArgs.cs
- AsyncCompletedEventArgs.cs
- StringExpressionSet.cs
- HasCopySemanticsAttribute.cs
- VBIdentifierNameEditor.cs
- TextSelection.cs
- CompositeCollection.cs
- AttributeTableBuilder.cs
- DataViewSetting.cs
- AppDomain.cs
- XhtmlBasicCalendarAdapter.cs
- Vector3DConverter.cs
- PerformanceCountersElement.cs
- RepeatButtonAutomationPeer.cs
- ClusterRegistryConfigurationProvider.cs
- EntityClientCacheEntry.cs
- WhitespaceSignificantCollectionAttribute.cs
- HtmlTable.cs
- SamlSubject.cs
- QueryConverter.cs
- DBDataPermissionAttribute.cs
- RecordBuilder.cs
- BaseParagraph.cs
- RNGCryptoServiceProvider.cs
- DictionaryBase.cs
- CodeStatement.cs
- AnnotationDocumentPaginator.cs
- WindowsSecurityTokenAuthenticator.cs
- PagedDataSource.cs
- HtmlGenericControl.cs
- FormViewUpdateEventArgs.cs
- FastPropertyAccessor.cs
- AdPostCacheSubstitution.cs
- AccessControlList.cs
- ErrorEventArgs.cs
- ZipIOExtraFieldPaddingElement.cs
- TagMapInfo.cs
- UInt16Converter.cs
- KeyConverter.cs
- DictionaryGlobals.cs
- DrawingImage.cs
- UnknownWrapper.cs
- WmlValidatorAdapter.cs
- ZipIOLocalFileDataDescriptor.cs
- DecimalStorage.cs
- Compensate.cs
- SiteMapNode.cs
- SourceFilter.cs
- SslStreamSecurityElement.cs
- ExternalFile.cs
- FormsAuthenticationCredentials.cs
- MeasureData.cs
- BlobPersonalizationState.cs
- DataBindingCollection.cs
- PropertyMappingExceptionEventArgs.cs
- Collection.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataGridViewCellMouseEventArgs.cs
- LinearGradientBrush.cs
- ReadOnlyObservableCollection.cs
- CodeSubDirectoriesCollection.cs
- DataGridColumn.cs
- CultureInfoConverter.cs
- NewArrayExpression.cs
- TraceRecord.cs
- CodeBinaryOperatorExpression.cs
- TileBrush.cs
- HiddenField.cs
- MarshalDirectiveException.cs
- OrderedEnumerableRowCollection.cs
- MsmqOutputChannel.cs
- ConfigXmlComment.cs
- PriorityItem.cs
- PersonalizationProviderCollection.cs
- GrammarBuilderDictation.cs
- UseManagedPresentationBindingElement.cs
- DbProviderManifest.cs
- RequestCachePolicy.cs
- RenderDataDrawingContext.cs
- WebColorConverter.cs
- OleDbMetaDataFactory.cs
- HttpVersion.cs
- Avt.cs
- AspNetSynchronizationContext.cs
- ComboBox.cs
- EntityDescriptor.cs
- TextParagraphView.cs
- UriTemplateTrieNode.cs
- CodeDOMUtility.cs
- OleDbCommand.cs
- DataGridPagerStyle.cs
- GlobalizationSection.cs
- RemoteHelper.cs
- DataGridColumnHeaderAutomationPeer.cs
- DataGridViewButtonColumn.cs
- LoadItemsEventArgs.cs
- AncillaryOps.cs
- RuntimeWrappedException.cs
- _ConnectionGroup.cs
- DockPatternIdentifiers.cs