Commit ab298873 by 苗权威

9.9

parent 76df569d
......@@ -3,21 +3,18 @@
<component name="ChangeListManager">
<list default="true" id="4a2f3afc-3cd8-46bb-9e78-9759246c43dc" 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_offline/src/main/java/ai/qiwu/com/tts_offline/common/TTSUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/TTSUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.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/common/TTSUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.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/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/pojo/TTSRequest.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TextInfo.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TextInfo.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.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/baidu/ThirdPartyService.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/resources/application.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/resources/tts.properties" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/resources/tts.properties" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoai/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoai/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
<ignored path="$PROJECT_DIR$/target/" />
......@@ -63,87 +60,104 @@
<file pinned="false" current-in-tab="false">
<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="323">
<caret line="83" column="13" selection-start-line="83" selection-start-column="13" selection-end-line="83" selection-end-column="13" />
<state relative-caret-position="219">
<caret line="87" column="9" lean-forward="true" selection-start-line="87" selection-start-column="9" selection-end-line="87" selection-end-column="9" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="573">
<caret line="812" column="39" lean-forward="true" selection-start-line="812" selection-start-column="39" selection-end-line="812" selection-end-column="39" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#23371#23417#0" />
<element signature="e#24286#24400#0" />
</folding>
<state relative-caret-position="308">
<caret line="14" column="78" selection-start-line="14" selection-start-column="78" selection-end-line="14" selection-end-column="78" />
</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/TTSUtils.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/ttsTest.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="437">
<caret line="78" column="84" selection-start-line="78" selection-start-column="84" selection-end-line="78" selection-end-column="84" />
<state relative-caret-position="330">
<caret line="15" selection-start-line="15" selection-end-line="15" />
</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/TTServiceUtil.java">
<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="312">
<caret line="117" column="5" lean-forward="true" selection-start-line="117" selection-start-column="5" selection-end-line="117" selection-end-column="5" />
<state relative-caret-position="526">
<caret line="118" column="5" selection-start-line="118" selection-start-column="5" selection-end-line="118" selection-end-column="5" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/zip/ZipFile.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="534">
<caret line="256" column="47" selection-start-line="256" selection-start-column="40" selection-end-line="256" selection-end-column="47" />
<state relative-caret-position="256">
<caret line="45" column="32" selection-start-line="45" selection-start-column="32" selection-end-line="45" selection-end-column="32" />
<folding>
<element signature="e#8418#8419#0" expanded="true" />
<element signature="e#8449#8450#0" expanded="true" />
<element signature="e#8845#8846#0" expanded="true" />
<element signature="e#8887#8888#0" expanded="true" />
<element signature="e#8940#8941#0" expanded="true" />
<element signature="e#8982#8983#0" expanded="true" />
<element signature="e#9168#9169#0" expanded="true" />
<element signature="e#9211#9212#0" expanded="true" />
<element signature="e#9590#9591#0" expanded="true" />
<element signature="e#9638#9639#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/common/OkHttp3Utils.java">
<file pinned="false" current-in-tab="true">
<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="503">
<caret line="118" column="20" selection-start-line="118" selection-start-column="20" selection-end-line="118" selection-end-column="20" />
<state relative-caret-position="446">
<caret line="899" column="55" selection-start-line="899" selection-start-column="55" selection-end-line="899" selection-end-column="55" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#26492#26538#0" />
<element signature="e#27407#27521#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/service/Initialize.java">
<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="441">
<caret line="228" column="35" selection-start-line="228" selection-start-column="35" selection-end-line="228" selection-end-column="35" />
<state relative-caret-position="264">
<caret line="14" column="13" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" />
<folding>
<element signature="e#7523#7524#0" expanded="true" />
<element signature="e#7574#7575#0" expanded="true" />
<element signature="e#7628#7629#0" expanded="true" />
<element signature="e#7672#7673#0" expanded="true" />
<element signature="e#7700#7701#0" expanded="true" />
<element signature="e#7731#7732#0" expanded="true" />
<element signature="e#8852#8853#0" expanded="true" />
<element signature="e#8894#8895#0" expanded="true" />
<element signature="e#8726#8727#0" expanded="true" />
<element signature="e#8768#8769#0" expanded="true" />
<element signature="e#8684#8685#0" expanded="true" />
<element signature="e#8722#8723#0" expanded="true" />
<element signature="e#9000#9001#0" expanded="true" />
<element signature="e#9039#9040#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/File.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="176">
<caret line="1356" lean-forward="true" selection-start-line="1356" selection-end-line="1356" />
</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/TTSUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="256">
<caret line="132" column="23" selection-start-line="132" selection-start-column="23" selection-end-line="132" selection-end-column="23" />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
......@@ -158,11 +172,6 @@
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>OnLoad</find>
<find>productName</find>
<find>productDetail</find>
<find>CATEGORY_PRODUCT_LIST</find>
<find>text-overflow</find>
<find>max-lines</find>
<find>line-height</find>
<find>onClick</find>
......@@ -177,7 +186,6 @@
<find>onComplete</find>
<find>CATEGORY_PROD_LIST</find>
<find>USER_HISTORY</find>
<find>init_url</find>
<find>URL_LS</find>
<find>ONLINE_SERVER</find>
<find>initialize</find>
......@@ -188,6 +196,12 @@
<find>size</find>
<find>npcName</find>
<find>OkHttp3Utils</find>
<find>buildMP3Filename</find>
<find>init_url</find>
<find>requestTemplate方法创建文件</find>
<find>url</find>
<find>resCode</find>
<find>resCode:{}</find>
</findStrings>
<replaceStrings>
<replace>OPENID_CACHE</replace>
......@@ -203,14 +217,6 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rank2.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankBotInfo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.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" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rankFirst.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java" />
......@@ -234,7 +240,6 @@
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java" />
<option value="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java" />
<option value="$PROJECT_DIR$/xiaoduhome/pom.xml" />
<option value="$PROJECT_DIR$/xiaoai/pom.xml" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java" />
......@@ -242,18 +247,27 @@
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TextInfo.java" />
<option value="$PROJECT_DIR$/tts_service/pom.xml" />
<option value="$PROJECT_DIR$/tts_service/src/main/resources/tts.properties" />
<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/RecordCallbackData.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/controller/TTSController.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/MultipartResolver.java" />
<option value="$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/TTSUtils.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/MultipartResolver.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java" />
<option value="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java" />
<option value="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java" />
<option value="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.java" />
<option value="$PROJECT_DIR$/xiaoai/src/main/resources/logback-spring.xml" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/logback-spring.xml" />
<option value="$PROJECT_DIR$/tts_service/src/main/resources/application.yml" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/resources/tts.properties" />
<option value="$PROJECT_DIR$/tts_service/src/main/resources/ttsTest.properties" />
<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/UploadOneSenData.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/common/TTSUtils.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/pojo/upload/UploadCallbackResponse.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java" />
</list>
</option>
</component>
......@@ -271,11 +285,11 @@
<expand>
<path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="xiaoai" type="9519ce18:MavenProjectsStructure$ProjectNode" />
<item name="tts_service" type="9519ce18:MavenProjectsStructure$ProjectNode" />
</path>
<path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="xiaoai" type="9519ce18:MavenProjectsStructure$ProjectNode" />
<item name="tts_service" type="9519ce18:MavenProjectsStructure$ProjectNode" />
<item name="Lifecycle" type="58874e2:MavenProjectsStructure$LifecycleNode" />
</path>
<path>
......@@ -295,10 +309,10 @@
<option name="skipTests" value="true" />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="659" />
<option name="y" value="101" />
<option name="x" value="314" />
<option name="y" value="80" />
<option name="width" value="1416" />
<option name="height" value="990" />
<option name="height" value="973" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<ConfirmationsSetting value="1" id="Add" />
......@@ -380,7 +394,7 @@
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="service" type="462c0819:PsiDirectoryNode" />
<item name="pojo" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -388,240 +402,28 @@
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaodu" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaodu" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaodu" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaodu" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaodu" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaodu" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaodu" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaodu" type="462c0819:PsiDirectoryNode" />
<item name="controller" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="play" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="controller" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="entity" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="entity" type="462c0819:PsiDirectoryNode" />
<item name="primary" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="entity" type="462c0819:PsiDirectoryNode" />
<item name="secondary" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="pojo" type="462c0819:PsiDirectoryNode" />
<item name="upload" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="repository" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="repository" type="462c0819:PsiDirectoryNode" />
<item name="primary" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="repository" type="462c0819:PsiDirectoryNode" />
<item name="secondary" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="service" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
<item name="json" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
<item name="templates" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
......@@ -640,7 +442,7 @@
<property name="RequestMappingsPanelWidth2" 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="1567857345582" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1568035046680" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../security/p1o6vt" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
......@@ -651,13 +453,6 @@
<property name="settings.editor.selected.configurable" value="spring.boot" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/sound" />
<recent name="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common" />
<recent name="$PROJECT_DIR$/spirit/src/main/resources/static/aligenie" />
<recent name="$PROJECT_DIR$/spirit/src/main/resources/lib" />
<recent name="$PROJECT_DIR$/ruoqi/src/main/resources/lib" />
</key>
<key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
<recent name="ai.qiwu.com.xiaoduhome.repository.primary" />
<recent name="ai.qiwu.com.xiaoduhome.entity.primary" />
......@@ -665,6 +460,13 @@
<recent name="ai.qiwu.com.tts_service.common.pcm" />
<recent name="ai.qiwu.com.tts_service.entity" />
</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/xiaoduhome/src/main/resources/templates" />
<recent name="$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/pojo" />
<recent name="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo" />
<recent name="$PROJECT_DIR$/xiaoduhome/src/main/resources/static" />
<recent name="$PROJECT_DIR$/xiaodu/src/main/resources/static/picture" />
</key>
<key name="CopyClassDialog.RECENTS_KEY">
<recent name="ai.qiwu.com.xiaoduhome.common" />
<recent name="ai.qiwu.com.xiaoduhome.pojo" />
......@@ -672,12 +474,12 @@
<recent name="ai.qiwu.com.xiaoduhome.controller" />
<recent name="ai.qiwu.mi.xiaoai.model" />
</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/xiaoduhome/src/main/resources/templates" />
<recent name="$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/pojo" />
<recent name="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo" />
<recent name="$PROJECT_DIR$/xiaoduhome/src/main/resources/static" />
<recent name="$PROJECT_DIR$/xiaodu/src/main/resources/static/picture" />
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/xiaoduhome/src/main/resources" />
<recent name="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/sound" />
<recent name="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common" />
<recent name="$PROJECT_DIR$/spirit/src/main/resources/static/aligenie" />
<recent name="$PROJECT_DIR$/spirit/src/main/resources/lib" />
</key>
</component>
<component name="RunDashboard">
......@@ -1071,6 +873,7 @@
<item itemvalue="Application.DplBotService" />
<item itemvalue="Application.Utils" />
<item itemvalue="Application.RecommendUtil" />
<item itemvalue="Application.TTSUtils" />
<item itemvalue="ECS on Alibaba Cloud.dingdong" />
<item itemvalue="ECS on Alibaba Cloud.xiaodu" />
<item itemvalue="ECS on Alibaba Cloud.rokid" />
......@@ -1091,7 +894,6 @@
<item itemvalue="Spring Boot.XiaoduhomeApplication" />
<item itemvalue="Spring Boot.TtsServiceApplication" />
<item itemvalue="Spring Boot.TtsOfflineApplication" />
<item itemvalue="Application.TTSUtils" />
</list>
<recent_temporary>
<list>
......@@ -1189,7 +991,8 @@
<workItem from="1567562063394" duration="30969000" />
<workItem from="1567647698612" duration="35012000" />
<workItem from="1567734069270" duration="31378000" />
<workItem from="1567820379373" duration="33395000" />
<workItem from="1567820379373" duration="33477000" />
<workItem from="1567992699655" duration="37258000" />
</task>
<servers />
</component>
......@@ -1199,7 +1002,7 @@
</history-entry>
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="1936064000" />
<option name="totallyTimeSpent" value="1973404000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
......@@ -1211,7 +1014,7 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="659" y="101" width="1416" height="990" extended-state="0" />
<frame x="314" y="80" width="1416" height="973" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Structure" order="0" sideWeight="0.51135004" side_tool="true" weight="0.20321637" />
......@@ -1224,8 +1027,8 @@
<window_info id="Web" order="7" side_tool="true" />
<window_info content_ui="combo" id="Project" order="8" sideWeight="0.48864993" weight="0.20321637" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.2986858" />
<window_info anchor="bottom" id="Run" order="2" weight="0.5101553" />
<window_info anchor="bottom" id="Find" order="1" weight="0.297561" />
<window_info anchor="bottom" id="Run" order="2" weight="0.5097561" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.39885056" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
......@@ -1238,7 +1041,7 @@
<window_info anchor="bottom" id="Database Changes" order="12" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="13" weight="0.32975295" />
<window_info anchor="bottom" id="Alibaba Cloud View" order="14" weight="0.32979977" />
<window_info anchor="bottom" id="Messages" order="15" weight="0.28554362" />
<window_info anchor="bottom" id="Messages" order="15" weight="0.28536585" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
......@@ -1260,429 +1063,406 @@
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220">
<caret line="10" column="59" lean-forward="true" selection-start-line="10" selection-start-column="59" selection-end-line="10" selection-end-column="59" />
<caret line="20" column="13" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/UpLoadImgController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="81" selection-start-line="81" selection-end-line="81" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="374">
<caret line="26" column="32" selection-start-line="26" selection-start-column="19" selection-end-line="26" selection-end-column="32" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoai/pom.xml">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/linPicture.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="441">
<caret line="54" column="27" selection-start-line="54" selection-start-column="27" selection-end-line="54" selection-end-column="27" />
<state relative-caret-position="242">
<caret line="11" column="43" selection-start-line="11" selection-start-column="36" selection-end-line="11" selection-end-column="43" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TextInfo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="242">
<caret line="14" column="58" lean-forward="true" selection-start-line="14" selection-start-column="58" selection-end-line="14" selection-end-column="58" />
<state relative-caret-position="484">
<caret line="25" column="27" selection-start-line="25" selection-start-column="27" selection-end-line="25" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Character.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/RecordCallbackData.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="5651" column="26" selection-start-line="5651" selection-start-column="26" selection-end-line="5651" selection-end-column="26" />
<state relative-caret-position="286">
<caret line="13" column="31" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="31" />
<folding>
<element signature="e#198712#198713#0" expanded="true" />
<element signature="e#198751#198752#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSResponse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="38" column="56" lean-forward="true" selection-start-line="38" selection-start-column="56" selection-end-line="38" selection-end-column="56" />
<state relative-caret-position="264">
<caret line="17" column="13" selection-start-line="17" selection-start-column="13" selection-end-line="17" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml">
<entry file="file://$PROJECT_DIR$/jdwhale/src/main/java/ai/qiwu/mqw/jdwhale/service/RequestTerminate.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="88">
<caret line="4" column="28" lean-forward="true" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="28" />
<state relative-caret-position="396">
<caret line="43" column="40" lean-forward="true" selection-start-line="43" selection-start-column="28" selection-end-line="43" selection-end-column="40" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/entity/SpeakersInfo.java">
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="23" column="20" selection-start-line="23" selection-start-column="20" selection-end-line="23" selection-end-column="20" />
<state relative-caret-position="220">
<caret line="79" column="60" selection-start-line="79" selection-start-column="56" selection-end-line="79" selection-end-column="60" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Formatter.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/SpecialCharURLConfig.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-267">
<caret line="2492" column="21" selection-start-line="2492" selection-start-column="21" selection-end-line="2492" selection-end-column="21" />
<folding>
<element signature="e#101735#101736#0" expanded="true" />
<element signature="e#101781#101782#0" expanded="true" />
</folding>
<state relative-caret-position="198">
<caret line="12" column="13" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar!/org/apache/commons/lang3/StringUtils.class">
<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="270">
<caret line="1601" column="25" selection-start-line="1601" selection-start-column="25" selection-end-line="1601" selection-end-column="25" />
<state relative-caret-position="261">
<caret line="20" column="11" selection-start-line="20" selection-start-column="11" selection-end-line="20" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Arrays.java">
<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="292">
<caret line="3799" column="32" lean-forward="true" selection-start-line="3799" selection-start-column="32" selection-end-line="3799" selection-end-column="32" />
<folding>
<element signature="e#177013#177014#0" expanded="true" />
<element signature="e#177054#177055#0" expanded="true" />
</folding>
<state relative-caret-position="-242">
<caret line="12" column="13" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/FilenameFilter.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/UUID.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="418">
<caret line="42" column="17" selection-start-line="42" selection-start-column="17" selection-end-line="42" selection-end-column="17" />
<state relative-caret-position="204">
<caret line="140" column="23" selection-start-line="140" selection-start-column="23" selection-end-line="140" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Boolean.java">
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/MultipartResolver.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="261">
<caret line="70" column="27" lean-forward="true" selection-start-line="70" selection-start-column="27" selection-end-line="70" selection-end-column="27" />
<state relative-caret-position="176">
<caret line="9" selection-start-line="9" selection-end-line="9" selection-end-column="31" />
<folding>
<element signature="e#2170#2171#0" expanded="true" />
<element signature="e#2204#2205#0" expanded="true" />
<element signature="e#386#387#0" expanded="true" />
<element signature="e#435#436#0" expanded="true" />
<element signature="e#519#520#0" expanded="true" />
<element signature="e#573#574#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/concurrent/atomic/AtomicInteger.java">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/commons-fileupload/commons-fileupload/1.4/commons-fileupload-1.4.jar!/org/apache/commons/fileupload/FileUploadBase.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="327">
<caret line="81" column="11" selection-start-line="81" selection-start-column="11" selection-end-line="81" selection-end-column="11" />
<state relative-caret-position="418">
<caret line="42" column="28" selection-start-line="42" selection-start-column="17" selection-end-line="42" selection-end-column="28" />
<folding>
<element signature="e#2195#2196#0" expanded="true" />
<element signature="e#2227#2228#0" expanded="true" />
<element signature="e#2808#2809#0" expanded="true" />
<element signature="e#2854#2855#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/ArrayList.java">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/commons-fileupload/commons-fileupload/1.4/commons-fileupload-1.4-sources.jar!/org/apache/commons/fileupload/FileUploadBase.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="261">
<caret line="407" column="19" selection-start-line="407" selection-start-column="19" selection-end-line="407" selection-end-column="19" />
<state relative-caret-position="550">
<caret line="165" column="17" selection-start-line="165" selection-start-column="17" selection-end-line="165" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/File.java">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/spring-web/5.1.8.RELEASE/spring-web-5.1.8.RELEASE.jar!/org/springframework/web/multipart/commons/CommonsFileUploadSupport.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="261">
<caret line="1246" column="18" selection-start-line="1246" selection-start-column="18" selection-end-line="1246" selection-end-column="18" />
<state relative-caret-position="252">
<caret line="52" column="16" selection-start-line="52" selection-start-column="16" selection-end-line="52" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/String.java">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/spring-web/5.1.8.RELEASE/spring-web-5.1.8.RELEASE-sources.jar!/org/springframework/web/multipart/commons/CommonsFileUploadSupport.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="2938" column="25" selection-start-line="2938" selection-start-column="25" selection-end-line="2938" selection-end-column="25" />
<state relative-caret-position="484">
<caret line="116" column="16" selection-start-line="116" selection-start-column="16" selection-end-line="116" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/MultipartResolver.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="367">
<caret line="27" column="11" selection-start-line="27" selection-start-column="11" selection-end-line="27" selection-end-column="11" />
<state relative-caret-position="396">
<caret line="18" column="49" lean-forward="true" selection-start-line="18" selection-start-column="49" selection-end-line="18" selection-end-column="49" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#307#308#0" expanded="true" />
<element signature="e#356#357#0" expanded="true" />
<element signature="e#440#441#0" expanded="true" />
<element signature="e#494#495#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/pom.xml">
<entry file="file://$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/TTSUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="440">
<caret line="44" column="21" lean-forward="true" selection-start-line="44" selection-start-column="21" selection-end-line="44" selection-end-column="21" />
<state relative-caret-position="483">
<caret line="63" column="29" lean-forward="true" selection-start-line="63" selection-start-column="29" selection-end-line="63" selection-end-column="29" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/pom.xml">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/nio/charset/Charset.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308">
<caret line="71" column="21" selection-start-line="71" selection-start-column="21" selection-end-line="71" selection-end-column="21" />
<state relative-caret-position="6268">
<caret line="454" column="27" selection-start-line="454" selection-start-column="27" selection-end-line="454" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/zip/ZipFile.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220">
<caret line="20" column="13" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
<state relative-caret-position="4686">
<caret line="256" column="47" selection-start-line="256" selection-start-column="40" selection-end-line="256" selection-end-column="47" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/UpLoadImgController.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/String.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="26" column="32" selection-start-line="26" selection-start-column="19" selection-end-line="26" selection-end-column="32" />
<state relative-caret-position="858">
<caret line="2866" column="18" selection-start-line="2866" selection-start-column="18" selection-end-line="2866" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/linPicture.html">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Random.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="242">
<caret line="11" column="43" selection-start-line="11" selection-start-column="36" selection-end-line="11" selection-end-column="43" />
<state relative-caret-position="264">
<caret line="327" column="15" selection-start-line="327" selection-start-column="15" selection-end-line="327" selection-end-column="15" />
<folding>
<element signature="e#11985#11986#0" expanded="true" />
<element signature="e#12016#12017#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/Utils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="17" column="71" lean-forward="true" selection-start-line="17" selection-start-column="71" selection-end-line="17" selection-end-column="71" />
<state relative-caret-position="441">
<caret line="37" column="25" selection-start-line="37" selection-start-column="25" selection-end-line="37" selection-end-column="25" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TextInfo.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="484">
<caret line="25" column="27" selection-start-line="25" selection-start-column="27" selection-end-line="25" selection-end-column="27" />
<state relative-caret-position="154">
<caret line="7" column="11" selection-start-line="7" selection-start-column="11" selection-end-line="7" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="441">
<caret line="228" column="35" selection-start-line="228" selection-start-column="35" selection-end-line="228" selection-end-column="35" />
<folding>
<element signature="e#7523#7524#0" expanded="true" />
<element signature="e#7574#7575#0" expanded="true" />
<element signature="e#7628#7629#0" expanded="true" />
<element signature="e#7672#7673#0" expanded="true" />
<element signature="e#7700#7701#0" expanded="true" />
<element signature="e#7731#7732#0" expanded="true" />
<element signature="e#8852#8853#0" expanded="true" />
<element signature="e#8894#8895#0" expanded="true" />
<element signature="e#8726#8727#0" expanded="true" />
<element signature="e#8768#8769#0" expanded="true" />
<element signature="e#8684#8685#0" expanded="true" />
<element signature="e#8722#8723#0" expanded="true" />
<element signature="e#9000#9001#0" expanded="true" />
<element signature="e#9039#9040#0" expanded="true" />
</folding>
<state relative-caret-position="220">
<caret line="20" column="13" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/RecordCallbackData.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="13" column="31" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="31" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
<entry file="file://$PROJECT_DIR$/xiaoai/pom.xml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSResponse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="17" column="13" selection-start-line="17" selection-start-column="13" selection-end-line="17" selection-end-column="13" />
</state>
</provider>
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/resources/application.properties">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/jdwhale/src/main/java/ai/qiwu/mqw/jdwhale/service/RequestTerminate.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/logback-spring.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="396">
<caret line="43" column="40" lean-forward="true" selection-start-line="43" selection-start-column="28" selection-end-line="43" selection-end-column="40" />
<state relative-caret-position="1650">
<caret line="75" lean-forward="true" selection-start-line="75" selection-end-line="75" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/FileSystem.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220">
<caret line="79" column="60" selection-start-line="79" selection-start-column="56" selection-end-line="79" selection-end-column="60" />
<state relative-caret-position="264">
<caret line="181" column="28" selection-start-line="181" selection-start-column="28" selection-end-line="181" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar!/org/apache/commons/lang3/StringUtils.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-5148">
<caret line="14" column="13" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" />
<state relative-caret-position="264">
<caret line="120" column="26" selection-start-line="120" selection-start-column="26" selection-end-line="120" selection-end-column="26" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java">
<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="198">
<caret line="18" column="13" selection-start-line="18" selection-start-column="13" selection-end-line="18" selection-end-column="13" />
<state relative-caret-position="314">
<caret line="119" column="20" lean-forward="true" selection-start-line="119" selection-start-column="20" selection-end-line="119" selection-end-column="20" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/SpecialCharURLConfig.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Set.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="12" column="13" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="13" />
<state relative-caret-position="528">
<caret line="224" column="12" selection-start-line="224" selection-start-column="12" selection-end-line="224" selection-end-column="12" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="261">
<caret line="20" column="11" selection-start-line="20" selection-start-column="11" selection-end-line="20" selection-end-column="11" />
<state relative-caret-position="454">
<caret line="219" column="54" selection-start-line="219" selection-start-column="54" selection-end-line="219" selection-end-column="54" />
<folding>
<element signature="e#2093#2175#0" />
<element signature="e#7852#7853#0" expanded="true" />
<element signature="e#7908#7909#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ChangeSound.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-242">
<caret line="12" column="13" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="13" />
<state relative-caret-position="660">
<caret line="37" column="5" selection-start-line="37" selection-start-column="5" selection-end-line="37" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="503">
<caret line="118" column="20" selection-start-line="118" selection-start-column="20" selection-end-line="118" selection-end-column="20" />
<state relative-caret-position="462">
<caret line="21" column="3" selection-start-line="21" selection-start-column="3" selection-end-line="21" selection-end-column="3" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="704">
<caret line="32" column="81" selection-start-line="32" selection-start-column="81" selection-end-line="32" selection-end-column="81" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="72">
<caret line="20" selection-start-line="20" selection-end-line="20" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/UUID.java">
<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="204">
<caret line="140" column="23" selection-start-line="140" selection-start-column="23" selection-end-line="140" selection-end-column="23" />
<state relative-caret-position="183">
<caret line="23" column="26" selection-start-line="23" selection-start-column="26" selection-end-line="23" selection-end-column="26" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/MultipartResolver.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSLSRequest.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="176">
<caret line="9" selection-start-line="9" selection-end-line="9" selection-end-column="31" />
<folding>
<element signature="e#386#387#0" expanded="true" />
<element signature="e#435#436#0" expanded="true" />
<element signature="e#519#520#0" expanded="true" />
<element signature="e#573#574#0" expanded="true" />
</folding>
<state relative-caret-position="264">
<caret line="17" column="13" selection-start-line="17" selection-start-column="13" selection-end-line="17" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/commons-fileupload/commons-fileupload/1.4/commons-fileupload-1.4.jar!/org/apache/commons/fileupload/FileUploadBase.class">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9-sources.jar!/org/apache/commons/lang3/StringUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="418">
<caret line="42" column="28" selection-start-line="42" selection-start-column="17" selection-end-line="42" selection-end-column="28" />
<folding>
<element signature="e#2808#2809#0" expanded="true" />
<element signature="e#2854#2855#0" expanded="true" />
</folding>
<state relative-caret-position="592">
<caret line="398" column="26" selection-start-line="398" selection-start-column="26" selection-end-line="398" selection-end-column="26" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/commons-fileupload/commons-fileupload/1.4/commons-fileupload-1.4-sources.jar!/org/apache/commons/fileupload/FileUploadBase.java">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/spring-web/5.1.8.RELEASE/spring-web-5.1.8.RELEASE-sources.jar!/org/springframework/web/multipart/MultipartFile.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="550">
<caret line="165" column="17" selection-start-line="165" selection-start-column="17" selection-end-line="165" selection-end-column="17" />
<state relative-caret-position="433">
<caret line="49" column="11" selection-start-line="49" selection-start-column="11" selection-end-line="49" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/spring-web/5.1.8.RELEASE/spring-web-5.1.8.RELEASE.jar!/org/springframework/web/multipart/commons/CommonsFileUploadSupport.class">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/ttsTest.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<caret line="52" column="16" selection-start-line="52" selection-start-column="16" selection-end-line="52" selection-end-column="16" />
<state relative-caret-position="330">
<caret line="15" selection-start-line="15" selection-end-line="15" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/spring-web/5.1.8.RELEASE/spring-web-5.1.8.RELEASE-sources.jar!/org/springframework/web/multipart/commons/CommonsFileUploadSupport.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/File.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="484">
<caret line="116" column="16" selection-start-line="116" selection-start-column="16" selection-end-line="116" selection-end-column="16" />
<state relative-caret-position="176">
<caret line="1356" lean-forward="true" selection-start-line="1356" selection-end-line="1356" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/MultipartResolver.java">
<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="396">
<caret line="18" column="49" lean-forward="true" selection-start-line="18" selection-start-column="49" selection-end-line="18" selection-end-column="49" />
<state relative-caret-position="264">
<caret line="14" column="13" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#307#308#0" expanded="true" />
<element signature="e#356#357#0" expanded="true" />
<element signature="e#440#441#0" expanded="true" />
<element signature="e#494#495#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java">
<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="83" column="13" selection-start-line="83" selection-start-column="13" selection-end-line="83" selection-end-column="13" />
<state relative-caret-position="526">
<caret line="118" column="5" selection-start-line="118" selection-start-column="5" selection-end-line="118" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/TTSUtils.java">
<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="483">
<caret line="63" column="29" lean-forward="true" selection-start-line="63" selection-start-column="29" selection-end-line="63" selection-end-column="29" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="219">
<caret line="87" column="9" lean-forward="true" selection-start-line="87" selection-start-column="9" selection-end-line="87" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/nio/charset/Charset.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="6268">
<caret line="454" column="27" selection-start-line="454" selection-start-column="27" selection-end-line="454" selection-end-column="27" />
<state relative-caret-position="308">
<caret line="14" column="78" selection-start-line="14" selection-start-column="78" selection-end-line="14" selection-end-column="78" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/zip/ZipFile.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="534">
<caret line="256" column="47" selection-start-line="256" selection-start-column="40" selection-end-line="256" selection-end-column="47" />
<state relative-caret-position="256">
<caret line="45" column="32" selection-start-line="45" selection-start-column="32" selection-end-line="45" selection-end-column="32" />
<folding>
<element signature="e#8418#8419#0" expanded="true" />
<element signature="e#8449#8450#0" expanded="true" />
<element signature="e#8845#8846#0" expanded="true" />
<element signature="e#8887#8888#0" expanded="true" />
<element signature="e#8940#8941#0" expanded="true" />
<element signature="e#8982#8983#0" expanded="true" />
<element signature="e#9168#9169#0" expanded="true" />
<element signature="e#9211#9212#0" expanded="true" />
<element signature="e#9590#9591#0" expanded="true" />
<element signature="e#9638#9639#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadCallbackResponse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="312">
<caret line="117" column="5" lean-forward="true" selection-start-line="117" selection-start-column="5" selection-end-line="117" selection-end-column="5" />
<state relative-caret-position="286">
<caret line="13" column="35" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="35" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</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="437">
<caret line="78" column="84" selection-start-line="78" selection-start-column="84" selection-end-line="78" selection-end-column="84" />
<state relative-caret-position="256">
<caret line="132" column="23" selection-start-line="132" selection-start-column="23" selection-end-line="132" selection-end-column="23" />
</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="573">
<caret line="812" column="39" lean-forward="true" selection-start-line="812" selection-start-column="39" selection-end-line="812" selection-end-column="39" />
<state relative-caret-position="446">
<caret line="899" column="55" selection-start-line="899" selection-start-column="55" selection-end-line="899" selection-end-column="55" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#23371#23417#0" />
<element signature="e#24286#24400#0" />
<element signature="e#26492#26538#0" />
<element signature="e#27407#27521#0" />
</folding>
</state>
</provider>
......
......@@ -20,7 +20,8 @@ public class Config {
private static Properties properties;
static {
String filename = "tts.properties";
//String filename = "tts.properties";
String filename = "ttsTest.properties";
properties = new Properties();
try {
properties.load(new InputStreamReader(Config.class.getClassLoader().getResourceAsStream(filename), StandardCharsets.UTF_8));
......
......@@ -99,14 +99,13 @@ public class OkHttp3Utils {
return doPost(url , new HashMap<>(), new HashMap<>(), file);
}
public static String doPostJsonStr(String url, Map<String, String> headers, String requestJsonStr) throws IOException {
public static String doPostJsonStr(String url, String requestJsonStr) throws IOException {
Request.Builder builder = new Request.Builder();
Request request = builder.url(url).build();
Headers.Builder headBuilder = request.headers().newBuilder();
Iterator<Map.Entry<String, String>> headIterator = headers.entrySet().iterator();
headIterator.forEachRemaining(e -> headBuilder.add(e.getKey(), e.getValue()));
headBuilder.add("Content-Type","application/json; charset=utf-8");
builder.headers(headBuilder.build()).post(RequestBody.create(MediaType.parse("application/json; charset=utf-8"), requestJsonStr));
try (Response response = client.newCall(builder.build()).execute()){
......
package ai.qiwu.com.tts_service.common;
import ai.qiwu.com.tts_service.service.Initialize;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
......@@ -25,6 +26,7 @@ import java.util.zip.ZipFile;
@Slf4j
public class TTSUtils {
private static final String STRIP = " /'\"";
private static final List<Character> TRIP_ENTER = Arrays.asList('\r','\n');
public static String charset(File file) {
String charset = "GB18030";
......@@ -80,6 +82,13 @@ public class TTSUtils {
return charset;
}
public static String tripEnter(String str) {
str = str.trim();
int i = str.length()-1;
while (TRIP_ENTER.contains(str.charAt(i))) --i;
return str.substring(0, i+1);
}
public static boolean checkZipFile(String zipFilePath) {
try (ZipFile zipFile = new ZipFile(zipFilePath,Charset.forName("GBK"))){
Enumeration<?> entries = zipFile.entries();
......@@ -162,11 +171,20 @@ public class TTSUtils {
public static File createFileReturnIts(String path) throws IOException {
File file = new File(path);
if (file.exists()) {
log.info("createFileReturnIts:文件:{}已存在",path);
if (file.delete()) {
if (file.createNewFile()) return new File(path);
log.info("createFileReturnIts:文件:{}已存在,删除成功",path);
if (file.createNewFile()) {
log.info("createFileReturnIts:文件:{}已存在,删除成功,创建成功",path);
return new File(path);
}
}
}else {
if (file.createNewFile()) return new File(path);
log.info("createFileReturnIts:文件:{}不存在",path);
if (file.createNewFile()) {
log.info("createFileReturnIts:文件:{}不存在,创建成功",path);
return new File(path);
}
}
return null;
}
......@@ -220,7 +238,6 @@ public class TTSUtils {
}
public static boolean doesFileExist(String filePath) {
if (filePath == null) return false;
File file = new File(filePath);
if (file.exists()) {
//log.info("文件:{},大小为:{}", filePath, file.length());
......@@ -394,7 +411,10 @@ public class TTSUtils {
public static void main(String[] args) {
File deleteBotDir = new File("/home/yf01/springbootdemo");
File[] needDelete = deleteBotDir.listFiles((dir, name) -> !name.equals("record"));
System.out.println(needDelete.length);
System.out.println(Arrays.toString(needDelete));
//System.out.println(needDelete.length);
//System.out.println(Arrays.toString(needDelete));
File file = new File("/home/yf01/en.mp3");
file.renameTo(new File("/home/yf01/springbootdemo/nihao.mp3"));
}
}
......@@ -89,12 +89,23 @@ public class TTSController {
response.setStatus(200);
}
@PostMapping("/api/upload/one_sen")
@PostMapping("/api/upload/record/one_sen")
public void uploadOneSen(MultipartFile file, Integer tid, String botName, String npcName,
String text, HttpServletResponse response) {
UploadOneSenData data = new UploadOneSenData(tid, botName, npcName, text, file);
ttService.uploadOneSen(data, response);
}
@PostMapping("/api/upload/record/one_npc")
public void uploadOneNpc(MultipartFile file, String botName, String npcName,
HttpServletResponse response) {
UploadOneSenData data = new UploadOneSenData(botName, npcName, file);
ttService.uploadOneNpc(data, response);
}
@DeleteMapping("/api/delete/record/one_sen")
public void deleteOneSen(@RequestBody UploadOneSenData data,HttpServletResponse response) {
ttService.delOneSen(data, response);
}
}
package ai.qiwu.com.tts_service.pojo.upload;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
/**
* @author 苗权威
* @dateTime 19-9-9 下午8:17
*/
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class UploadCallbackResponse {
private Integer code;
private String msg;
}
......@@ -35,4 +35,10 @@ public class UploadOneSenData {
this.npcName = npcName;
this.file = file;
}
public UploadOneSenData(String botName, String npcName, String text) {
this.botName = botName;
this.npcName = npcName;
this.text = text;
}
}
......@@ -44,6 +44,7 @@ public class Initialize implements InitializingBean {
private static final String CHANGE_SOUND;
private static final String UPLOADED_DIR;
private static final String delCacheCallbackUrl;
private static final String delRecordCallbackUrl;
private static final String record_callback_url;
private final SpeakerInfoRepository speakerInfoRepository;
......@@ -63,6 +64,7 @@ public class Initialize implements InitializingBean {
AUDIO_DIR = Config.getProperty("audio_dir");
UPLOADED_DIR = Config.getProperty("record_dir");
delCacheCallbackUrl = Config.getProperty("del_cache_callback_url");
delRecordCallbackUrl = Config.getProperty("del_record_callback_url");
record_callback_url = Config.getProperty("record_callback_url");
String[] online_sever_list = Config.getProperty("online_sever").split(",");
......@@ -233,6 +235,10 @@ public class Initialize implements InitializingBean {
return delCacheCallbackUrl;
}
public static String getDelRecordCallbackUrl() {
return delRecordCallbackUrl;
}
private static String getOnlineServer(int withOnline) {
return ONLINE_SERVER.get(withOnline);
}
......
......@@ -3,6 +3,7 @@ package ai.qiwu.com.tts_service.service;
import ai.qiwu.com.tts_service.common.*;
import ai.qiwu.com.tts_service.pojo.*;
import ai.qiwu.com.tts_service.pojo.upload.RecordCallbackData;
import ai.qiwu.com.tts_service.pojo.upload.UploadCallbackResponse;
import ai.qiwu.com.tts_service.pojo.upload.UploadOneSenData;
import ai.qiwu.com.tts_service.service.baidu.ThirdPartyService;
import com.alibaba.fastjson.JSON;
......@@ -15,6 +16,7 @@ import org.springframework.stereotype.Service;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.util.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicInteger;
......@@ -32,7 +34,6 @@ public class TTService {
private static final ThreadPoolExecutor POOL = new ThreadPoolExecutor(CORE_THREAD_NUM*2,
1500, 3, TimeUnit.SECONDS, new ArrayBlockingQueue<>(15),
new ThreadPoolExecutor.CallerRunsPolicy());
private static final String BAI_DU_FOLDER = Initialize.getAudioDir() + "/BAIDU";
private final Initialize initialize;
......@@ -189,7 +190,7 @@ public class TTService {
// person没有值或是不存在则赋予init_person
String person = info.getPerson();
if (StringUtils.isBlank(person)) person = initialize.getInit_person();
//log.info("person:{}", person);
log.info("person:{}", person);
// text 字段不为空
String text = info.getText();
......@@ -212,7 +213,7 @@ public class TTService {
}
// 获取该person的mood的url地址
url = moodUrlMap.get(tone);
//log.info("mood->url:{}", url);
log.info("mood->url:{}", url);
}
String filepath = null;
......@@ -247,7 +248,7 @@ public class TTService {
}
// 生成文件名
filepath = new StringBuilder(folder).append(File.separator).append(fileName).toString();
//log.info("tts_ls方法:filepath:{}", filepath);
log.info("tts_ls方法:filepath:{}", filepath);
}
// 若文件不存在则先下载wav文件,之后转换成mp3
......@@ -282,7 +283,7 @@ public class TTService {
}
// 阻塞等待mp3文件生成成功
//log.info("196:file list:{}", file_ls);
log.info("196:file list:{}", file_ls);
for (Future<ResponseCodeWithData> future : futures) {
try {
// ResponseCodeWithData data = future.get(60, TimeUnit.SECONDS);
......@@ -319,7 +320,7 @@ public class TTService {
String folder = StringUtils.join(parents, File.separator);
//String tmp_audio_name = String.format("%s/%s", folder, tmp_name);
String tmp_audio_name = new StringBuilder(folder).append(File.separator).append(tmp_name).toString();
//log.info("小爱tmp_audio_name:{}", tmp_audio_name);
log.info("小爱tmp_audio_name:{}", tmp_audio_name);
try {
if (!TTSUtils.doesFileExist(tmp_audio_name)) {
TTSUtils.makedir(folder);
......@@ -349,7 +350,7 @@ public class TTService {
}
String filename_64 = StringUtils.endsWith(filename, ".b64") ? filename : filename+".b64";
if (!TTSUtils.doesFileExist(filename_64)) {
// log.info("241:文件:{}不存在",filename_64);
log.info("241:文件:{}不存在",filename_64);
TTSUtils.cpContent(filename_64.substring(0, filename_64.length()-4), filename_64);
}
}
......@@ -422,7 +423,7 @@ public class TTService {
TTServiceUtil.buildServletResponse(servletResponse, new TTSResponse(404, String.format("%s的%s情绪的url为空", person, mood)), null, 404);
return;
}
//log.info("270:moodurl:{}", moodUrl);
log.info("426:moodurl:{}", moodUrl);
} else {
mood = "正常";
}
......@@ -444,7 +445,6 @@ public class TTService {
String fileName = TTSUtils.buildMP3Filename(text);
String filePath;
// (audio_dir)/botname/person/mood/xxx.mp3文件路径
//log.info("filepath:{}", filePath);
if (StringUtils.isNotBlank(npcName) && !"PUT".equals(requestMethod)) {
String uploadedFilePath = StringUtils.join(new String[]{botFolder,Initialize.getUploadedDir(),npcName,fileName}, File.separator);
if (TTSUtils.doesFileExist(uploadedFilePath)) {
......@@ -457,7 +457,7 @@ public class TTService {
TTSUtils.makedir(folder);
filePath = StringUtils.join(new String[]{folder, fileName}, File.separator);
}
log.info("filepath:{}", filePath);
TTSResponse response = null;
// _type为json,则构建请求get_audio接口的信息
if ("json".equals(ttsRequest.get_type())) {
......@@ -519,7 +519,7 @@ public class TTService {
longTime = false;
}
//long wavStartTime = System.currentTimeMillis();
//log.info("url:{}", url);
log.info("url:{}", url);
res = requestTemplate(url, data, wavFilename, longTime, getOnline);
//long wavEndTime = System.currentTimeMillis();
//log.info("wav whole time:{}", (wavEndTime-wavStartTime)/1000.0);
......@@ -538,7 +538,7 @@ public class TTService {
}else if (!fileExist) {
if (offlineService.equals(url)) {
data.setFormat("mp3");
res = requestTemplate(url , data, filePath, false, false);
res = requestTemplate(url , data, filePath, false, getOnline);
if (res.getCode() != 200) {
log.error("线下请求音频文件:{},失败:{}",filePath, res);
}
......@@ -624,20 +624,21 @@ public class TTService {
* @param longTime 线下测试超时为3s,线上为12s
* @return 返回状态码,调用方法通过此来判断方法是否成功
*/
private ResponseCodeWithData requestTemplate(String url, GeneralMP3Data data, String filePath, boolean longTime, boolean getOnline) {
private ResponseCodeWithData requestTemplate(String url, GeneralMP3Data data, String filePath,
boolean longTime, boolean getOnline) {
String dataStr = JSON.toJSONString(data);
// log.info("GeneralMP3Data:{}", dataStr);
ResponseCodeWithData res = null;
File mp3File = null;
//File mp3File = null;
for (int i = 0; i < 3; i++) {
try {
if (filePath != null) {
mp3File = TTSUtils.createFileReturnIts(filePath);
if (mp3File == null) {
log.error("requestTemplate方法创建文件:{}失败", filePath);
return new ResponseCodeWithData(555, "创建文件失败");
}
res = OkHttp3Utils.doPostTimeout(url, new HashMap<>(), dataStr, mp3File, longTime);
// mp3File = TTSUtils.createFileReturnIts(filePath);
// if (mp3File == null) {
// log.error("requestTemplate方法创建文件:{}失败", filePath);
// return new ResponseCodeWithData(555, "创建文件失败");
// }
res = OkHttp3Utils.doPostTimeout(url, new HashMap<>(), dataStr, new File(filePath), longTime);
} else {
res = OkHttp3Utils.doPostTimeout(url, new HashMap<>(), dataStr, null, longTime);
}
......@@ -650,7 +651,7 @@ public class TTService {
return new ResponseCodeWithData(402, "requestTemplate请求无法获取到结果,该请求信息是:"+data.toString());
}
int resCode = res.getCode();
//log.info("resCode:{}, offlineService:{},url:{}", resCode, offlineService, url);
log.info("resCode:{}, offlineService:{},url:{}", resCode, offlineService, url);
if (resCode == 200) {
return res;
}
......@@ -667,19 +668,19 @@ public class TTService {
}
if (initialize.doesThisMoodUrlWithOnline0(url)) {
url = initialize.getInit_url();
//log.info("requestTemplate方法,init_url:{}",url);
log.info("requestTemplate方法,init_url:{}",url);
}
List<String> personTon = Initialize.getUrl2PersonTon(url);
data.setPerson(personTon.get(0));
data.setTone(personTon.get(1));
dataStr = JSON.toJSONString(data);
res = requestLongTimeout(url, dataStr, mp3File);
break;
res = requestLongTimeout(url, dataStr, new File(filePath));
log.info("requestLongTimeout返回结果:{}",res.getCode());
} catch (Exception e) {
log.error("person:{},mood:{}, url not found", person, mood);
res = null;
break;
}
break;
}
}
if (res == null) {
......@@ -744,8 +745,7 @@ public class TTService {
}
public void uploadOneSen(UploadOneSenData data, HttpServletResponse response) {
if (StringUtils.isBlank(data.getBotName()) || StringUtils.isBlank(data.getNpcName()) ||
StringUtils.isBlank(data.getText()) || data.getFile() == null) {
if (StringUtils.isAnyBlank(data.getBotName(), data.getNpcName(), data.getText()) || data.getFile() == null) {
TTServiceUtil.buildUploadResponse(response, new TTSResponse(400, "参数不能为空"), 400);
return;
}
......@@ -765,13 +765,11 @@ public class TTService {
} catch (IOException e) {
log.error("写入文件出错:{}",ExceptionUtils.getStackTrace(e));
}
RecordCallbackData callbackData = new RecordCallbackData();
callbackData.setTid(data.getTid());
// RecordCallbackData callbackData = new RecordCallbackData();
// callbackData.setTid(data.getTid());
String msg="";
try {
HashMap<String,String> header = new HashMap<>();
header.put("Content-Type","application/json; charset=utf-8");
msg = OkHttp3Utils.doPostJsonStr(Initialize.getRecord_callback_url(), header, JSON.toJSONString(callbackData));
msg = OkHttp3Utils.doPostJsonStr(Initialize.getRecord_callback_url(), JSON.toJSONString(data.getTid()));
} catch (Exception e) {
msg = "post record_callback_url error";
log.error("post record_callback_url error:{}",ExceptionUtils.getStackTrace(e));
......@@ -779,12 +777,18 @@ public class TTService {
TTServiceUtil.buildUploadResponse(response, new TTSResponse(200,msg), 200);
}
public static void uploadOneNpc(UploadOneSenData data, HttpServletResponse response) {
String folder = StringUtils.join(new String[]{Initialize.getAudioDir(), data.getBotName(),
public void uploadOneNpc(UploadOneSenData data, HttpServletResponse response) {
final String folder = StringUtils.join(new String[]{Initialize.getAudioDir(), data.getBotName(),
Initialize.getUploadedDir(), data.getNpcName()}, File.separator);
TTSUtils.makedir(folder);
String filename = new StringBuilder("/tmp/audio_zip/").append(System.currentTimeMillis()).append(".zip").toString();
TTSUtils.makedir("/tmp/audio_zip");
long currentTime = System.currentTimeMillis();
final String zipFolder = new StringBuilder(folder).append(File.separator).append(currentTime).toString();
TTSUtils.makedir(zipFolder);
String zipFilename = data.getFile().getName();
if (zipFilename == null) zipFilename = new StringBuilder(String.valueOf(currentTime)).append(".zip").toString();
else if (!StringUtils.endsWith(zipFilename, ".zip")) zipFilename = zipFilename+".zip";
String filename = new StringBuilder(zipFolder).append(File.separator).append(zipFilename).toString();
try {
data.getFile().transferTo(new File(filename));
} catch (IOException e) {
......@@ -796,21 +800,162 @@ public class TTService {
TTServiceUtil.buildUploadResponse(response, new TTSResponse(400, "压缩包结构不正确"), 400);
return;
}
if (!TTSUtils.unZip(folder, filename)) {
if (!TTSUtils.unZip(zipFolder, filename)) {
TTServiceUtil.buildUploadResponse(response, new TTSResponse(555, "压缩包解压失败"), 555);
return;
}
if (!new File(filename).delete()) {
log.error("压缩包:{}删除失败",filename);
}
File[] cvsFiles = new File(folder).listFiles((dir, name) -> StringUtils.endsWith(name, ".csv"));
if (cvsFiles == null || cvsFiles.length != 1) {
int count = cvsFiles == null ? 0 : cvsFiles.length;
// if (!new File(filename).delete()) {
// log.error("压缩包:{}删除失败",filename);
// }
File[] csvFiles = new File(zipFolder).listFiles((dir, name) -> StringUtils.endsWith(name, ".csv"));
if (csvFiles == null || csvFiles.length != 1) {
int count = csvFiles == null ? 0 : csvFiles.length;
TTServiceUtil.buildUploadResponse(response, new TTSResponse(400, "csv文件数量为"+count), 400);
return;
}
File cvsFile = cvsFiles[0];
String encoding = TTSUtils.charset(cvsFile);
File csvFile = csvFiles[0];
String encoding = TTSUtils.charset(csvFile);
List<String> successUpLoadFileIds = new ArrayList<>();
HashMap<String,String> origin2finallyName = new HashMap<>();
HashMap<String,String> oldNameToId = new HashMap<>();
HashMap<String,String> allFailUpLoadList = new HashMap<>();
boolean unExpectException = false;
int count = 0;
try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(csvFile), Charset.forName(encoding)))){
String row;
while ((row = reader.readLine()) != null) {
row = TTSUtils.tripEnter(row);
// id,text,isUpload,filename
String[] arr = row.split(",");
String audioFileName = arr[3];
if (StringUtils.isNotBlank(audioFileName)) {
count++;
audioFileName = StringUtils.endsWith(audioFileName,".mp3") ? audioFileName : audioFileName+".mp3";
if (origin2finallyName.containsKey(audioFileName)) {
allFailUpLoadList.put(arr[0], String.format("名字与id是%s的文件名相同",oldNameToId.get(audioFileName)));
continue;
}
String fileInPackage = new StringBuilder(zipFolder).append(File.separator).append(audioFileName).toString();
String md5Name = TTSUtils.buildMP3Filename(arr[1]);
String usFilename = new StringBuilder(folder).append(File.separator).append(md5Name).toString();
if (TTSUtils.doesFileExist(fileInPackage)) {
File usFile = new File(usFilename);
boolean result=true;
if (TTSUtils.doesFileExist(usFilename)) {
result = usFile.delete();
}
if (result) {
String freshPath = new StringBuilder(folder).append(File.separator)
.append().toString();
String oldPath = new StringBuilder(zipFolder).append(File.separator).append(oldFileName).toString();
if (new File(oldPath).renameTo(new File(freshPath))) {
successUpLoadFileIds.add(oldNameToId.get(oldFileName));
}
origin2finallyName.put(audioFileName, md5Name);
oldNameToId.put(audioFileName, arr[0]);
//result = new File(fileInPackage).renameTo(usFile);
// if (result) {
// successUpLoadFileIds.add(arr[0]);
// }else {
// log.error("更改名字失败,原名:{},新名:{}",fileInPackage, usFilename);
// }
}else {
allFailUpLoadList.put(arr[0], "程序原因,请重新上传");
log.error("删除之前的就音频失败:{}",fileInPackage);
}
}
else {
allFailUpLoadList.put(arr[0], "压缩包中没有该mp3文件");
}
}
}
// boolean result = csvFile.delete();
// if (!result) log.error("删除csv文件失败:{}",csvFile.getAbsolutePath());
} catch (Exception e) {
// boolean result = csvFile.delete();
// if (result) log.error("解析csv文件出错:{}",ExceptionUtils.getStackTrace(e));
// else log.error("解析csv文件出错,且删除cvs文件:{}失败:{}",csvFile.getAbsolutePath(),ExceptionUtils.getStackTrace(e));
unExpectException = true;
log.error("解析csv文件出错:{}",ExceptionUtils.getStackTrace(e));
}
String msg = "失败请重新上传;";
if (origin2finallyName.size() != 0) {
for (String oldFileName : origin2finallyName.keySet()) {
String freshPath = new StringBuilder(folder).append(File.separator)
.append(origin2finallyName.get(oldFileName)).toString();
String oldPath = new StringBuilder(zipFolder).append(File.separator).append(oldFileName).toString();
if (new File(oldPath).renameTo(new File(freshPath))) {
successUpLoadFileIds.add(oldNameToId.get(oldFileName));
}
}
try {
String str = OkHttp3Utils.doPostJsonStr(Initialize.getRecord_callback_url(), JSON.toJSONString(successUpLoadFileIds));
if (str != null) {
UploadCallbackResponse callbackResponse = JSON.parseObject(str, UploadCallbackResponse.class);
if (callbackResponse.getCode() == 200) {
msg = new StringBuilder("已成功上传的文件id列表:").append(JSON.toJSONString(successUpLoadFileIds)).toString();
if (!unExpectException) {
int failCount;
if ((failCount=allFailUpLoadList.size()) == 0) {
msg = String.format("本次上传的全部%d个文件全部成功",count);
}
else {
msg = new StringBuilder("本次总共上传文件数").append(count).append(";其中成功上传")
.append(successUpLoadFileIds.size()).append("个文件;").append("\n").append("未成功个数").append(failCount)
.append(";它们的id以及失败原因如下:").append(allFailUpLoadList).toString();
}
}else {
int failCount;
if ((failCount=allFailUpLoadList.size()) == 0) {
msg = new StringBuilder("本次成功上传了").append(count)
.append("个文件,剩下的并未成功,请对照下面的成功id列表进行检查:")
.append(successUpLoadFileIds).toString();
}
else {
msg = new StringBuilder("本次成功上传了").append(count).append("个文件;").append("\n")
.append("未成功个数").append(failCount)
.append(";已知的失败文件id及原因如下:").append(allFailUpLoadList)
.append("其余部分皆未成功,请重新上传这些失败的文件").toString();
}
}
}else if (callbackResponse.getMsg() != null) msg = new StringBuilder(msg).append(callbackResponse.getMsg()).toString();
}
} catch (Exception e) {
log.error("回调出现错误:{}",ExceptionUtils.getStackTrace(e));
}
}
POOL.submit(() -> TTSUtils.deleteFile(new File(zipFolder)));
TTServiceUtil.buildUploadResponse(response, new TTSResponse(200, msg), 200);
}
public void delOneSen(UploadOneSenData data, HttpServletResponse response) {
if (StringUtils.isAnyBlank(data.getBotName(),data.getNpcName(),data.getText())) {
TTServiceUtil.buildUploadResponse(response, new TTSResponse(400, "参数不对"), 400);
return;
}
String filePath = StringUtils.join(Arrays.asList(Initialize.getAudioDir(), data.getBotName(),
Initialize.getUploadedDir(), data.getNpcName(), TTSUtils.buildMP3Filename(data.getText())), File.separator);
boolean result = true;
if (TTSUtils.doesFileExist(filePath)) {
result = new File(filePath).delete();
}
if (result) {
String msg=null;
try {
String str = OkHttp3Utils.doPostJsonStr(Initialize.getDelRecordCallbackUrl(), JSON.toJSONString(data.getTid()));
log.info("删除地址回调结果:{}",str);
} catch (Exception e) {
msg = "post del_record_callback error";
log.error("删除地址回调出错:{}",ExceptionUtils.getStackTrace(e));
}
TTServiceUtil.buildUploadResponse(response, new TTSResponse(200, msg), 200);
}else {
log.info("delOneSen删除文件失败:{}",filePath);
TTServiceUtil.buildUploadResponse(response, new TTSResponse(555, "删除文件失败"), 555);
}
}
}
......@@ -19,16 +19,16 @@ spring:
ansi:
enabled: detect
logging:
path: /home/ubuntu/project/tts/logs
#path: /root/GameEditor/mqw/project/ttsTest/logs
#path: /home/ubuntu/project/tts/logs
path: /root/GameEditor/mqw/project/ttsTest/logs
level:
root: info
server:
port: 9663
#port: 8188
#port: 9663
port: 8188
tomcat:
accesslog:
enabled: true
pattern: '%h %l %u %t "%r" %s %b bytes %D ms'
directory: /home/ubuntu/project/tts/tomcat
#directory: /root/GameEditor/mqw/project/ttsTest/tomcat
\ No newline at end of file
#directory: /home/ubuntu/project/tts/tomcat
directory: /root/GameEditor/mqw/project/ttsTest/tomcat
\ No newline at end of file
#server_name=hz1
server_name=aws-nx2
server_url=http://aws-nx2.chewrobot.com:9663
#server_url=http://aliyun-hz1.chewrobot.com:9663
audio_dir=/root/TTS-service/audio
record_dir=record
#audio_dir=/root/GameEditor/mqw/project/tts/audio
online_sever=1:http://dev01.centaurstech.com,2:http://dev01.centaurstech.com
offline_server=http://dev01.centaurstech.com:9001
#offline_server=http://aliyun-hz1.chewrobot.com:9001
#第三方tts标记
third_party_tts_text =third_party_tts
......@@ -16,3 +12,4 @@ python_interpreter=/usr/bin/python3
change_sound_path=/root/GameEditor/mqw/project/tts/pythonCode/audios.py
del_cache_callback_url=http://localhost:18082/text/offline/delCache/callback
record_callback_url=http://localhost:18082/text/offline/upload/callback
del_record_callback_url=http://localhost:18082/text/offline/delUpload/callback
\ No newline at end of file
server_name=hz1
server_url=https://aliyun-hz1.chewrobot.com/mqw
record_dir=record
audio_dir=/root/GameEditor/mqw/project/tts/audio
online_sever=1:http://dev01.centaurstech.com,2:http://dev01.centaurstech.com
offline_server=http://dev01.centaurstech.com:9001
#第三方tts标记
third_party_tts_text =third_party_tts
del_cache_callback_url=http://localhost:18082/text/offline/delCache/callback
record_callback_url=http://localhost:18082/text/offline/upload/callback
del_record_callback_url=http://localhost:18082/text/offline/delUpload/callback
python_interpreter=/usr/bin/python3
#change_sound_path=/root/GameEditor/mqw/project/tts/pythonCode/audios.py
......@@ -2,6 +2,7 @@ package ai.qiwu.mi.xiaoai.commons;
import ai.qiwu.mi.xiaoai.model.QiWuRequest;
import ai.qiwu.mi.xiaoai.model.QiWuResponse;
import ai.qiwu.mi.xiaoai.service.XiaoAiService;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
......@@ -24,7 +25,12 @@ public class RequestTerminal {
//log.info("向终端发出请求的参数信息:{}", requestJsonStr);
HashMap<String, String> headers = new HashMap<>();
headers.put("Content-Type", "application/json;charset=utf-8");
String resStr = OkHttp3Utils.doPostJsonStr(XiaoAiConstants.QI_WU_TERMINATE, headers, requestJsonStr);
String resStr;
if (userId.equals(XiaoAiService.deviceId)) {
resStr = OkHttp3Utils.doPostJsonStr(XiaoAiConstants.QI_WU_TERMINATE_DIDI, headers, requestJsonStr);
}else {
resStr = OkHttp3Utils.doPostJsonStr(XiaoAiConstants.QI_WU_TERMINATE_nx2, headers, requestJsonStr);
}
if (resStr == null) {
return null;
}
......
......@@ -5,8 +5,8 @@ package ai.qiwu.mi.xiaoai.commons;
* @dateTime 19-7-5 下午8:56
*/
public interface XiaoAiConstants {
String QI_WU_TERMINATE = "http://didi-gz2.jiaoyou365.com:8070/api/chat2";
//String QI_WU_TERMINATE = "http://aws-nx2.chewrobot.com:8070/api/chat2";
String QI_WU_TERMINATE_DIDI = "http://didi-gz2.jiaoyou365.com:8070/api/chat2";
String QI_WU_TERMINATE_nx2 = "http://aws-nx2.chewrobot.com:8070/api/chat2";
String DEVICE_NAME = "XIAOAI";
String CONTENT_TYPE = "application/json;charset=utf-8";
String PLAYBACK_NEARLY_FINISHED = "mediaplayer.playbacknearlyfinished";
......@@ -23,7 +23,7 @@ public interface XiaoAiConstants {
String WELCOME_WORD = "欢迎来到交游天下,海量的作品在这等您";
String END_BYE = "我们的作品库在不断扩充,欢迎再来玩";
String END_WORD = "退出";
String USER_IDLE = "小悟在等你的回复哦";
String USER_IDLE = "小悟在等你的回复";
String ANOTHER_USER_IDLE = "再不回复我,那我可退出喽";
}
}
......@@ -36,11 +36,13 @@ public class XiaoAiService {
2500, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(CORE), new ThreadPoolExecutor.CallerRunsPolicy());
private static final ConcurrentHashMap<String, XiaoAiResponse> LAST_OUTTIME_RESULT = new ConcurrentHashMap<>();
public static volatile String deviceId;
public XiaoAiResponse getResponse(XiaoAiRequest request) {
String userId = getUserId(request);
int type = request.getRequest().getType();
switch (type) {
case 0 : return dealWithLaunchRequest();
case 0 : return dealWithLaunchRequest(request);
case 1 : return dealWithIntentRequest(request, userId);
case 2 : return dealWithEndRequest(userId);
default: return buildTextResponse(SORRY_REPEAT);
......@@ -130,7 +132,8 @@ public class XiaoAiService {
return response;
}
private XiaoAiResponse dealWithLaunchRequest() {
private XiaoAiResponse dealWithLaunchRequest(XiaoAiRequest request) {
if (deviceId == null) deviceId = getUserId(request);
return buildTextResponse(TTS.WELCOME_WORD);
}
......@@ -141,7 +144,14 @@ public class XiaoAiService {
if (response != null) return response;
//log.info("用户没说话");
//return buildTextResponse(".");
return buildTextResponse((new Random(47).nextInt(666) & 1) == 1 ? TTS.USER_IDLE : TTS.ANOTHER_USER_IDLE);
try {
//log.info("开始等待");
Thread.sleep(1800);
//log.info("等待OVER");
} catch (InterruptedException e) {
log.warn("等待中断");
}
return buildTextResponse((new Random(47).nextInt() & 1) == 1 ? TTS.USER_IDLE : TTS.ANOTHER_USER_IDLE);
}
XiaoAiResponse response = getLastResult(userId);
if (response != null) return response;
......@@ -184,12 +194,8 @@ public class XiaoAiService {
return Utils.modifyDeviceId(userId);
}
public XiaoAiResponse getLastResult(String userId) {
XiaoAiResponse response;
if ((response = LAST_OUTTIME_RESULT.get(userId)) != null) {
LAST_OUTTIME_RESULT.remove(userId);
}
return response;
private XiaoAiResponse getLastResult(String userId) {
return LAST_OUTTIME_RESULT.remove(userId);
}
class Task implements Runnable {
......
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<property resource="logback.properties"/>
<appender name="CONSOLE-LOG" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>[%d{yyyy-MM-dd' 'HH:mm:ss.sss}] [%C] [%t] [%L] [%-5p] %m%n</pattern>
</layout>
</appender>
<!--获取比info级别高(包括info级别)但除error级别的日志-->
<appender name="INFO-LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>DENY</onMatch>
<onMismatch>ACCEPT</onMismatch>
</filter>
<encoder>
<pattern>[%d{yyyy-MM-dd' 'HH:mm:ss.sss}] [%C] [%t] [%L] [%-5p] %m%n</pattern>
</encoder>
<!--滚动策略-->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--路径-->
<fileNamePattern>${LOG_INFO_HOME}//%d.log</fileNamePattern>
<maxHistory>30</maxHistory>
</rollingPolicy>
</appender>
<appender name="ERROR-LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>ERROR</level>
</filter>
<encoder>
<pattern>[%d{yyyy-MM-dd' 'HH:mm:ss.sss}] [%C] [%t] [%L] [%-5p] %m%n</pattern>
</encoder>
<!--滚动策略-->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--路径-->
<fileNamePattern>${LOG_ERROR_HOME}//%d.log</fileNamePattern>
<maxHistory>30</maxHistory>
</rollingPolicy>
</appender>
<!-- 异步输出 -->
<appender name="ASYNC-INFO" class="ch.qos.logback.classic.AsyncAppender">
<!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 -->
<discardingThreshold>0</discardingThreshold>
<!-- 更改默认的队列的深度,该值会影响性能.默认值为256 -->
<queueSize>256</queueSize>
<!-- 添加附加的appender,最多只能添加一个 -->
<appender-ref ref="INFO-LOG"/>
</appender>
<appender name="ASYNC-ERROR" class="ch.qos.logback.classic.AsyncAppender">
<!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 -->
<discardingThreshold>0</discardingThreshold>
<!-- 更改默认的队列的深度,该值会影响性能.默认值为256 -->
<queueSize>256</queueSize>
<!-- 添加附加的appender,最多只能添加一个 -->
<appender-ref ref="ERROR-LOG"/>
</appender>
<root level="info">
<appender-ref ref="CONSOLE-LOG" />
<appender-ref ref="ASYNC-INFO" />
<appender-ref ref="ASYNC-ERROR" />
</root>
</configuration>
\ No newline at end of file
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