문제

I am creating a tts program. I am using free tts. The program is fine, running. I have assigned two buttons(start,stop) and a text box. The start button reads the text from the text box and sent it to the free tts algorithm to convert to speech.

It all works fine but the problem is that once I have click on start, the program starts reading and it becomes unresponsive until reading is completed, I cannot even click the stop button.

I tried to solve this problem by sending word by word to the tts algorithm but the the speech is really unbearable

How do I solve this problem???

도움이 되었습니까?

해결책

The problem can be corrected using SwingWorker. I is a really effective methood.

Detailed help is available here and here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top