SoFunction
Updated on 2025-03-06

Summary of SAPI usage in c#—How to use SpVoice

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".