mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-14 18:02:43 +01:00
DroidFish: Improved Spanish text to speech.
This commit is contained in:
@@ -279,6 +279,8 @@ public class Speech {
|
||||
}
|
||||
|
||||
private static String fromToString(String from, Language lang) {
|
||||
if ("b4".equals(from)) // Some TTS systems convert "b4" to "before"
|
||||
from = "b 4";
|
||||
switch (lang) {
|
||||
case EN:
|
||||
if ("a".equals(from))
|
||||
@@ -295,7 +297,19 @@ public class Speech {
|
||||
}
|
||||
|
||||
private static String toToString(String to, Language lang) {
|
||||
if ("b4".equals(to)) // Some TTS systems convert "b4" to "before"
|
||||
to = "b 4";
|
||||
switch (lang) {
|
||||
case EN:
|
||||
return to;
|
||||
case DE:
|
||||
return to;
|
||||
case ES:
|
||||
return to;
|
||||
case NONE:
|
||||
return "";
|
||||
}
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
|
||||
private static String captureToString(String to, Language lang) {
|
||||
|
||||
Reference in New Issue
Block a user