Commit 351b8f29 authored by 周亚武's avatar 周亚武

语音合成规则修改

parent 949790bf
...@@ -23,7 +23,8 @@ public class SpliceMp3Util { ...@@ -23,7 +23,8 @@ public class SpliceMp3Util {
public static String fenLiData(String path,String lujing) throws IOException { public static String fenLiData(String path,String lujing) throws IOException {
ClassLoader classLoader = SpliceMp3Util.class.getClassLoader(); ClassLoader classLoader = SpliceMp3Util.class.getClassLoader();
InputStream inputStream = classLoader.getResourceAsStream(path); InputStream inputStream = classLoader.getResourceAsStream(path);
File file = new File(lujing+"tmp.mp3"); String fileName = path.substring(path.lastIndexOf("/")+1);
File file = new File(lujing+fileName);
//转换 //转换
FileUtils.copyInputStreamToFile(inputStream, file); FileUtils.copyInputStreamToFile(inputStream, file);
File file1 = new File(file.getAbsolutePath() + "01");// 分离ID3V2后的文件,这是个中间文件,最后要被删除 File file1 = new File(file.getAbsolutePath() + "01");// 分离ID3V2后的文件,这是个中间文件,最后要被删除
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment