#define PITCHrise 2 | #define PITCHrise 2 | ||||
#define PITCHfrise 4 // and 3 must be for the variant preceded by 'r' | #define PITCHfrise 4 // and 3 must be for the variant preceded by 'r' | ||||
#define PITCHfrise2 6 // and 5 must be the 'r' variant | #define PITCHfrise2 6 // and 5 must be the 'r' variant | ||||
#define PITCHrisefall 8 | |||||
unsigned char env_fall[128] = { | unsigned char env_fall[128] = { | ||||
0xff, 0xfd, 0xfa, 0xf8, 0xf6, 0xf4, 0xf2, 0xf0, 0xee, 0xec, 0xea, 0xe8, 0xe6, 0xe4, 0xe2, 0xe0, | 0xff, 0xfd, 0xfa, 0xf8, 0xf6, 0xf4, 0xf2, 0xf0, 0xee, 0xec, 0xea, 0xe8, 0xe6, 0xe4, 0xe2, 0xe0, |
#define L_OPEN_E 62 // U+25B | #define L_OPEN_E 62 // U+25B | ||||
#define L_GAMMA 63 // U+3B3 | #define L_GAMMA 63 // U+3B3 | ||||
#define L_IOTA 64 // U+3B9 | #define L_IOTA 64 // U+3B9 | ||||
#define L_OE 65 // U+153 | |||||
#define L_OMEGA 66 // U+3C9 | |||||
#define L_PHI 67 // U+3C6 | #define L_PHI 67 // U+3C6 | ||||
#define L_ESH 68 // U+283 | #define L_ESH 68 // U+283 |
static int frame_width; | static int frame_width; | ||||
int pk_select; | int pk_select; | ||||
#define DRAWPEAKWIDTH 2000 | |||||
#define PEAKSHAPEW 256 | |||||
static int default_freq[N_PEAKS] = | static int default_freq[N_PEAKS] = | ||||
{ 200, 500, 1200, 3000, 3500, 4000, 6900, 7800, 9000 }; | { 200, 500, 1200, 3000, 3500, 4000, 6900, 7800, 9000 }; | ||||
static int default_width[N_PEAKS] = | static int default_width[N_PEAKS] = |
#include "synthesize.h" | #include "synthesize.h" | ||||
#include "translate.h" | #include "translate.h" | ||||
#define L_qa 0x716100 | |||||
#define L_grc 0x677263 // grc Ancient Greek | #define L_grc 0x677263 // grc Ancient Greek | ||||
#define L_jbo 0x6a626f // jbo Lojban | #define L_jbo 0x6a626f // jbo Lojban | ||||
#define L_mni 0x6d6e69 // mni Manipuri | #define L_mni 0x6d6e69 // mni Manipuri | ||||
#define L_pap 0x706170 // pap Papiamento] | #define L_pap 0x706170 // pap Papiamento] | ||||
#define L_qvi 0x717669 // qvi Kichwa | |||||
#define L_shs 0x736873 // shs Shuswap / Secwepemctsin | |||||
#define L_zhy 0x7a6879 // zhy | #define L_zhy 0x7a6879 // zhy | ||||
// start of unicode pages for character sets | // start of unicode pages for character sets |
#include "voice.h" | #include "voice.h" | ||||
#include "translate.h" | #include "translate.h" | ||||
#define WORD_STRESS_CHAR '*' | |||||
Translator *translator = NULL; // the main translator | Translator *translator = NULL; // the main translator | ||||
Translator *translator2 = NULL; // secondary translator for certain words | Translator *translator2 = NULL; // secondary translator for certain words | ||||
static char translator2_language[20] = { 0 }; | static char translator2_language[20] = { 0 }; |
static t_wave_callback *my_callback_is_output_enabled = NULL; | static t_wave_callback *my_callback_is_output_enabled = NULL; | ||||
#define N_WAV_BUF 10 | |||||
#define MAX_SAMPLE_RATE 22050 | #define MAX_SAMPLE_RATE 22050 | ||||
#define FRAMES_PER_BUFFER 512 | #define FRAMES_PER_BUFFER 512 | ||||
#define BUFFER_LENGTH (MAX_SAMPLE_RATE*2*sizeof(uint16_t)) | #define BUFFER_LENGTH (MAX_SAMPLE_RATE*2*sizeof(uint16_t)) |
#define TLENGTH 4410 | #define TLENGTH 4410 | ||||
#define PREBUF 2200 | #define PREBUF 2200 | ||||
#define MINREQ 880 | #define MINREQ 880 | ||||
#define FRAGSIZE 0 | |||||
#ifdef USE_PORTAUDIO | #ifdef USE_PORTAUDIO | ||||
// rename functions to be wrapped | // rename functions to be wrapped |
#endif | #endif | ||||
#endif | #endif | ||||
#define N_SINTAB 2048 | |||||
#include "sintab.h" | #include "sintab.h" | ||||
#define PI 3.1415927 | #define PI 3.1415927 | ||||
int embedded_default[N_EMBEDDED_VALUES] = { 0, 50, 175, 100, 50, 0, 0, 0, 175, 0, 0, 0, 0, 0, 0 }; | int embedded_default[N_EMBEDDED_VALUES] = { 0, 50, 175, 100, 50, 0, 0, 0, 175, 0, 0, 0, 0, 0, 0 }; | ||||
static int embedded_max[N_EMBEDDED_VALUES] = { 0, 0x7fff, 750, 300, 99, 99, 99, 0, 750, 0, 0, 0, 0, 4, 0 }; | static int embedded_max[N_EMBEDDED_VALUES] = { 0, 0x7fff, 750, 300, 99, 99, 99, 0, 750, 0, 0, 0, 0, 4, 0 }; | ||||
#define N_CALLBACK_IX N_WAV_BUF-2 // adjust this delay to match display with the currently spoken word | |||||
int current_source_index = 0; | int current_source_index = 0; | ||||
extern FILE *f_wave; | extern FILE *f_wave; |