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
- ScrollEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- ProcessInfo.cs
- XsdValidatingReader.cs
- AutomationIdentifier.cs
- SqlUtil.cs
- ColorComboBox.cs
- TraceRecords.cs
- WaitForChangedResult.cs
- LambdaCompiler.ControlFlow.cs
- SiteMapDataSource.cs
- FamilyTypeface.cs
- ThreadSafeList.cs
- ToolstripProfessionalRenderer.cs
- IntranetCredentialPolicy.cs
- PropertyEmitterBase.cs
- ColumnClickEvent.cs
- Timer.cs
- Certificate.cs
- PackageRelationshipSelector.cs
- ServiceCredentials.cs
- EntityDataSourceQueryBuilder.cs
- XmlTextWriter.cs
- WebServiceMethodData.cs
- XmlDigitalSignatureProcessor.cs
- CalculatedColumn.cs
- GenericAuthenticationEventArgs.cs
- Expander.cs
- TabControlEvent.cs
- WindowsComboBox.cs
- RegisteredScript.cs
- UTF32Encoding.cs
- SingleTagSectionHandler.cs
- CompositeDesignerAccessibleObject.cs
- DataServiceCollectionOfT.cs
- FromRequest.cs
- ExpressionConverter.cs
- DynamicVirtualDiscoSearcher.cs
- XmlNamedNodeMap.cs
- Math.cs
- IdentityHolder.cs
- ResourceDisplayNameAttribute.cs
- XslVisitor.cs
- FormatConvertedBitmap.cs
- ProofTokenCryptoHandle.cs
- WeakReadOnlyCollection.cs
- AssemblyBuilder.cs
- CheckableControlBaseAdapter.cs
- Menu.cs
- Marshal.cs
- TcpProcessProtocolHandler.cs
- BinHexEncoder.cs
- XmlDataSourceView.cs
- ReaderWriterLock.cs
- Ref.cs
- SendKeys.cs
- UnaryExpressionHelper.cs
- HwndHost.cs
- ItemCollection.cs
- ParameterModifier.cs
- HttpRuntime.cs
- EastAsianLunisolarCalendar.cs
- Component.cs
- BufferModeSettings.cs
- MembershipValidatePasswordEventArgs.cs
- DateTimeConstantAttribute.cs
- ColorContext.cs
- PolicyChain.cs
- DataList.cs
- DocumentPage.cs
- RangeContentEnumerator.cs
- CryptoHandle.cs
- DesignerRegion.cs
- StandardCommands.cs
- SAPIEngineTypes.cs
- AutomationAttributeInfo.cs
- WpfXamlMember.cs
- InputScope.cs
- UriWriter.cs
- ZoneLinkButton.cs
- Clause.cs
- AppSettingsExpressionBuilder.cs
- CustomTrackingQuery.cs
- DataBindEngine.cs
- ADMembershipUser.cs
- CssTextWriter.cs
- Timer.cs
- ImageBrush.cs
- AuthenticatedStream.cs
- MDIWindowDialog.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ComPlusDiagnosticTraceRecords.cs
- HeaderFilter.cs
- CanonicalizationDriver.cs
- WMICapabilities.cs
- MenuItem.cs
- ISO2022Encoding.cs
- PowerModeChangedEventArgs.cs
- RemoteHelper.cs
- ElementProxy.cs