1 | static LS flite_listVoices() { |
2 | if (!flite_installed()) ret emptyList(); |
3 | new TreeSet<S> set; |
4 | set.addAll(splitAtSpace(getColonProperty("Voices available", lines(backtick("flite -lv"))))); |
5 | new Matches m; |
6 | for (File dir : flite_voiceDirs()) |
7 | for (S s : listFileNames(dir)) |
8 | if (endsWith(s, ".flitevox", m)) |
9 | set.add(m.rest()); |
10 | ret asList(set); |
11 | } |
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: | 316 / 369 |
Version history: | 3 change(s) |
Referenced in: | [show references] |