Ps: it's 60 minutes left
CodePudding user response:
This several days also find the data offline speech synthesis only Android and iOS xunfei have but it's too expensive for internal use so it still consider freeDeployment is in the embedded Linux==brain kuo pain now anyway
CodePudding user response:
Name was too bad no one came to
CodePudding user response:
Novice no one to answer ahCodePudding user response:
Jacob. Jar (only applicable Windows)1, and to Jacob. DLL file, copied to the Windows \ system32 directory, (note: I use this method cannot run)
2, and to Jacob. DLL in the Java \ jdkXXXX \ jre \ bin directory. The Jacob. The jar into the Java \ jdk1.5.0 _0 \ jre \ lib \ ext directory. You can run normally,
Public static void main (String [] args) {
ActiveXComponent SAP=new ActiveXComponent (" Sapi. SpVoice ");
Try {
//the volume 0-100
SAP. SetProperty (" Volume ", the new Variant (100));
//voice reading speed - 10 to + 10
SAP. SetProperty (" Rate ", the new Variant (2));
//get execution object
Dispatch sapo=SAP. GetObject ();
//perform reading
Dispatch. Call (sapo, "Speak," the new Variant (" test "));
//close the execution object
Sapo. SafeRelease ();
} the catch (Exception e) {
e.printStackTrace();
} the finally {
//close the application connection
SAP. SafeRelease ();
}
}
CodePudding user response:
I have a train of thought is voice recognition into the existing text, and then call reading baidu or GoogleI don't know the feasibility of high is not high
CodePudding user response:
VBS scriptCodePudding user response:
CreateObject (" SAPI. SpVoice "). The Speak "reading, read aloud, how are you, finished reading!"CodePudding user response:
My train of thought and the 4th floor, window used to own speech synthesis module, but this module requires the support of the operating system level test, at that time Windows 7 failed, win10 succeeded, reason is that my Windows 7 does not have the function of speech recognition,