Plays a string using the default Text-To-Speech engine and default voice selection.

Namespace:  Inkostar
Assembly:  DiaSpringWrapper (in DiaSpringWrapper.dll)
Version: 0.0.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void PlaySpeech(
	string ChannelName,
	string SpeechText,
	DiaSpringWrapperCommon..::.SyncMode Mode,
	bool InterruptOnDigit
)
Public Sub PlaySpeech ( _
	ChannelName As String, _
	SpeechText As String, _
	Mode As DiaSpringWrapperCommon..::.SyncMode, _
	InterruptOnDigit As Boolean _
)
public:
void PlaySpeech(
	String^ ChannelName, 
	String^ SpeechText, 
	DiaSpringWrapperCommon..::.SyncMode Mode, 
	bool InterruptOnDigit
)

Parameters

ChannelName
String
The Channel name on the Dialogic board on which to start playback.
SpeechText
String
The string to speak.
Mode
DiaSpringWrapperCommon..::.SyncMode
A constant enumerator to indicate whether the playback should be done synchronously or asynchronously. When play is asynchronous, any code following this function will execute immediately while the playback is performed as a background task.
InterruptOnDigit
Boolean
A boolean value to indicate whether or not the playback should be interrupted when any digit is pressed.

Remarks

This function will fail if invoked before the [device].Open() function.
The defaut format of the speech file created is of type WAV with encoding WAV_MICROSOFT at 11 Khz.

Examples

Play a greeting on the first channel asynchronously. Playback will stop when a digit is pressed.
C#: objDevice.PlaySpeech("dxxxB1C1", "Thank you for calling Inkostar, please leave a Message by pressing 1 or else please hold.", Inkostar.DiaSpringWrapperCommon.SyncMode.Asynchronous, true);
VB.NET: objDevice.PlaySpeech("dxxxB1C1", "Thank you for calling Inkostar, please leave a Message by pressing 1 or else please hold.", Inkostar.DiaSpringWrapperCommon.SyncMode.Asynchronous, True)

See Also

Inkostar Namespace