Click or drag to resize
DiaSpringWrapperPlaySpeech Method (String, String, DiaSpringWrapperCommonSyncMode, Boolean)
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
public void PlaySpeech(
	string ChannelName,
	string SpeechText,
	DiaSpringWrapperCommonSyncMode Mode,
	bool InterruptOnDigit
)

Parameters

ChannelName
Type: SystemString
The Channel name on the Dialogic board on which to start playback.
SpeechText
Type: SystemString
The string to speak.
Mode
Type: InkostarDiaSpringWrapperCommonSyncMode
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
Type: SystemBoolean
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