1 /* 2 * Currah uSpeech interface for the ZX Spectrum library 3 * 4 * Stefano Bodrato - 3/7/2006 5 * 6 * $Id: zxcurrah.h,v 1.2 2010-09-19 00:24:08 dom Exp $ 7 */ 8 9 10 #ifndef __ZXCURRAH_H__ 11 #define __ZXCURRAH_H__ 12 13 #include <sys/compiler.h> 14 #include <sys/types.h> 15 #include <fcntl.h> 16 17 18 /* CURRAH uSpeech interface */ 19 20 /* TRUE if the interface is present */ 21 extern int __LIB__ currah_detect(); 22 23 /* Talk using the high level BASIC interface */ 24 extern void __LIB__ currah_speech(char *text); 25 26 /* Talk using the allophone codes */ 27 extern void __LIB__ currah_direct(char *allophones); 28 29 30 /* Message terminator */ 31 32 #define PH_END 0 33 34 35 /* Pitch (to be ORed with the following codes to increase intonation */ 36 37 #define PH_HIGH 64 38 #define PH_PITCH 64 39 #define PH_UPPER 64 40 41 42 /* Allophone codes */ 43 44 #define PH_A 24 45 #define PH_B 28 46 #define PH_C 8 47 #define PH_D 21 48 #define PH_E 7 49 #define PH_F 40 50 #define PH_G 36 51 #define PH_H 27 52 #define PH_I 12 53 #define PH_J 10 54 #define PH_K 42 55 #define PH_L 45 56 #define PH_M 16 57 #define PH_N 11 58 #define PH_O 23 59 #define PH_P 9 60 #define PH_R 39 61 #define PH_S 55 62 #define PH_T 17 63 #define PH_U 15 64 #define PH_V 35 65 #define PH_W 46 66 #define PH_Y 49 67 #define PH_Z 43 68 69 #define PH_AY 20 70 #define PH_AA 20 71 #define PH_EE 19 72 #define PH_II 6 73 #define PH_OO 53 74 #define PH_EAU 53 75 #define PH_BB 63 76 #define PH_DD 33 77 #define PH_GG 61 78 #define PH_GGG 36 79 #define PH_HH 57 80 #define PH_LL 62 81 #define PH_NN 56 82 #define PH_RR 14 83 #define PH_TT 13 84 #define PH_YY 25 85 #define PH_AR 59 86 #define PH_AER 47 87 #define PH_CH 50 88 #define PH_CK 41 89 #define PH_EAR 60 90 #define PH_EH 26 91 #define PH_ER 51 92 #define PH_ERR 52 93 #define PH_NG 44 94 #define PH_OR 58 95 #define PH_OU 22 96 #define PH_OUU 31 97 #define PH_OW 32 98 #define PH_OY 5 99 #define PH_SH 37 100 #define PH_TH 29 101 #define PH_DTH 18 102 #define PH_UH 30 103 #define PH_WH 48 104 #define PH_ZH 33 105 106 #define PH_ 1 107 #define PH__ 3 108 #define PH___ 4 109 110 #endif /* __ZXCURRAH_H__ */ 111