Documentation
TTS_GenerateFile
boolean TTS_GenerateFile (int $InstanceID, string $Text, string $Filename, int $Format)
Parameters
InstanceID | ID of the device to be switched |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Text | Text to be said |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Filename | Filename/-path in the system |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format |
|
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
Generated on the instance with ID InstanceID a sound file in WAV format in the file Filename. The format parameter determines the quality of the wav file.
Warning: % was not found in [...] on line …
If the error message appears, it indicates an access problem. Likely the file to be written is locked by another process.
Furthermore, it is not possible to write on NetworkPath.
Example
TTS_GenerateFile(44007, "Hello World", "C:/HelloWorld.WAV", 19);