Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Synthesis / PhonemeEventArgs.cs / 1 / PhonemeEventArgs.cs
//------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------
#if !SPEECHSERVER
using System;
namespace System.Speech.Synthesis
{
///
/// Summary description for PhonemeEventArgs.
///
public class PhonemeReachedEventArgs : PromptEventArgs
{
//*******************************************************************
//
// Constructors
//
//*******************************************************************
#region Constructors
///
/// TODOC
///
///
///
///
///
///
///
internal PhonemeReachedEventArgs (Prompt prompt, string currentPhoneme, TimeSpan audioPosition, TimeSpan duration, SynthesizerEmphasis emphasis, string nextPhoneme) : base(prompt)
{
_currentPhoneme = currentPhoneme;
_audioPosition = audioPosition;
_duration = duration;
_emphasis = emphasis;
_nextPhoneme = nextPhoneme;
}
#endregion
//********************************************************************
//
// Public Properties
//
//*******************************************************************
#region Public Properties
///
/// TODOC
///
///
public string Phoneme
{
get { return _currentPhoneme; }
}
///
/// TODOC
///
///
public TimeSpan AudioPosition
{
get { return _audioPosition; }
}
///
/// TODOC
///
///
public TimeSpan Duration
{
get { return _duration; }
}
///
/// TODOC
///
///
public SynthesizerEmphasis Emphasis
{
get { return _emphasis; }
}
///
/// TODOC
///
///
public string NextPhoneme
{
get { return _nextPhoneme; }
}
#endregion
//********************************************************************
//
// Private Fields
//
//********************************************************************
#region Private Fields
// Current phoneme being synthesized
private string _currentPhoneme;
// Audio position of current phoneme
private TimeSpan _audioPosition;
// Duration of current phoneme
private TimeSpan _duration;
// Features of the current phoneme
private SynthesizerEmphasis _emphasis;
// Next phoneme to be synthesized
private string _nextPhoneme;
#endregion
}
}
#endif
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------
#if !SPEECHSERVER
using System;
namespace System.Speech.Synthesis
{
///
/// Summary description for PhonemeEventArgs.
///
public class PhonemeReachedEventArgs : PromptEventArgs
{
//*******************************************************************
//
// Constructors
//
//*******************************************************************
#region Constructors
///
/// TODOC
///
///
///
///
///
///
///
internal PhonemeReachedEventArgs (Prompt prompt, string currentPhoneme, TimeSpan audioPosition, TimeSpan duration, SynthesizerEmphasis emphasis, string nextPhoneme) : base(prompt)
{
_currentPhoneme = currentPhoneme;
_audioPosition = audioPosition;
_duration = duration;
_emphasis = emphasis;
_nextPhoneme = nextPhoneme;
}
#endregion
//********************************************************************
//
// Public Properties
//
//*******************************************************************
#region Public Properties
///
/// TODOC
///
///
public string Phoneme
{
get { return _currentPhoneme; }
}
///
/// TODOC
///
///
public TimeSpan AudioPosition
{
get { return _audioPosition; }
}
///
/// TODOC
///
///
public TimeSpan Duration
{
get { return _duration; }
}
///
/// TODOC
///
///
public SynthesizerEmphasis Emphasis
{
get { return _emphasis; }
}
///
/// TODOC
///
///
public string NextPhoneme
{
get { return _nextPhoneme; }
}
#endregion
//********************************************************************
//
// Private Fields
//
//********************************************************************
#region Private Fields
// Current phoneme being synthesized
private string _currentPhoneme;
// Audio position of current phoneme
private TimeSpan _audioPosition;
// Duration of current phoneme
private TimeSpan _duration;
// Features of the current phoneme
private SynthesizerEmphasis _emphasis;
// Next phoneme to be synthesized
private string _nextPhoneme;
#endregion
}
}
#endif
// 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
- CngProvider.cs
- ResourceAttributes.cs
- WebPartDisplayMode.cs
- TimelineGroup.cs
- Positioning.cs
- WebDescriptionAttribute.cs
- ProcessHost.cs
- AsynchronousChannelMergeEnumerator.cs
- BindingExpressionBase.cs
- ToolboxDataAttribute.cs
- OleDbCommandBuilder.cs
- CodeRegionDirective.cs
- _IPv4Address.cs
- Exceptions.cs
- Registry.cs
- ServiceMetadataPublishingElement.cs
- DesignerVerbCollection.cs
- LiteralLink.cs
- Command.cs
- mediaeventshelper.cs
- VarInfo.cs
- UnaryNode.cs
- TemplateBindingExpression.cs
- XmlAnyElementAttribute.cs
- PriorityBindingExpression.cs
- DbParameterHelper.cs
- EntitySetBaseCollection.cs
- UriTemplateClientFormatter.cs
- SQLDouble.cs
- Animatable.cs
- FormsAuthenticationEventArgs.cs
- Classification.cs
- TextFormatterImp.cs
- FilterQuery.cs
- Rectangle.cs
- Html32TextWriter.cs
- Action.cs
- VersionValidator.cs
- PenCursorManager.cs
- SQLSingle.cs
- SizeAnimationBase.cs
- UnsafeNativeMethods.cs
- LineSegment.cs
- sqlnorm.cs
- SelectedDatesCollection.cs
- ArrayWithOffset.cs
- XmlAttributeAttribute.cs
- DocumentXmlWriter.cs
- WebPartConnectionsConnectVerb.cs
- WorkflowDebuggerSteppingAttribute.cs
- LocalizableResourceBuilder.cs
- MostlySingletonList.cs
- GrabHandleGlyph.cs
- PrintPreviewGraphics.cs
- DBConcurrencyException.cs
- ListViewInsertionMark.cs
- IndentedWriter.cs
- TypeSystem.cs
- CodeBlockBuilder.cs
- MissingMemberException.cs
- RepeaterItemCollection.cs
- NumericUpDownAcceleration.cs
- XamlReader.cs
- SqlReferenceCollection.cs
- IsolatedStorageFile.cs
- OpenFileDialog.cs
- DoubleCollectionValueSerializer.cs
- SiteMapNodeCollection.cs
- Imaging.cs
- Column.cs
- SQLInt32.cs
- MenuStrip.cs
- Preprocessor.cs
- Utils.cs
- CompressionTransform.cs
- HttpListenerRequestUriBuilder.cs
- XmlDataDocument.cs
- StorageBasedPackageProperties.cs
- FileDialog_Vista.cs
- DataGridViewCellPaintingEventArgs.cs
- CompressEmulationStream.cs
- BaseParser.cs
- HttpAsyncResult.cs
- DoubleAnimationClockResource.cs
- ADRoleFactoryConfiguration.cs
- _SSPISessionCache.cs
- CorrelationService.cs
- DoubleLinkList.cs
- DoubleCollectionConverter.cs
- regiisutil.cs
- PresentationUIStyleResources.cs
- Evaluator.cs
- TypeGeneratedEventArgs.cs
- MediaEntryAttribute.cs
- SymbolEqualComparer.cs
- SmiContextFactory.cs
- BevelBitmapEffect.cs
- WorkflowElementDialog.cs
- UrlAuthFailedErrorFormatter.cs
- AgileSafeNativeMemoryHandle.cs