Hi @marc-antoine yonga ,
If it is not asynchronous when setting Async = true, then it will be blocked.
For how to use asynchronous methods, you can refer to:
https://learn.microsoft.com/en-us/aspnet/web-forms/overview/performance-and-caching/using-asynchronous-methods-in-aspnet-45
Besides, the ASP.NET application can’t have the sufficient permission to access Speech Synthesis.
They are only useful on the OS which is hosting the application. In Request/ Response architecture(as web is) you can only write something to the browser and nothing much.
While in testing, the server and client are the same, if you got this to work and deployed it as a site, the C# code, running on the server, would cause the server to speak,and not the client machine. Please note this.
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.