/* test of basic eSpeak capabilities 
 *
 * This program and all MyroC software is licensed under the Creative Commons
 * Attribution-Noncommercial-Share Alike 3.0 United States License.
 * Details may be found at http://creativecommons.org/licenses/by-nc-sa/3.0/us/
 */

#include <stdio.h>      // needed for printf
#include <unistd.h>     // needed for sleep
#include "eSpeakPackage.h"

int main ()
{
  printf ("program to test eSpeak capabilities\n");

  eSpeakConnect ();

  sleep (1);
  printf ("connected to eSpeak\n");

  printf ("starting first line\n");
  eSpeakTalk ("Listen to the poem called the Concord Hymn");
  eSpeakTalk ("By the great bridge that arched the flood");
  //sleep (2);


  eSpeakSetGender ("male");
  printf ("starting second line\n");
  eSpeakTalk ("Their flags to April's breeze unfirled");
  //sleep (2);

  eSpeakSetGender ("female");
  printf ("starting third line\n");
  eSpeakTalk ("Here once the embattled farmers stood");
  //sleep (2);

  eSpeakSetGender ("male");
  printf ("starting last line\n");
  eSpeakTalk ("And fired the shot heard round the world");
  //sleep (2);

  printf ("starting to disconnect from eSpeak\n");
  eSpeakDisconnect ();
  printf ("test completed\n");
  return 0;
}
