/* this program tests the simplest elements of a text-to-speech capability
   using eSpeak
*/

/* Compile this program with the line
    gcc -L. -leSpeakPackage -o eSpeakTest eSpeakTest.c 
 */

#include "eSpeakPackage.h"
#include <stdio.h>

int main ()
{
  printf ("test of the eSpeak package\n");

  /* set up environment */
  eSpeakConnect ();
 
  /* speak three lines */
  printf ("speaking introduction (randonly male or female)\n");
  eSpeakTalk ("the test begins\nwith a first and second line");
  eSpeakSetGender ("female");
  printf ("speaking second line of text (female)\n");
  eSpeakTalk ("what do you call the first automobile in a parade?");
  eSpeakSetGender ("male");
  printf ("speaking third line of text (male)\n");
  eSpeakTalk ("(car parade)");

  /* finish up */
  eSpeakDisconnect ();

  printf ("test completed\n");

  return 0;
}
