To use SAPI, first add the reference DotNetSpeech, please download it yourself.
Initialize the object, SpVoice voice = new ();
When reading aloud, use
(string,);
Pause, use
();
Continue reading just now from the pause, use
();
Most of the information is not clearly written, and it is rarely found online, so it is used here.
(, );
This will fully realize the functions of "reading aloud", "pause", "continue" and "stop".
Initialize the object, SpVoice voice = new ();
When reading aloud, use
(string,);
Pause, use
();
Continue reading just now from the pause, use
();
Most of the information is not clearly written, and it is rarely found online, so it is used here.
(, );
This will fully realize the functions of "reading aloud", "pause", "continue" and "stop".