Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. /******************************************************************************
  2. * FrontEnd.h *
  3. *------------*
  4. * This module is the declaration of class CTrueTalk
  5. *------------------------------------------------------------------------------
  6. * Copyright (C) 1998 Entropic, Inc
  7. * Copyright (C) 2000 Microsoft Corporation Date: 02/29/00
  8. * All Rights Reserved
  9. *
  10. ********************************************************************* PACOG ***/
  11. #ifndef __FRONTEND_H_
  12. #define __FRONTEND_H_
  13. #include <stdio.h>
  14. struct Phone;
  15. class CFrontEnd
  16. {
  17. public:
  18. virtual ~CFrontEnd() {};
  19. virtual int Init (const char* pszDictPath, const char* pszUserDict = 0) = 0;
  20. virtual void SetSpeakerParams (int iBaseLine, int iRefLine, int iTopLine, bool fIsBrEng) = 0;
  21. virtual void Lock() = 0;
  22. virtual void Unlock() = 0;
  23. virtual char* Process (char* pszTextInput, Phone** ppPhones, int* piNumPhones, float** ppfF0, int* piNumF0) = 0;
  24. virtual char* Pronunciation (char* pszTextInput, FILE* fp) = 0;
  25. virtual void SetDebugLevel (int iModule, int iDebugLevel) = 0;
  26. virtual void SetRate (int iRate) = 0;
  27. static CFrontEnd* ClassFactory();
  28. static void InitThreading();
  29. static void ReleaseThreading();
  30. };
  31. #endif