Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tts-client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周亚武
tts-client
Commits
351b8f29
Commit
351b8f29
authored
Aug 22, 2024
by
周亚武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语音合成规则修改
parent
949790bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/main/java/com/mortals/xhx/tts/utils/SpliceMp3Util.java
src/main/java/com/mortals/xhx/tts/utils/SpliceMp3Util.java
+2
-1
No files found.
src/main/java/com/mortals/xhx/tts/utils/SpliceMp3Util.java
View file @
351b8f29
...
@@ -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后的文件,这是个中间文件,最后要被删除
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment