Sample Programs (Windows only)

Sample programs include:

dtsample | This is an example of a basic Windowed editor with integrated text to speech.
say | This is an example of a command-line program using DECtalk Software.
dtmemory | This is an example of synthesis into memory buffers.
ttstst | This is a sample program to demonstrate the Microsoft speech API interfaces supported by the DECtalk Software speech engine.

The sample programs are furnished as examples of simple Windows applications that can be built using the DECtalk Software API. The source code for the sample programs are placed in the root directory, \DECTALK\SAMPLE\, during the installation. These programs include the API definition file ttsapi.h and are linked with dectalk.lib.

Using the DECtalk Software Development Kit (the Win32 SDK must be installed), bring up a Windows console window.

Set your default directory to the

\DECTALK\SAMPLE\DTSAMPLE directory.

Enter

nmake

This procedure produces the dtsample.exe executable file. This file can be executed at the Windows console window or the File Manager.

The dtsample program demonstrates most of the DECtalk Software API calls. Any application can call any of the API calls by including the ttsapi header file (

ttsapi.h) and linking with the DECtalk Software library (dectalk.lib) as long as the associated dll (dectalk.dll) is present. The dectalk.dll must be installed and the dictionary dectalk.dic must be in the dictionary path in the registry or in the local directory.