Help with speak()

Hello everyone,
I have an issue with the speak() function. When I call it twice in succession, only the second phrase is spoken. For example:
void main(){
speak("this is a test 1");
speak("this is a test 2");
}
Only the second speak() call is read. I'm using the latest version of NVDA.
P.S. Is there an alternative that works better?

You need to use non interrupt speech:

void main() {
	speak("First");
	speak("Second", false);
}

You also can use tts_default_interrupt=false;

thank you for all. it's works!