Thank you for your answer, but I think I wasn't specific enough in the question.
I'm writing a program that reads multiple texts, with each text in a different string variable.
I want to put a waiting time between each reading, that's why I use several strings, each containing a text and I call the reading of these texts one after the other. It works very well, the readings follow each other without problem.
I still want to be able to stop reading at any time, which is why I need to know if a text is being read or not.
What I noticed is that the program creates as many different (pVoice) IDs as there are different texts, so I don't know which pVoice ID to release on!
Hello Caronte3D,
I looked at the link you provided, unfortunately, I do not have sufficient knowledge to implement this in PureBasic.
Thank you all the same for answering me.
In fact, the goal of my program which is a Quiz program:
1) View and read the question
2) Display and read 4 answer suggestions
3) Wait for a few seconds, 5, or 10 or 15 while playing a waiting ticking sound
4) View and read the response
5) Move on to the next question, etc.
Question which has nothing to do with it.
When I access the PureBasic site, it takes much longer than before, is this normal or is it coming from my computer? It's still the same computer and I don't have any slowness problems on other sites.
jak64 wrote:
Question which has nothing to do with it.
When I access the PureBasic site, it takes much longer than before, is this normal or is it coming from my computer? It's still the same computer and I don't have any slowness problems on other sites.
For a few days now, the site has been experiencing slowness problems. There's a strong suspicion that AI bots are browsing the site (up to over 4,000 guests some days). Although it seemed to have calmed down yesterday, today it's slow again.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
jak64 wrote: Wed Feb 19, 2025 10:31 am
In fact, the goal of my program which is a Quiz program...
For that, you don't need more than you already have.
I don't know if not understand you but...
With the line of code I tell you on my first post the execution wait each time until the voice finished.
Simply when your text where wrote to the screen, use the Lire_Texte() to read all in order (one after other) and put a delay after the last one.
YES, it works in continuous reading but I WANT TO BE ABLE, by pressing the ESC key, TO STOP reading at ANY TIME, whether it is reading the question or proposition 1, 2, whatever, without having to wait for the program to have read everything, that's why I read asynchronously
Not sure if i understand but i think the problem is that you create a voice for every line of text. Try creating just one ISpVoice instance and use it to read each line, you can pause and resume that voice and will effect whatever is reading.
Hello everyone,
Thank you for taking the time to respond to me. As I am French, I use Google translate and, undoubtedly, I cannot express what I want.
By testing the great program provided by Jens-Arne https://www.purebasic.fr/english/viewto ... i&start=15, page 2, I will be able to do what I want. I will post an example when I have adapted his program, it will be clearer to explain to you, I think.