flite_speech.txt 550 B

123456789101112131415161718192021222324252627282930313233
  1. //include at header of snd_systems.cpp
  2. extern "C"
  3. {
  4. #include "flite.h"
  5. cst_voice *register_cmu_us_rms();
  6. cst_voice *voice;
  7. };
  8. //In the snd_systems init()
  9. flite_init()
  10. voice = register_cmu_us_rms();
  11. //to play audio:
  12. flite_text_to_speech("Baboo wizard.", voice, "play");
  13. //ENVIRONMENT
  14. // Library dir
  15. C:\sdks\speech\flite-1.4-release\lib
  16. // include dir
  17. C:\sdks\speech\flite-1.4-release\include
  18. // additional libraries
  19. fliteDll.lib
  20. cmu_us_rms.lib
  21. //copy these dlls to your game folder
  22. cmu_us_rms.dll
  23. fliteDll.dll