Creates a WAV format speech file from a string using the default Text-To-Speech engine and default voice selection then saves it to the filesystem.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public void SaveSpeechToFile(
	string SpeechFileName,
	string SpeechText
)
Public Sub SaveSpeechToFile ( _
	SpeechFileName As String, _
	SpeechText As String _
)
public:
void SaveSpeechToFile(
	String^ SpeechFileName, 
	String^ SpeechText
)

Parameters

SpeechFileName
String
The full path and name where the speech file will be saved to.
SpeechText
String
The string to speak and save.

Remarks

This function will fail if invoked before the [device].Open() function.

Examples

Create a greeting from a string using the default Text-To-Speech engine.
The TTS voice used is the system's voice set as default. C#: objDevice.SaveSpeechToFile(@"c:\greeting.wav", "Thank you for calling Inkostar, please leave a Message by pressing 1 or else please hold.");
VB.NET: objDevice.SaveSpeechToFile("c:\greeting.wav", "Thank you for calling Inkostar, please leave a Message by pressing 1 or else please hold.")

See Also

Inkostar Namespace