How to use voices in browser?

Hi, I’m not sure if this is the right place to ask this kind of question:

Suppose we have a well-trained voice and want to provide this voice as default voice for our users, can we actually “install” or “load” the voice as SpeechSynthesisVoice in Browsers that do support speech synthesis?

If not, what would be the preferred or best-practice way to do? Setup an external service, synthesize on demand and send back the generated audio?

Currently, your own voice can not be used on your computer as one of its speech synthesis voice. Some companies which develop speech synthesis voices can do this kind of job for you.

You can take a look at this text-to-speech software at: https://www.panopreter.com/en/products/panopreter/index.php

It runs locally on your computer, your data will never be sent to online remote server for generating audio files.