|
|
@@ -52,9 +52,10 @@ public class TtsHelper {
|
|
52
|
52
|
break;
|
|
53
|
53
|
}
|
|
54
|
54
|
}
|
|
55
|
|
-
|
|
|
55
|
+ public static final String curlUrl= SpringHelper.getRequiredProperty("spring.curlUrl");;
|
|
56
|
56
|
public static String TextToSpeech(String word) {
|
|
57
|
|
- return TextToSpeech(word, "");
|
|
|
57
|
+ String path=curlUrl+TextToSpeech(word, "");
|
|
|
58
|
+ return path;
|
|
58
|
59
|
}
|
|
59
|
60
|
|
|
60
|
61
|
public static String TextToSpeech(String word, String filename) {
|
|
|
@@ -71,7 +72,7 @@ public class TtsHelper {
|
|
71
|
72
|
|
|
72
|
73
|
transfer(word,filePath);
|
|
73
|
74
|
|
|
74
|
|
- return filePath;
|
|
|
75
|
+ return parentPath+ "/" + filename + ".wav";
|
|
75
|
76
|
}
|
|
76
|
77
|
|
|
77
|
78
|
public static String TextToSpeechAgent(String word, String filename) {
|