I am trying to pass some strings trough espeak and it reads them but I get “segmentation fault”
问题 This is my code. I want to get 5 strings from the user and espeak reads each of them when user interred it. But I get segmentation fault(core dumped) message. #include <string.h> #include <malloc.h> #include <espeak/speak_lib.h> int test() { espeak_POSITION_TYPE position_type; espeak_AUDIO_OUTPUT output; char *path=NULL; int Buflength = 500, Options=0; void* user_data; t_espeak_callback *SynthCallback; espeak_PARAMETER Parm; char Voice[] = {"English"}; int i=0; char text[1000]; unsigned int