static LS flite_listVoices() { if (!flite_installed()) ret emptyList(); new TreeSet<S> set; set.addAll(splitAtSpace(getColonProperty("Voices available", lines(backtick("flite -lv"))))); new Matches m; for (File dir : flite_voiceDirs()) for (S s : listFileNames(dir)) if (endsWith(s, ".flitevox", m)) set.add(m.rest()); ret asList(set); }
Began life as a copy of #1020529
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020530 |
| Snippet name: | flite_listVoices |
| Eternal ID of this version: | #1020530/4 |
| Text MD5: | 9ae0e2823301bb4ea0b777f9340f0a5e |
| Author: | stefan |
| Category: | javax / speech |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-25 23:31:52 |
| Source code size: | 377 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 589 / 642 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020534 - flite_findVoice |