Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Microsoft Text to Speech
#3
The answer, of course, is "yes". Most questions of "possible" on anything will be "yes". But, the real question is whether it would behave the way you want it to behave.

Bad plan A: doing the conversion on the server (not a good plan for server loading)
1. IW can accept your text and pass it to the server.
2. Your Delphi server code can take the text and call your Delphi code to create audio output.
3. IW can send the audio file/stream to the browser, where it can be played.

However, with this kind of cycle you will likely have delays and loading issues (particularly if a lot of users are trying to do it at once).

Worse plan B: There have also been mechanisms in browsers that allow you to run "local" apps/code from the browsers. That is, you make the browser call your delphi code, running on the user's machine, and convert text to audio. Those should be used with care and you should assume that the browser will eventually break it with security rules (it is inherently not secure). Worse, every browser has a different mechanism to do that. The good news is that this plan results in very little load on the server.

So, the question of "possible" is "yes". However, I'm guessing there is some other way (using built in accessibility resources rather than Delphi code) to convert text to audio. But, that's just a guess.

Dan
Reply


Messages In This Thread
Microsoft Text to Speech - by wmyhal - 01-13-2021, 08:09 PM
RE: Microsoft Text to Speech - by rlebeau - 01-13-2021, 09:22 PM
RE: Microsoft Text to Speech - by DanBarclay - 01-14-2021, 03:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)