Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SmartBox
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
苗权威
SmartBox
Commits
7f085a36
Commit
7f085a36
authored
Sep 30, 2020
by
苗权威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
09.30
parent
ee773023
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
389 additions
and
272 deletions
+389
-272
workspace.xml
.idea/workspace.xml
+223
-168
ApachHttpUtils.java
...n/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java
+4
-4
OkHttp3Utils.java
...ain/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java
+5
-0
DeployController.java
.../ai/qiwu/com/tts_service/controller/DeployController.java
+4
-7
TTSController.java
...ava/ai/qiwu/com/tts_service/controller/TTSController.java
+140
-72
GeneralMP3Data.java
...ain/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java
+2
-0
TTService.java
.../main/java/ai/qiwu/com/tts_service/service/TTService.java
+7
-20
TTServiceEdition2.java
...va/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
+4
-1
No files found.
.idea/workspace.xml
View file @
7f085a36
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"BookmarkManager"
>
<bookmark
url=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
line=
"268
7
"
/>
<bookmark
url=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
line=
"268
3
"
/>
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"63e156df-08bf-4b44-b5d3-f7e9200a2cef"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/filter/CorsFilter.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/filter/CorsFilter.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
...
...
@@ -47,32 +49,35 @@
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"450"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-463
"
>
<caret
line=
"
486"
column=
"17"
lean-forward=
"true"
selection-start-line=
"486"
selection-start-column=
"17"
selection-end-line=
"486"
selection-end-column=
"17
"
/>
<state
relative-caret-position=
"
1012
"
>
<caret
line=
"
83"
column=
"25"
selection-start-line=
"83"
selection-start-column=
"25"
selection-end-line=
"83"
selection-end-column=
"25
"
/>
<folding>
<element
signature=
"e#16644#16738#0"
/>
<element
signature=
"e#8067#8733#0"
/>
<element
signature=
"e#8735#11400#0"
/>
<element
signature=
"e#15432#15468#0"
/>
<element
signature=
"e#19187#19277#0"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
common/ApachHttpUtils
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
service/TTService
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-130
"
>
<caret
line=
"
489"
column=
"25"
selection-start-line=
"489"
selection-start-column=
"25"
selection-end-line=
"489"
selection-end-column=
"25
"
/>
<state
relative-caret-position=
"
2662
"
>
<caret
line=
"
153"
column=
"58"
selection-start-line=
"153"
selection-start-column=
"58"
selection-end-line=
"153"
selection-end-column=
"58
"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
service/TTService
.java"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
common/OkHttp3Utils
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
323
"
>
<caret
line=
"
2396"
column=
"40"
selection-start-line=
"2396"
selection-start-column=
"40"
selection-end-line=
"2396"
selection-end-column=
"40
"
/>
<state
relative-caret-position=
"
156
"
>
<caret
line=
"
437"
column=
"48"
selection-start-line=
"437"
selection-start-column=
"48"
selection-end-line=
"437"
selection-end-column=
"48
"
/>
</state>
</provider>
</entry>
...
...
@@ -80,23 +85,69 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
39
"
>
<caret
line=
"
208"
column=
"44"
selection-start-line=
"208"
selection-start-column=
"38"
selection-end-line=
"208"
selection-end-column=
"44
"
/>
<state
relative-caret-position=
"3
938
"
>
<caret
line=
"
191"
column=
"42"
selection-start-line=
"191"
selection-start-column=
"42"
selection-end-line=
"191"
selection-end-column=
"42
"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#16461#16462#0"
expanded=
"true"
/>
<element
signature=
"e#16495#16496#0"
expanded=
"true"
/>
<element
signature=
"e#16976#16977#0"
expanded=
"true"
/>
<element
signature=
"e#17019#17020#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5038"
>
<caret
line=
"275"
column=
"52"
selection-start-line=
"275"
selection-start-column=
"52"
selection-end-line=
"275"
selection-end-column=
"52"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5764"
>
<caret
line=
"326"
column=
"5"
selection-start-line=
"326"
selection-start-column=
"5"
selection-end-line=
"326"
selection-end-column=
"5"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/FileUtil.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3190"
>
<caret
line=
"164"
column=
"23"
selection-start-line=
"164"
selection-start-column=
"23"
selection-end-line=
"164"
selection-end-column=
"23"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"381"
>
<caret
line=
"409"
column=
"30"
lean-forward=
"true"
selection-start-line=
"409"
selection-start-column=
"30"
selection-end-line=
"409"
selection-end-column=
"30"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"66"
>
<caret
line=
"3"
column=
"38"
selection-start-line=
"3"
selection-start-column=
"38"
selection-end-line=
"3"
selection-end-column=
"38"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"506"
>
<caret
line=
"24"
column=
"31"
selection-start-line=
"24"
selection-start-column=
"31"
selection-end-line=
"24"
selection-end-column=
"31"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"616"
>
<caret
line=
"31"
selection-start-line=
"31"
selection-end-line=
"31"
/>
</state>
</provider>
</entry>
...
...
@@ -113,25 +164,11 @@
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
fitXY
</find>
<find>
HOST_UTL
</find>
<find>
JIAOYOUTIANXIA
</find>
<find>
xiaodu-speaker-api-test
</find>
<find>
xiaodu-speaker-api-pro
</find>
<find>
ASIDE_IMG
</find>
<find>
dealCollectOrUnCollectIntent
</find>
<find>
end recommend
</find>
<find>
end
</find>
<find>
audioEvent
</find>
<find>
botAccount2Project
</find>
<find>
updateTheUserHistory
</find>
<find>
accessToken
</find>
<find>
dealDefaultIntent
</find>
<find>
/api/upload/record/one_sen
</find>
<find>
usFile
</find>
<find>
indexOf
</find>
<find>
getOneSenAudioConfig
</find>
<find>
getOnline
</find>
<find>
backTrigger
</find>
<find>
ExecuteCommands
</find>
<find>
generalMP3
</find>
...
...
@@ -143,6 +180,20 @@
<find>
"
category
"
</find>
<find>
productName
</find>
<find>
userId
</find>
<find>
47250
</find>
<find>
32k
</find>
<find>
bitRate
</find>
<find>
record
</find>
<find>
48000
</find>
<find>
synSysImgTargetServerDownInThread
</find>
<find>
SERVER_NAME
</find>
<find>
targetDir
</find>
<find>
sourceServer
</find>
<find>
delRecordCallbackUrl
</find>
<find>
size
</find>
<find>
ttsRequest
</find>
<find>
getOnline
</find>
<find>
ONLINE_CACHE_URL
</find>
</findStrings>
<replaceStrings>
<replace>
!CollectionUtils.isEmpty
</replace>
...
...
@@ -161,8 +212,6 @@
<component
name=
"IdeDocumentHistory"
>
<option
name=
"CHANGED_PATHS"
>
<list>
<option
value=
"$PROJECT_DIR$/xiaoduhome/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/signIn.json"
/>
...
...
@@ -196,7 +245,6 @@
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiServiceRedis.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadPlotImgResponse.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/ProjectDetailData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java"
/>
...
...
@@ -208,10 +256,13 @@
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/filter/CorsFilter.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
/>
</list>
</option>
</component>
...
...
@@ -225,17 +276,7 @@
</component>
<component
name=
"MavenProjectNavigator"
>
<treeState>
<expand>
<path>
<item
name=
""
type=
"16c1761:MavenProjectsStructure$RootNode"
/>
<item
name=
"tts_service"
type=
"9519ce18:MavenProjectsStructure$ProjectNode"
/>
</path>
<path>
<item
name=
""
type=
"16c1761:MavenProjectsStructure$RootNode"
/>
<item
name=
"tts_service"
type=
"9519ce18:MavenProjectsStructure$ProjectNode"
/>
<item
name=
"Lifecycle"
type=
"58874e2:MavenProjectsStructure$LifecycleNode"
/>
</path>
</expand>
<expand
/>
<select
/>
</treeState>
</component>
...
...
@@ -243,8 +284,8 @@
<option
name=
"skipTests"
value=
"true"
/>
</component>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
334
"
/>
<option
name=
"y"
value=
"
77
"
/>
<option
name=
"x"
value=
"
95
"
/>
<option
name=
"y"
value=
"
56
"
/>
<option
name=
"width"
value=
"1395"
/>
<option
name=
"height"
value=
"1003"
/>
</component>
...
...
@@ -256,6 +297,7 @@
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
<panes>
<pane
id=
"PackagesPane"
/>
<pane
id=
"ProjectPane"
>
<subPane>
<expand>
...
...
@@ -313,7 +355,6 @@
</subPane>
</pane>
<pane
id=
"Scope"
/>
<pane
id=
"PackagesPane"
/>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
...
...
@@ -324,7 +365,7 @@
<property
name=
"RequestMappingsPanelWidth1"
value=
"75"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"aspect.path.notification.shown"
value=
"true"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"1600
692897362
"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"1600
783322693
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../Trading"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"configurable.group.build"
/>
...
...
@@ -352,13 +393,13 @@
</list>
</option>
</component>
<component
name=
"RunManager"
selected=
"Application.TTS
Controller
"
>
<configuration
name=
"Dpl
2Service
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.xiaoduhome.
dpl2.Dpl2Service
"
/>
<component
name=
"RunManager"
selected=
"Application.TTS
ervice
"
>
<configuration
name=
"Dpl
botServiceUtil
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.xiaoduhome.
service.DplbotServiceUtil
"
/>
<module
name=
"xiaoduhome"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.xiaoduhome.
dpl2
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.xiaoduhome.
service
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -366,8 +407,8 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
DplbotServiceUtil
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.xiaoduhome.service.
DplbotServiceUtil
"
/>
<configuration
name=
"
LoadBySMS
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.xiaoduhome.service.
LoadBySMS
"
/>
<module
name=
"xiaoduhome"
/>
<extension
name=
"coverage"
>
<pattern>
...
...
@@ -379,12 +420,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
LoadBySMS
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.
xiaoduhome.service.LoadBySMS
"
/>
<module
name=
"
xiaoduhom
e"
/>
<configuration
name=
"
TTSController
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.
tts_service.controller.TTSController
"
/>
<module
name=
"
tts_servic
e"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.
xiaoduhome.service
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.
tts_service.controller
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -392,12 +433,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"TTS
Controller
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.tts_service.
controller.TTSController
"
/>
<configuration
name=
"TTS
ervice
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.tts_service.
service.TTService
"
/>
<module
name=
"tts_service"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.tts_service.
controller
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.tts_service.
service
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -461,11 +502,11 @@
</method>
</configuration>
<list>
<item
itemvalue=
"Application.Dpl2Service"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"Application.DplbotServiceUtil"
/>
<item
itemvalue=
"Application.TTSController"
/>
<item
itemvalue=
"Application.LoadBySMS"
/>
<item
itemvalue=
"Application.TTService"
/>
<item
itemvalue=
"Spring Boot.XiaoaiApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduhomeApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduApplication"
/>
...
...
@@ -475,11 +516,11 @@
</list>
<recent_temporary>
<list>
<item
itemvalue=
"Application.TTService"
/>
<item
itemvalue=
"Application.TTSController"
/>
<item
itemvalue=
"Application.LoadBySMS"
/>
<item
itemvalue=
"Application.DplbotServiceUtil"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"Application.Dpl2Service"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -688,29 +729,35 @@
<workItem
from=
"1599532110238"
duration=
"19444000"
/>
<workItem
from=
"1599618339654"
duration=
"17497000"
/>
<workItem
from=
"1599880502484"
duration=
"814000"
/>
<workItem
from=
"1600673167694"
duration=
"13231000"
/>
<workItem
from=
"1600673167694"
duration=
"17828000"
/>
<workItem
from=
"1600742911483"
duration=
"15201000"
/>
<workItem
from=
"1600918362804"
duration=
"7402000"
/>
<workItem
from=
"1601012372794"
duration=
"2779000"
/>
<workItem
from=
"1601287834718"
duration=
"2893000"
/>
<workItem
from=
"1601365667976"
duration=
"3592000"
/>
<workItem
from=
"1601436818524"
duration=
"2881000"
/>
<workItem
from=
"1601460578312"
duration=
"143000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
879621
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
919109
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"334"
y=
"77"
width=
"1395"
height=
"1003"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<frame
x=
"95"
y=
"56"
width=
"1395"
height=
"1003"
extended-state=
"0"
/>
<layout>
<window_info
id=
"Designer"
order=
"0"
/>
<window_info
id=
"Web"
order=
"1"
sideWeight=
"0.50236404"
side_tool=
"true"
weight=
"0.2847633"
/>
<window_info
id=
"UI Designer"
order=
"2"
/>
<window_info
id=
"Favorites"
order=
"3"
sideWeight=
"0.501182"
side_tool=
"true"
weight=
"0.17381656"
/>
<window_info
id=
"Structure"
order=
"4"
sideWeight=
"0.49763593"
weight=
"0.19
424461
"
/>
<window_info
id=
"Structure"
order=
"4"
sideWeight=
"0.49763593"
weight=
"0.19
376393
"
/>
<window_info
id=
"Image Layers"
order=
"5"
/>
<window_info
id=
"Capture Tool"
order=
"6"
/>
<window_info
id=
"Alibaba Cloud Explorer"
order=
"7"
weight=
"0.32988167"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"8"
sideWeight=
"0.49881798"
weight=
"0.2
5760952
"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"8"
sideWeight=
"0.49881798"
weight=
"0.2
6206383
"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.34117648"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Run"
order=
"2"
visible=
"true"
weight=
"0.37764707
"
/>
<window_info
a
nchor=
"bottom"
id=
"Run"
order=
"2"
weight=
"0.28470588
"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
...
...
@@ -730,7 +777,7 @@
<window_info
anchor=
"right"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
<window_info
anchor=
"right"
id=
"Palette"
order=
"3"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"4"
weight=
"0.329142"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"5"
weight=
"0.3496659
"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"5"
visible=
"true"
weight=
"0.46770602
"
/>
<window_info
anchor=
"right"
id=
"Bean Validation"
order=
"6"
weight=
"0.329142"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"7"
/>
<window_info
anchor=
"right"
id=
"Maven Projects"
order=
"8"
weight=
"0.32991362"
/>
...
...
@@ -745,41 +792,6 @@
<option
name=
"version"
value=
"1"
/>
</component>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ChangeSound.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-308"
>
<caret
line=
"15"
column=
"6"
selection-start-line=
"15"
selection-start-column=
"6"
selection-end-line=
"15"
selection-end-column=
"6"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/sound/AudioConverter.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-1078"
>
<caret
line=
"10"
column=
"13"
selection-start-line=
"10"
selection-start-column=
"13"
selection-end-line=
"10"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/sound/SampleRateConverter.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"506"
>
<caret
line=
"207"
column=
"43"
lean-forward=
"true"
selection-start-line=
"207"
selection-start-column=
"43"
selection-end-line=
"207"
selection-end-column=
"43"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/InitialData.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"286"
>
<caret
line=
"33"
column=
"31"
selection-start-line=
"33"
selection-start-column=
"31"
selection-end-line=
"33"
selection-end-column=
"31"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/data/ProjectData.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"308"
>
<caret
line=
"20"
column=
"33"
selection-start-line=
"20"
selection-start-column=
"19"
selection-end-line=
"20"
selection-end-column=
"33"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/data/ProjectDataResult.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
...
...
@@ -794,13 +806,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2508"
>
<caret
line=
"138"
column=
"113"
selection-start-line=
"138"
selection-start-column=
"105"
selection-end-line=
"138"
selection-end-column=
"113"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"72"
>
...
...
@@ -849,20 +854,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1254"
>
<caret
line=
"65"
column=
"25"
selection-start-line=
"65"
selection-start-column=
"25"
selection-end-line=
"65"
selection-end-column=
"25"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"14212"
>
<caret
line=
"682"
column=
"49"
selection-start-line=
"682"
selection-start-column=
"49"
selection-end-line=
"682"
selection-end-column=
"49"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoAiController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1386"
>
...
...
@@ -901,13 +892,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/FileUtil.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1804"
>
<caret
line=
"101"
column=
"23"
selection-start-line=
"101"
selection-start-column=
"23"
selection-end-line=
"101"
selection-end-column=
"23"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"264"
>
...
...
@@ -1027,13 +1011,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"814"
>
<caret
line=
"83"
column=
"65"
lean-forward=
"true"
selection-start-line=
"83"
selection-start-column=
"65"
selection-end-line=
"83"
selection-end-column=
"65"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5663"
>
...
...
@@ -1063,16 +1040,38 @@
</state>
</provider>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize
.java"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/ByteArrayInputStream
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
339
"
>
<caret
line=
"2
08"
column=
"44"
selection-start-line=
"208"
selection-start-column=
"38"
selection-end-line=
"208"
selection-end-column=
"44
"
/>
<state
relative-caret-position=
"
4510
"
>
<caret
line=
"2
30"
column=
"28"
selection-start-line=
"230"
selection-start-column=
"28"
selection-end-line=
"230"
selection-end-column=
"28
"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#7613#7614#0"
expanded=
"true"
/>
<element
signature=
"e#7647#7648#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/ResponseCodeWithData.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"13"
column=
"13"
selection-start-line=
"13"
selection-start-column=
"13"
selection-end-line=
"13"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"754"
>
<caret
line=
"558"
column=
"72"
selection-start-line=
"558"
selection-start-column=
"72"
selection-end-line=
"558"
selection-end-column=
"72"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3542"
>
<caret
line=
"169"
column=
"25"
selection-start-line=
"169"
selection-start-column=
"25"
selection-end-line=
"169"
selection-end-column=
"25"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/spirit/src/main/java/ai/qiwu/tmall/spirit/controller/IdentifiedController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"198"
>
...
...
@@ -1082,49 +1081,105 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/spirit/src/main/java/ai/qiwu/tmall/spirit/controller/SpiritController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
5
4"
>
<caret
line=
"121"
column=
"
46"
selection-start-line=
"121"
selection-start-column=
"46"
selection-end-line=
"121"
selection-end-column=
"46
"
/>
<state
relative-caret-position=
"3
4
4"
>
<caret
line=
"121"
column=
"
52"
selection-start-line=
"121"
selection-start-column=
"52"
selection-end-line=
"121"
selection-end-column=
"52
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/spirit/src/main/java/ai/qiwu/tmall/spirit/spirit/SpiritAudioUpload.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"604"
>
<caret
line=
"505"
column=
"44"
lean-forward=
"true"
selection-start-line=
"503"
selection-start-column=
"20"
selection-end-line=
"505"
selection-end-column=
"44"
/>
<state
relative-caret-position=
"4202"
>
<caret
line=
"227"
column=
"13"
selection-start-line=
"227"
selection-start-column=
"13"
selection-end-line=
"227"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2684"
>
<caret
line=
"146"
column=
"42"
selection-start-line=
"146"
selection-start-column=
"42"
selection-end-line=
"146"
selection-end-column=
"42"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1012"
>
<caret
line=
"83"
column=
"25"
selection-start-line=
"83"
selection-start-column=
"25"
selection-end-line=
"83"
selection-end-column=
"25"
/>
<folding>
<element
signature=
"e#8067#8733#0"
/>
<element
signature=
"e#8735#11400#0"
/>
<element
signature=
"e#15432#15468#0"
/>
<element
signature=
"e#19187#19277#0"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
323
"
>
<caret
line=
"
2396"
column=
"40"
selection-start-line=
"2396"
selection-start-column=
"40"
selection-end-line=
"2396"
selection-end-column=
"40
"
/>
<state
relative-caret-position=
"
2662
"
>
<caret
line=
"
153"
column=
"58"
selection-start-line=
"153"
selection-start-column=
"58"
selection-end-line=
"153"
selection-end-column=
"58
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/
TTServiceEdition2
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/
Initialize
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
81
"
>
<caret
line=
"
409"
column=
"30"
lean-forward=
"true"
selection-start-line=
"409"
selection-start-column=
"30"
selection-end-line=
"409"
selection-end-column=
"30
"
/>
<state
relative-caret-position=
"3
938
"
>
<caret
line=
"
191"
column=
"42"
selection-start-line=
"191"
selection-start-column=
"42"
selection-end-line=
"191"
selection-end-column=
"42
"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#16461#16462#0"
expanded=
"true"
/>
<element
signature=
"e#16495#16496#0"
expanded=
"true"
/>
<element
signature=
"e#16976#16977#0"
expanded=
"true"
/>
<element
signature=
"e#17019#17020#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5038"
>
<caret
line=
"275"
column=
"52"
selection-start-line=
"275"
selection-start-column=
"52"
selection-end-line=
"275"
selection-end-column=
"52"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-130
"
>
<caret
line=
"
489"
column=
"25"
selection-start-line=
"489"
selection-start-column=
"25"
selection-end-line=
"489"
selection-end-column=
"2
5"
/>
<state
relative-caret-position=
"
5764
"
>
<caret
line=
"
326"
column=
"5"
selection-start-line=
"326"
selection-start-column=
"5"
selection-end-line=
"326"
selection-end-column=
"
5"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
ntroller/TTSController
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
mmon/FileUtil
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-463"
>
<caret
line=
"486"
column=
"17"
lean-forward=
"true"
selection-start-line=
"486"
selection-start-column=
"17"
selection-end-line=
"486"
selection-end-column=
"17"
/>
<folding>
<element
signature=
"e#16644#16738#0"
/>
</folding>
<state
relative-caret-position=
"3190"
>
<caret
line=
"164"
column=
"23"
selection-start-line=
"164"
selection-start-column=
"23"
selection-end-line=
"164"
selection-end-column=
"23"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"66"
>
<caret
line=
"3"
column=
"38"
selection-start-line=
"3"
selection-start-column=
"38"
selection-end-line=
"3"
selection-end-column=
"38"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"506"
>
<caret
line=
"24"
column=
"31"
selection-start-line=
"24"
selection-start-column=
"31"
selection-end-line=
"24"
selection-end-column=
"31"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"616"
>
<caret
line=
"31"
selection-start-line=
"31"
selection-end-line=
"31"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"156"
>
<caret
line=
"437"
column=
"48"
selection-start-line=
"437"
selection-start-column=
"48"
selection-end-line=
"437"
selection-end-column=
"48"
/>
</state>
</provider>
</entry>
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java
View file @
7f085a36
...
...
@@ -515,11 +515,11 @@ public class ApachHttpUtils {
if
(
status
==
200
)
{
HttpEntity
httpEntity
=
response
.
getEntity
();
if
(
httpEntity
!=
null
){
byte
[]
bytes
=
EntityUtils
.
toByteArray
(
httpEntity
);
//
String result = EntityUtils.toString(httpEntity, "UTF-8");
//
byte[] bytes = EntityUtils.toByteArray(httpEntity);
String
result
=
EntityUtils
.
toString
(
httpEntity
,
"UTF-8"
);
EntityUtils
.
consume
(
httpEntity
);
//关闭资源
//
return result;
return
String
.
valueOf
(
bytes
.
length
);
return
result
;
//
return String.valueOf(bytes.length);
}
}
}
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java
View file @
7f085a36
...
...
@@ -84,9 +84,14 @@ public class OkHttp3Utils {
paramsIterator
.
forEachRemaining
(
e
->
urlBuild
.
addQueryParameter
(
e
.
getKey
(),
e
.
getValue
()));
builder
.
url
(
urlBuild
.
build
()).
headers
(
headerBuilder
.
build
());
Response
response
=
client
.
newCall
(
builder
.
build
()).
execute
();
try
(
ResponseBody
body
=
response
.
body
()){
// return String.valueOf(body.bytes().length);
return
body
.
string
();
}
catch
(
Exception
e
)
{
log
.
error
(
"OKHTTP doGet error:"
+
e
);
return
null
;
}
}
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java
View file @
7f085a36
...
...
@@ -154,7 +154,7 @@ public class DeployController {
log
.
error
(
"文件为空"
);
return
ServerResponse
.
createByErrorEnum
(
ResponseCode
.
DATA_IS_WRONG
);
}
if
(
type
.
equals
(
"default"
))
{
if
(
"default"
.
equals
(
type
))
{
if
(
StringUtils
.
isAnyBlank
(
type
,
auth
)
||
groupId
==
null
)
{
log
.
error
(
"type:{}, auth:{}, groupId:{}"
,
type
,
auth
,
groupId
);
return
ServerResponse
.
createByErrorEnum
(
ResponseCode
.
DATA_IS_WRONG
);
...
...
@@ -181,8 +181,8 @@ public class DeployController {
result
=
ApachHttpUtils
.
get
(
url
,
headers
,
null
);
JSONObject
resultJSONObject
=
JSON
.
parseObject
(
result
);
if
(
ResponseCode
.
SUCCESS
.
getCode
().
equals
(
resultJSONObject
.
getIntValue
(
"code"
)))
{
String
path
=
""
;
if
(
botAccount
.
equals
(
""
))
{
String
path
;
if
(
""
.
equals
(
botAccount
))
{
path
=
"/game_editor_tmp/background/"
;
}
else
{
path
=
"/game_editor_tmp"
+
File
.
separator
+
botAccount
+
"/background/"
;
...
...
@@ -209,14 +209,11 @@ public class DeployController {
switch
(
sampleRate
)
{
case
8000
:
sampleRate
=
8000
;
break
;
case
11025
:
sampleRate
=
11025
;
break
;
case
16000
:
sampleRate
=
16000
;
break
;
case
22050
:
sampleRate
=
22050
;
break
;
case
32000
:
sampleRate
=
32000
;
break
;
case
44100
:
sampleRate
=
44100
;
break
;
case
47250
:
sampleRate
=
47250
;
break
;
case
48000
:
sampleRate
=
48000
;
break
;
case
50000
:
sampleRate
=
50000
;
break
;
case
88200
:
sampleRate
=
88200
;
break
;
case
96000
:
sampleRate
=
96000
;
break
;
default
:
sampleRate
=
44100
;
}
if
(!
TTSUtils
.
changeAudioConfig
(
sampleRate
,
bitRate
,
Initialize
.
AUDIO_DIR
+
path
))
{
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java
View file @
7f085a36
package
ai
.
qiwu
.
com
.
tts_service
.
controller
;
import
ai.qiwu.com.tts_service.common.ApachHttpUtils
;
import
ai.qiwu.com.tts_service.common.FileUtil
;
import
ai.qiwu.com.tts_service.common.ServerResponse
;
import
ai.qiwu.com.tts_service.common.TTSUtils
;
import
ai.qiwu.com.tts_service.common.*
;
import
ai.qiwu.com.tts_service.pojo.*
;
import
ai.qiwu.com.tts_service.pojo.upload.UploadOneSenData
;
import
ai.qiwu.com.tts_service.service.*
;
...
...
@@ -13,6 +10,7 @@ import org.apache.commons.csv.CSVFormat;
import
org.apache.commons.csv.CSVParser
;
import
org.apache.commons.csv.CSVPrinter
;
import
org.apache.commons.csv.CSVRecord
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.exception.ExceptionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -26,6 +24,8 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.*
;
import
java.net.URL
;
import
java.net.URLConnection
;
import
java.net.URLDecoder
;
import
java.net.URLEncoder
;
import
java.nio.charset.Charset
;
...
...
@@ -418,38 +418,94 @@ public class TTSController {
// return cdnService.getDirPugeState(botAccount);
// }
private
static
void
buildTTSTime
(
String
sentence
,
String
noCdnBytes
,
Long
noCdnTime
,
String
cdnOnceBytes
,
Long
cdnOnceTime
,
String
cdnBytes
,
Long
cdnTime
)
{
synchronized
(
TTServiceEdition2
.
class
)
{
CSVFormat
format
;
if
(
Files
.
exists
(
Paths
.
get
(
"/home/yf01/下载/audioCut/timeAccount/cdnTest.csv"
)))
format
=
CSVFormat
.
DEFAULT
;
else
format
=
CSVFormat
.
DEFAULT
.
withHeader
(
"sentence"
,
"noCdnBytes"
,
"noCdnTime"
,
"cdnOnceBytes"
,
"cdnOnceTime"
,
"cdnBytes"
,
"cdnTime"
);
try
(
CSVPrinter
csvPrinter
=
new
CSVPrinter
(
new
OutputStreamWriter
(
new
FileOutputStream
(
"/home/yf01/下载/audioCut/timeAccount/cdnTest.csv"
,
true
),
Charset
.
forName
(
"UTF-8"
)),
format
)){
csvPrinter
.
printRecord
(
sentence
,
noCdnBytes
,
noCdnTime
,
cdnOnceBytes
,
cdnOnceTime
,
cdnBytes
,
cdnTime
);
}
catch
(
IOException
e
)
{
log
.
error
(
"buildTTSTime:"
+
e
);
}
}
}
// private static void buildTTSTime(String sentence, String noCdnBytes, Long noCdnTime, String cdnOnceBytes,
// Long cdnOnceTime, String cdnBytes, Long cdnTime) {
// synchronized(TTServiceEdition2.class) {
// CSVFormat format;
// if (Files.exists(Paths.get("/home/yf01/下载/audioCut/timeAccount/cdnTest.csv"))) format = CSVFormat.DEFAULT;
// else format = CSVFormat.DEFAULT.withHeader("sentence", "noCdnBytes", "noCdnTime", "cdnOnceBytes", "cdnOnceTime", "cdnBytes", "cdnTime");
// try (CSVPrinter csvPrinter = new CSVPrinter(new OutputStreamWriter(
// new FileOutputStream("/home/yf01/下载/audioCut/timeAccount/cdnTest.csv", true), Charset.forName("UTF-8")),format)){
// csvPrinter.printRecord(sentence, noCdnBytes, noCdnTime, cdnOnceBytes, cdnOnceTime, cdnBytes, cdnTime);
// } catch (IOException e) {
// log.error("buildTTSTime:"+e);
// }
// }
// }
//
// private static String sendGet(String urlAndParams) {
// String result = "0";
// InputStream in = null;
// try {
// URL realUrl = new URL(urlAndParams);
// // 打开和URL之间的连接
// URLConnection connection = realUrl.openConnection();
// // 设置通用的请求属性
// connection.setRequestProperty("accept", "*/*");
// connection.setRequestProperty("connection", "Keep-Alive");
// connection.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
// // 建立实际的连接
// connection.connect();
// // 获取所有响应头字段
//// Map<String, List<String>> map = connection.getHeaderFields();
// // 遍历所有的响应头字段
// // for (String key : map.keySet()) {
// // System.out.println(key + "--->" + map.get(key));
// // }
// // 定义 BufferedReader输入流来读取URL的响应
// return String.valueOf(IOUtils.toByteArray((in=connection.getInputStream())).length);
// } catch (Exception e) {
// System.out.println("发送GET请求出现异常!" + e);
//// System.out.println(e.getMessage());
// } finally {
// // 使用finally块来关闭输入流
// try {
// if (in != null) {
// in.close();
// }
// } catch (Exception e2) {
// e2.printStackTrace();
// }
// }
// return result;
// }
public
static
void
main
(
String
[]
args
)
throws
IOException
{
// String[] arr = {"为咱们人类的共同命运。", "我们应该要展现大国的担当。","还有我们中国同各国一道重温使命。","当然要共同构建人类命运共同体。",
// "这仅仅是他们的交流方式。","当然这些对他们的自由权起到限制。", "除此之外美国宣扬所谓国家安全。","这就会意味着案件会呈递联邦法庭。", "还有这项裁决很可能会继续有效。",
// "当然这些在美国什么不能发生。", "推测很可能美国又出台新禁令。", "美国的最高法院的大法官是谁。", "特朗普总统又开始挑剔施压。", "尊重市场经济和公平竞争的原则。", "外国企业在美国投资经营。"};
// String[] seq = {"所以你们要买什么\uD83C\uDD70蔬菜", "所以你们要买什么\uD83C\uDD70水果", "所以你们要买什么\uD83C\uDD70肉类",
// "所以你们要买什么\uD83C\uDD70干货", "所以你们要买什么\uD83C\uDD70鱼类", "所以你们要买什么\uD83C\uDD70水产品",
// "所以你们要买什么\uD83C\uDD70瓜果蔬菜", "所以你们要买什么\uD83C\uDD70东西"};
// String[] arr = {"据英国路透社独家报道", "瑞典空间研究中心的澳大利亚分部","与中国方面签订了合作协议","同意让其设在该国的一处卫星站",
// "但该中心近日却宣布","将在合约到期后不与中方续约", "位于澳大利亚的西澳大利亚州","受地缘政治局势影响", "中国的市场变得复杂起来",
// "不会与中国的合同到期后继续约", "官方也尚未回应路透社关于此事", "路透社对此事的报道行文来看", "这俩卫星站距离还挺近的", "澳大利亚是美国亲密盟友"};
// String[] arr = {"省委原常委深夜被查",
// "中纪委国家监委网站发布消息",
// "主任史文清涉嫌严重违纪违法",
// "主政江西第二大城市赣州4年多",
// "去年遭到企业家实名举报",
// "不担任省人大常委会主任职",
// "现在正在给组织作写一个说明",
// "我昨天晚上看到举报文章",
// "三名来自不同地方的企业家",
// "人民日报称东部战区发布军营视频",
// "将背负起祖国的重任和人民的希望",
// "绝不让祖国和人民失望祖国放心",
// "就美国官员近日接连访台提问",
// "汪文斌主持外交部例行记者会"};
//
//// String[] seq = {"所以你们要什么\uD83C\uDD70海鲜", "那么你们要买什么\uD83C\uDD70鱿鱼", "你要买什么\uD83C\uDD70蚂蚱",
//// "还有他们要买什么\uD83C\uDD70老虎", "还有你买什么\uD83C\uDD70狮子", "也就是说要买什么\uD83C\uDD70座头鲸",
//// "你们决定要买什么\uD83C\uDD70八爪鱼", "快点来买些什么\uD83C\uDD70海豚"};
// String[] seq = {"所以你们要什么\uD83C\uDD70蔬菜", "那么你们要买什么\uD83C\uDD70肉类", "你要买什么\uD83C\uDD70鱼类",
// "还有他们要买什么\uD83C\uDD70瓜果蔬菜", "还有你买什么\uD83C\uDD70东西", "也就是说要买什么\uD83C\uDD70干货",
// "你们决定要买什么\uD83C\uDD70水产品", "快点来买些什么\uD83C\uDD70海豚"};
// String[] seqPost = {"呢\uD83C\uDD71","哦\uD83C\uDD71","吧\uD83C\uDD71","嘿\uD83C\uDD71","呵\uD83C\uDD71",
// "吒\uD83C\uDD71","哼\uD83C\uDD71","哈\uD83C\uDD71","吼\uD83C\uDD71","嘀\uD83C\uDD71","兹\uD83C\uDD71"};
// List<String> list = new ArrayList<>();
// for (int i = 0; i <
11
; i++) {
// for (int j = 0; j <
8
; j++) {
// for (int i = 0; i <
7
; i++) {
// for (int j = 0; j <
seq.length
; j++) {
// list.add(arr[i]+seq[j]+seqPost[i]);
// }
// }
// list = Collections.singletonList("在美国句子重复会更快吗,你说呢有可能吗谁知道呢");
//
//
//
list = Collections.singletonList("在美国句子重复会更快吗,你说呢有可能吗谁知道呢");
// Map<String, String> header = Collections.singletonMap("Content-Type", "application/json");
// for (String str: list) {
// TTSLSRequest request = new TTSLSRequest();
...
...
@@ -474,53 +530,65 @@ public class TTSController {
//
// }
// }
String
preCsvPath
=
"/home/yf01/下载/audioCut/timeAccount/A13.csv"
;
try
(
CSVParser
csvRecords
=
CSVFormat
.
EXCEL
.
parse
(
new
BufferedReader
(
new
InputStreamReader
(
new
FileInputStream
(
new
File
(
preCsvPath
)),
StandardCharsets
.
UTF_8
))))
{
boolean
first
=
true
;
String
prefix
=
"http://hw-gz25.heyqiwu.cn:9663/api/audio/cache/miaoTestTime/?filename=/miaoTestTime/A13/正常/"
;
String
cdnPrefix
=
"http://cdntest.heyqiwu.cn/api/audio/cache/miaoTestTime/?filename=/miaoTestTime/A13/正常/"
;
for
(
CSVRecord
line:
csvRecords
)
{
if
(
first
)
{
first
=
false
;
continue
;
}
// "person", "mood", "md5", "id", "upUrl"
String
text
=
line
.
get
(
0
);
String
url
=
prefix
+
TTSUtils
.
buildMP3Filename
(
text
);
long
t1
=
System
.
currentTimeMillis
();
String
noCdnSize
=
ApachHttpUtils
.
get
(
url
,
null
,
null
);
long
noCdnTime
=
System
.
currentTimeMillis
()-
t1
;
try
{
Thread
.
sleep
(
1000
);
}
catch
(
Exception
e
)
{
}
url
=
cdnPrefix
+
TTSUtils
.
buildMP3Filename
(
text
);
t1
=
System
.
currentTimeMillis
();
String
cdnOnceSize
=
ApachHttpUtils
.
get
(
url
,
null
,
null
);
long
cdnOnceTime
=
System
.
currentTimeMillis
()-
t1
;
try
{
Thread
.
sleep
(
1000
);
}
catch
(
Exception
e
)
{
}
t1
=
System
.
currentTimeMillis
();
String
cdnSize
=
ApachHttpUtils
.
get
(
url
,
null
,
null
);
long
cdnTime
=
System
.
currentTimeMillis
()-
t1
;
buildTTSTime
(
text
,
noCdnSize
,
noCdnTime
,
cdnOnceSize
,
cdnOnceTime
,
cdnSize
,
cdnTime
);
try
{
Thread
.
sleep
(
1000
);
}
catch
(
Exception
e
)
{
// String preCsvPath = "/home/yf01/下载/audioCut/timeAccount/Baidu5.csv";
// try (CSVParser csvRecords = CSVFormat.EXCEL.parse(new BufferedReader(
// new InputStreamReader(new FileInputStream(new File(preCsvPath)), StandardCharsets.UTF_8)))) {
// boolean first = true;
// String prefix ="http://hw-gz25.heyqiwu.cn:9663/api/audio/cache/miaoTestTime/?filename=/miaoTestTime/Baidu5/%E6%AD%A3%E5%B8%B8/";
// String cdnPrefix = "http://cdntest.heyqiwu.cn/api/audio/cache/miaoTestTime/?filename=/miaoTestTime/Baidu5/%E6%AD%A3%E5%B8%B8/";
// int count = 0;
// for (CSVRecord line: csvRecords) {
// if (first) {
// first = false;
// continue;
// }
// count++;
// if (count > 80) {
// break;
// }
//
// String text = line.get(0);
// String post = TTSUtils.buildMP3Filename(text);
//
// long t1 = System.currentTimeMillis();
// String noCdnSize = sendGet(prefix+post);
// long noCdnTime = System.currentTimeMillis()-t1;
//
// try {
// Thread.sleep(1000);
// } catch (Exception e) {
//
// }
//
// String url = cdnPrefix+post;
// t1 = System.currentTimeMillis();
// String cdnOnceSize = sendGet(url);
// long cdnOnceTime = System.currentTimeMillis()-t1;
//
// try {
// Thread.sleep(1000);
// } catch (Exception e) {
//
// }
//
// t1 = System.currentTimeMillis();
// String cdnSize = sendGet(url);
// long cdnTime = System.currentTimeMillis()-t1;
//
// buildTTSTime(text, noCdnSize, noCdnTime, cdnOnceSize, cdnOnceTime, cdnSize, cdnTime);
// try {
// Thread.sleep(1000);
// } catch (Exception e) {
//
// }
// }
// }
}
}
}
// String str = sendGet("http://cdntest.heyqiwu.cn/api/audio/cache/miaoTestTime/?filename=/miaoTestTime/A13/%E6%AD%A3%E5%B8%B8/e48e57b1f0a1f1a78fb7492e4654c727.mp3");
// System.out.println(str);
// System.out.println(TTSUtils.buildMP3Filename("为所有人类的共同命运。这对他们的言论自由权起到限制。"));
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java
View file @
7f085a36
...
...
@@ -28,6 +28,8 @@ public class GeneralMP3Data {
private
String
npcName
;
private
String
tmpName
;
// 用于试听生成的临时mp3文件名
// private String mode;
public
GeneralMP3Data
(
String
server
,
String
text
,
String
person
,
String
tone
,
String
botname
,
Boolean
cache
,
Double
volume
,
Double
speed
,
Double
pitch
)
{
this
.
server
=
server
;
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java
View file @
7f085a36
...
...
@@ -1547,6 +1547,7 @@ public class TTService {
switch
(
sampleRate
)
{
case
8000
:
sampleRate
=
8000
;
break
;
case
11025
:
sampleRate
=
11025
;
break
;
case
16000
:
sampleRate
=
16000
;
break
;
case
22050
:
sampleRate
=
22050
;
break
;
case
32000
:
sampleRate
=
32000
;
break
;
case
44100
:
sampleRate
=
44100
;
break
;
...
...
@@ -1607,6 +1608,7 @@ public class TTService {
switch
(
sampleRate
)
{
case
8000
:
sampleRate
=
8000
;
break
;
case
11025
:
sampleRate
=
11025
;
break
;
case
16000
:
sampleRate
=
16000
;
break
;
case
22050
:
sampleRate
=
22050
;
break
;
case
32000
:
sampleRate
=
32000
;
break
;
case
44100
:
sampleRate
=
44100
;
break
;
...
...
@@ -1935,15 +1937,12 @@ public class TTService {
}
switch
(
sampleRate
)
{
case
8000
:
sampleRate
=
8000
;
break
;
case
16000
:
sampleRate
=
16000
;
break
;
case
11025
:
sampleRate
=
11025
;
break
;
case
22050
:
sampleRate
=
22050
;
break
;
case
32000
:
sampleRate
=
32000
;
break
;
case
44100
:
sampleRate
=
44100
;
break
;
case
47250
:
sampleRate
=
47250
;
break
;
case
48000
:
sampleRate
=
48000
;
break
;
case
50000
:
sampleRate
=
50000
;
break
;
case
88200
:
sampleRate
=
88200
;
break
;
case
96000
:
sampleRate
=
96000
;
break
;
default
:
sampleRate
=
44100
;
}
...
...
@@ -2681,21 +2680,9 @@ public class TTService {
}
public
static
void
main
(
String
[]
args
)
throws
UnsupportedEncodingException
{
Pattern
pattern
=
Pattern
.
compile
(
"1000[167]|1001[012]"
);
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
"10001"
);
list
.
add
(
"10006"
);
list
.
add
(
"10007"
);
list
.
add
(
"10010"
);
list
.
add
(
"10011"
);
list
.
add
(
"10012"
);
list
.
add
(
"10013"
);
list
.
add
(
"10002"
);
for
(
String
item:
list
)
{
Matcher
matcher
=
pattern
.
matcher
(
item
);
while
(
matcher
.
find
())
{
System
.
out
.
println
(
matcher
.
group
(
0
));
}
}
// String command = "soxi /home/yf01/下载/audioCut/1.mp3";
// String response = CallPython.soxiGetAudioConfig(command);
String
response
=
"Input File : '/home/yf01/下载/audioCut/1.mp3'Channels : 1Sample Rate : 16000Precision : 16-bitDuration : 00:00:01.12 = 17856 samples ~ 83.7 CDDA sectorsFile Size : 4.46kBit Rate : 32.0kSample Encoding: MPEG audio (layer I, II or III)"
;
System
.
out
.
println
(
response
);
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
View file @
7f085a36
...
...
@@ -365,7 +365,9 @@ public class TTServiceEdition2 {
if
(!
TTSUtils
.
doesFileExist
(
path
))
{
ResponseCodeWithData
response1
=
generalMP3
(
moodUrl
,
data
,
path
,
"GET"
,
true
);
if
(
response1
==
null
)
response1
=
new
ResponseCodeWithData
(
HttpServletResponse
.
SC_INTERNAL_SERVER_ERROR
,
"tts_ls:generalMP3 return null"
);
// buildTTSTime(data.getText(), data.getPerson(), data.getText().length(), System.currentTimeMillis()-start);
// if (response1.getCode() == 200) {
// buildTTSTime(data.getText(), data.getPerson(), data.getText().length(), System.currentTimeMillis()-start);
// }
return
response1
;
}
}
catch
(
Exception
e
)
{
...
...
@@ -483,6 +485,7 @@ public class TTServiceEdition2 {
private
ResponseCodeWithData
requestTemplate
(
String
url
,
GeneralMP3Data
data
,
String
filePath
,
boolean
getOnline
)
{
ResponseCodeWithData
res
;
// data.setMode("test");
int
status
=
ApachHttpUtils
.
audioPost
(
url
,
JSON
.
toJSONString
(
data
),
filePath
);
if
(
status
==
0
)
res
=
new
ResponseCodeWithData
(
HttpServletResponse
.
SC_INTERNAL_SERVER_ERROR
,
"请求出错"
);
else
if
(
status
==
HttpServletResponse
.
SC_NOT_FOUND
&&
Initialize
.
OFFLINE_SERVER
.
equals
(
url
))
{
...
...
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