Download Jar. Uses 0K of libraries. Click here for Pure Java version (1029L/7K).
1 | !7 |
2 | |
3 | lib 1400106 |
4 | lib 1400107 |
5 | lib 1400108 |
6 | lib 1400110 |
7 | lib 1400111 |
8 | |
9 | import com.sun.speech.freetts.Voice; |
10 | import com.sun.speech.freetts.VoiceManager; |
11 | |
12 | p { |
13 | //System.setProperty("freetts.voices", "de.dfki.lt.freetts.en.us.MbrolaVoiceDirectory"); |
14 | |
15 | // Most important part! |
16 | System.setProperty("mbrola.base", f2s(userDir("dev/mbrola"))); |
17 | VoiceManager freettsVM = VoiceManager.getInstance(); |
18 | |
19 | for (S voice : ll("us1", "us2", "us3")) { |
20 | print("Trying voice " + voice); |
21 | S words = "Hello there! Now M BROLA and Free T T S work together!"; |
22 | |
23 | Voice freettsVoice; |
24 | |
25 | // Simply change to MBROLA voice |
26 | freettsVoice = freettsVM.getVoice("mbrola_" + voice); |
27 | |
28 | // Allocate your chosen voice |
29 | freettsVoice.allocate(); |
30 | |
31 | // Make her speak! |
32 | freettsVoice.speak(words); |
33 | |
34 | freettsVoice.deallocate(); |
35 | } |
36 | } |
Began life as a copy of #1017444
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017445 |
Snippet name: | Try MBrola "us1/us2/us3" voices with FreeTTS v2 [OK if mbrola + voices are in ~/dev/mbrola] |
Eternal ID of this version: | #1017445/14 |
Text MD5: | af5da421f5a3c739fa8dc37c41603c23 |
Transpilation MD5: | 0542c289de60e6905c315badfde29f5b |
Author: | stefan |
Category: | javax / speech |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-22 11:36:06 |
Source code size: | 876 bytes / 36 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 520 / 1242 |
Version history: | 13 change(s) |
Referenced in: | [show references] |