Commit 0bfe5351 by 苗权威

8.3

parent 7df5f4da
...@@ -2,17 +2,12 @@ ...@@ -2,17 +2,12 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="4a2f3afc-3cd8-46bb-9e78-9759246c43dc" name="Default Changelist" comment=""> <list default="true" id="4a2f3afc-3cd8-46bb-9e78-9759246c43dc" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/encodings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaodu/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/pom.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/XiaoduApplication.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/XiaoduApplication.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$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Utils.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Utils.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$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/AudioUrlAndText.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/AudioUrlAndText.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$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/RequestTerminal.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/RequestTerminal.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaodu/src/main/resources/application.properties" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/src/main/resources/application.properties" afterDir="false" />
</list> </list>
<ignored path="$PROJECT_DIR$/out/" /> <ignored path="$PROJECT_DIR$/out/" />
<ignored path="$PROJECT_DIR$/target/" /> <ignored path="$PROJECT_DIR$/target/" />
...@@ -66,11 +61,11 @@ ...@@ -66,11 +61,11 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="452"> <state relative-caret-position="356">
<caret line="313" column="23" selection-start-line="313" selection-start-column="19" selection-end-line="313" selection-end-column="23" /> <caret line="74" column="38" selection-start-line="74" selection-start-column="38" selection-end-line="74" selection-end-column="38" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
</folding> </folding>
...@@ -78,55 +73,60 @@ ...@@ -78,55 +73,60 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="true">
<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/java/ai/qiwu/com/tts_service/controller/OfflineController.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220"> <state relative-caret-position="56">
<caret line="22" column="38" selection-start-line="22" selection-start-column="38" selection-end-line="22" selection-end-column="38" /> <caret line="27" column="8" selection-start-line="27" selection-start-column="8" selection-end-line="27" selection-end-column="8" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#552#553#0" expanded="true" />
<element signature="e#604#605#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <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/service/offline/OfflineService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="140"> <state relative-caret-position="496">
<caret line="80" column="23" selection-start-line="80" selection-start-column="23" selection-end-line="80" selection-end-column="23" /> <caret line="33" column="28" selection-start-line="33" selection-start-column="16" selection-end-line="33" selection-end-column="28" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
<element signature="e#818#819#0" expanded="true" />
<element signature="e#868#869#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <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/common/CallPython.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="614"> <state relative-caret-position="-264">
<caret line="106" column="26" selection-start-line="106" selection-start-column="15" selection-end-line="106" selection-end-column="26" /> <caret line="6" column="33" selection-start-line="6" selection-start-column="33" selection-end-line="6" selection-end-column="33" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#4366#4367#0" expanded="true" />
<element signature="e#4400#4401#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OfflineServiceUtil.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="44"> <state relative-caret-position="422">
<caret line="2" column="15" lean-forward="true" selection-start-line="2" selection-start-column="15" selection-end-line="2" selection-end-column="15" /> <caret line="29" column="40" selection-start-line="29" selection-start-column="40" selection-end-line="29" selection-end-column="40" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <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/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="430"> <state relative-caret-position="558">
<caret line="152" column="24" lean-forward="true" selection-start-line="152" selection-start-column="24" selection-end-line="152" selection-end-column="24" /> <caret line="44" column="16" lean-forward="true" selection-start-line="44" selection-start-column="16" selection-end-line="44" selection-end-column="16" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
</folding> </folding>
...@@ -135,10 +135,13 @@ ...@@ -135,10 +135,13 @@
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OfflineConfig.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="218"> <state relative-caret-position="550">
<caret line="21" lean-forward="true" selection-start-line="21" selection-end-line="21" /> <caret line="25" column="34" selection-start-line="25" selection-start-column="34" selection-end-line="25" selection-end-column="34" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -170,11 +173,13 @@ ...@@ -170,11 +173,13 @@
<find>Config</find> <find>Config</find>
<find>StringUtils.join</find> <find>StringUtils.join</find>
<find>_type</find> <find>_type</find>
<find>500</find>
</findStrings> </findStrings>
<replaceStrings> <replaceStrings>
<replace>OPENID_CACHE</replace> <replace>OPENID_CACHE</replace>
<replace>log</replace> <replace>log</replace>
<replace>PERSON_INFO_ONLINE</replace> <replace>PERSON_INFO_ONLINE</replace>
<replace>555</replace>
</replaceStrings> </replaceStrings>
</component> </component>
<component name="Git.Settings"> <component name="Git.Settings">
...@@ -183,13 +188,6 @@ ...@@ -183,13 +188,6 @@
<component name="IdeDocumentHistory"> <component name="IdeDocumentHistory">
<option name="CHANGED_PATHS"> <option name="CHANGED_PATHS">
<list> <list>
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/application.properties" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Constants.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/resources/templates/Product.html" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/XiaoDuController.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/resources/templates/Oauth2_load.html" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/Oauth2Controller.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/resources/templates/home_load.html" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/XiaoduApplication.java" /> <option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/XiaoduApplication.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/QiWuRequest.java" /> <option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/QiWuRequest.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/RequestTerminal.java" /> <option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/RequestTerminal.java" />
...@@ -197,7 +195,6 @@ ...@@ -197,7 +195,6 @@
<option value="$PROJECT_DIR$/xiaodu/pom.xml" /> <option value="$PROJECT_DIR$/xiaodu/pom.xml" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Utils.java" /> <option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Utils.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/AudioUrlAndText.java" /> <option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/AudioUrlAndText.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/SpeakerInfo.java" /> <option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/SpeakerInfo.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/PersonInfo.java" /> <option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/PersonInfo.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/OnlineCache.java" /> <option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/OnlineCache.java" />
...@@ -227,13 +224,21 @@ ...@@ -227,13 +224,21 @@
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TextInfo.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/pom.xml" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java" /> <option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java" />
<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/service/Initialize.java" /> <option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/resources/tts.properties" /> <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/common/CallPython.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/common/OkHttp3Utils.java" />
<option value="$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.java" />
<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/OfflineConfig.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/service/TTService.java" /> <option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/offline/OfflineOnlineCacheRequest.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OfflineServiceUtil.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/offline/OfflineOnlineCacheResponse.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/offline/OfflineService.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/offline/SpeakersApi.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/OfflineController.java" />
</list> </list>
</option> </option>
</component> </component>
...@@ -275,8 +280,8 @@ ...@@ -275,8 +280,8 @@
<option name="skipTests" value="true" /> <option name="skipTests" value="true" />
</component> </component>
<component name="ProjectFrameBounds"> <component name="ProjectFrameBounds">
<option name="x" value="745" /> <option name="x" value="471" />
<option name="y" value="32" /> <option name="y" value="76" />
<option name="width" value="1409" /> <option name="width" value="1409" />
<option name="height" value="1023" /> <option name="height" value="1023" />
</component> </component>
...@@ -360,7 +365,7 @@ ...@@ -360,7 +365,7 @@
<item name="main" type="462c0819:PsiDirectoryNode" /> <item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" /> <item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" /> <item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="entity" type="462c0819:PsiDirectoryNode" /> <item name="pojo" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -370,7 +375,8 @@ ...@@ -370,7 +375,8 @@
<item name="main" type="462c0819:PsiDirectoryNode" /> <item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" /> <item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" /> <item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="repository" type="462c0819:PsiDirectoryNode" /> <item name="pojo" type="462c0819:PsiDirectoryNode" />
<item name="offline" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -390,17 +396,6 @@ ...@@ -390,17 +396,6 @@
<item name="main" type="462c0819:PsiDirectoryNode" /> <item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" /> <item name="resources" type="462c0819:PsiDirectoryNode" />
</path> </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>
</expand> </expand>
<select /> <select />
</subPane> </subPane>
...@@ -417,7 +412,7 @@ ...@@ -417,7 +412,7 @@
<property name="RequestMappingsPanelWidth2" value="75" /> <property name="RequestMappingsPanelWidth2" value="75" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" /> <property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1564812546670" /> <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1564825646066" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../security/p1o6vt" /> <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_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" /> <property name="nodejs_npm_path_reset_for_default_project" value="true" />
...@@ -462,7 +457,7 @@ ...@@ -462,7 +457,7 @@
</list> </list>
</option> </option>
</component> </component>
<component name="RunManager" selected="Spring Boot.TtsServiceApplication"> <component name="RunManager" selected="Application.OfflineService">
<configuration name="CallPython" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <configuration name="CallPython" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="ai.qiwu.com.tts_service.common.CallPython" /> <option name="MAIN_CLASS_NAME" value="ai.qiwu.com.tts_service.common.CallPython" />
<module name="tts_service" /> <module name="tts_service" />
...@@ -476,12 +471,12 @@ ...@@ -476,12 +471,12 @@
<option name="Make" enabled="true" /> <option name="Make" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="LoadBySMS" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <configuration name="OfflineService" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="ai.qiwu.baidu.xiaodu.service.LoadBySMS" /> <option name="MAIN_CLASS_NAME" value="ai.qiwu.com.tts_service.service.offline.OfflineService" />
<module name="xiaodu" /> <module name="tts_service" />
<extension name="coverage"> <extension name="coverage">
<pattern> <pattern>
<option name="PATTERN" value="ai.qiwu.baidu.xiaodu.service.*" /> <option name="PATTERN" value="ai.qiwu.com.tts_service.service.offline.*" />
<option name="ENABLED" value="true" /> <option name="ENABLED" value="true" />
</pattern> </pattern>
</extension> </extension>
...@@ -833,7 +828,6 @@ ...@@ -833,7 +828,6 @@
</method> </method>
</configuration> </configuration>
<list> <list>
<item itemvalue="Application.LoadBySMS" />
<item itemvalue="Application.Utils" /> <item itemvalue="Application.Utils" />
<item itemvalue="Application.TTSUtils" /> <item itemvalue="Application.TTSUtils" />
<item itemvalue="Application.CallPython" /> <item itemvalue="Application.CallPython" />
...@@ -857,14 +851,15 @@ ...@@ -857,14 +851,15 @@
<item itemvalue="Spring Boot.ThirdPartyLoadApplication" /> <item itemvalue="Spring Boot.ThirdPartyLoadApplication" />
<item itemvalue="Spring Boot.XiaoduhomeApplication" /> <item itemvalue="Spring Boot.XiaoduhomeApplication" />
<item itemvalue="Spring Boot.TtsServiceApplication" /> <item itemvalue="Spring Boot.TtsServiceApplication" />
<item itemvalue="Application.OfflineService" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Application.OfflineService" />
<item itemvalue="Application.CallPython" /> <item itemvalue="Application.CallPython" />
<item itemvalue="Application.TTSUtils" /> <item itemvalue="Application.TTSUtils" />
<item itemvalue="JUnit.TtsServiceApplicationTests.createFileTest" /> <item itemvalue="JUnit.TtsServiceApplicationTests.createFileTest" />
<item itemvalue="Application.Utils" /> <item itemvalue="Application.Utils" />
<item itemvalue="Application.LoadBySMS" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -921,7 +916,7 @@ ...@@ -921,7 +916,7 @@
<workItem from="1564536798043" duration="36015000" /> <workItem from="1564536798043" duration="36015000" />
<workItem from="1564622494207" duration="34612000" /> <workItem from="1564622494207" duration="34612000" />
<workItem from="1564709875705" duration="36677000" /> <workItem from="1564709875705" duration="36677000" />
<workItem from="1564794366344" duration="14962000" /> <workItem from="1564794366344" duration="25639000" />
</task> </task>
<servers /> <servers />
</component> </component>
...@@ -931,7 +926,7 @@ ...@@ -931,7 +926,7 @@
</history-entry> </history-entry>
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="899227000" /> <option name="totallyTimeSpent" value="909904000" />
</component> </component>
<component name="TodoView"> <component name="TodoView">
<todo-panel id="selected-file"> <todo-panel id="selected-file">
...@@ -943,7 +938,7 @@ ...@@ -943,7 +938,7 @@
</todo-panel> </todo-panel>
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="643" y="65" width="1409" height="1023" extended-state="0" /> <frame x="471" y="76" width="1409" height="1023" extended-state="0" />
<editor active="true" /> <editor active="true" />
<layout> <layout>
<window_info id="Structure" order="0" sideWeight="0.50689656" side_tool="true" weight="0.22042616" /> <window_info id="Structure" order="0" sideWeight="0.50689656" side_tool="true" weight="0.22042616" />
...@@ -963,7 +958,7 @@ ...@@ -963,7 +958,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" weight="0.3298122" /> <window_info anchor="bottom" id="TODO" order="6" weight="0.3298122" />
<window_info anchor="bottom" id="Spring" order="7" weight="0.32902467" /> <window_info anchor="bottom" id="Spring" order="7" weight="0.32902467" />
<window_info anchor="bottom" id="Terminal" order="8" weight="0.3274648" /> <window_info anchor="bottom" id="Terminal" order="8" weight="0.3264368" />
<window_info anchor="bottom" id="Docker" order="9" show_stripe_button="false" /> <window_info anchor="bottom" id="Docker" order="9" show_stripe_button="false" />
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" weight="0.32979977" /> <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" weight="0.32979977" />
<window_info anchor="bottom" id="Java Enterprise" order="11" /> <window_info anchor="bottom" id="Java Enterprise" order="11" />
...@@ -1026,87 +1021,6 @@ ...@@ -1026,87 +1021,6 @@
<option name="version" value="1" /> <option name="version" value="1" />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Double.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="479">
<caret line="536" column="25" selection-start-line="536" selection-start-column="25" selection-end-line="536" selection-end-column="25" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/ChangeSound.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="281">
<caret line="965" column="16" selection-start-line="965" selection-start-column="16" selection-end-line="965" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/FilterInputStream.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="347">
<caret line="105" column="15" selection-start-line="105" selection-start-column="15" selection-end-line="105" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/concurrent/Executors.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="281">
<caret line="87" column="34" selection-start-line="87" selection-start-column="34" selection-end-line="87" selection-end-column="34" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/concurrent/ExecutorService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="404">
<caret line="235" column="18" selection-start-line="235" selection-start-column="18" selection-end-line="235" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/concurrent/Future.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="293">
<caret line="150" column="6" selection-start-line="150" selection-start-column="6" selection-end-line="150" selection-end-column="6" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/List.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="281">
<caret line="110" column="17" selection-start-line="110" selection-start-column="17" selection-end-line="110" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/ArrayList.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="106" column="41" selection-start-line="106" selection-start-column="41" selection-end-line="106" selection-end-column="41" />
<folding>
<element signature="e#6283#6284#0" expanded="true" />
<element signature="e#6351#6352#0" expanded="true" />
<element signature="e#13713#13714#0" expanded="true" />
<element signature="e#13768#13769#0" expanded="true" />
<element signature="e#24721#24722#0" expanded="true" />
<element signature="e#24775#24776#0" expanded="true" />
<element signature="e#46731#46732#0" expanded="true" />
<element signature="e#46796#46797#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/AbstractList.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="281">
<caret line="70" column="22" selection-start-line="70" selection-start-column="22" selection-end-line="70" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Arrays.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="3207" column="28" selection-start-line="3207" selection-start-column="28" selection-end-line="3207" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/javax/sound/sampled/Clip.java"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/javax/sound/sampled/Clip.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-2227"> <state relative-caret-position="-2227">
...@@ -1245,16 +1159,6 @@ ...@@ -1245,16 +1159,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<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="284">
<caret line="30" column="25" selection-start-line="30" selection-start-column="25" selection-end-line="30" selection-end-column="25" />
<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/pojo/ResponseCodeWithData.java"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/ResponseCodeWithData.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374"> <state relative-caret-position="374">
...@@ -1312,16 +1216,6 @@ ...@@ -1312,16 +1216,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="37" column="27" lean-forward="true" selection-start-line="37" selection-start-column="27" selection-end-line="37" selection-end-column="27" />
<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/service/Initialize.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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="614"> <state relative-caret-position="614">
...@@ -1334,13 +1228,6 @@ ...@@ -1334,13 +1228,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="218">
<caret line="21" lean-forward="true" selection-start-line="21" selection-end-line="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSLSRequest.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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="228"> <state relative-caret-position="228">
...@@ -1398,27 +1285,100 @@ ...@@ -1398,27 +1285,100 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="457">
<caret line="23" column="25" lean-forward="true" selection-start-line="23" selection-start-column="25" selection-end-line="23" selection-end-column="25" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<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="198">
<caret line="10" column="13" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/Oauth2Controller.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="171">
<caret line="137" column="42" lean-forward="true" selection-start-line="137" selection-start-column="42" selection-end-line="137" selection-end-column="42" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="44"> <state relative-caret-position="44">
<caret line="2" column="15" lean-forward="true" selection-start-line="2" selection-start-column="15" selection-end-line="2" selection-end-column="15" /> <caret line="2" column="15" selection-start-line="2" selection-start-column="15" selection-end-line="2" selection-end-column="15" />
</state>
</provider>
</entry>
<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="433">
<caret line="30" column="25" selection-start-line="30" selection-start-column="25" selection-end-line="30" selection-end-column="25" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="660">
<caret line="30" column="34" lean-forward="true" selection-start-line="30" selection-start-column="34" selection-end-line="30" selection-end-column="34" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="349" column="58" lean-forward="true" selection-start-line="349" selection-start-column="58" selection-end-line="349" selection-end-column="58" />
<folding>
<element signature="e#6299#6352#0" />
<element signature="e#11611#11724#0" />
<element signature="e#12846#12861#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/offline/OfflineOnlineCacheRequest.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330">
<caret line="15" column="27" selection-start-line="15" selection-start-column="27" selection-end-line="15" selection-end-column="27" />
<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/service/TTService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="356">
<caret line="74" column="38" selection-start-line="74" selection-start-column="38" selection-end-line="74" selection-end-column="38" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </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/common/TTServiceUtil.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="140"> <state relative-caret-position="558">
<caret line="80" column="23" selection-start-line="80" selection-start-column="23" selection-end-line="80" selection-end-column="23" /> <caret line="44" column="16" lean-forward="true" selection-start-line="44" selection-start-column="16" selection-end-line="44" selection-end-column="16" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </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/common/OfflineServiceUtil.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="457"> <state relative-caret-position="422">
<caret line="23" column="25" lean-forward="true" selection-start-line="23" selection-start-column="25" selection-end-line="23" selection-end-column="25" /> <caret line="29" column="40" selection-start-line="29" selection-start-column="40" selection-end-line="29" selection-end-column="40" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
</folding> </folding>
...@@ -1427,20 +1387,80 @@ ...@@ -1427,20 +1387,80 @@
</entry> </entry>
<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/java/ai/qiwu/com/tts_service/common/TTSUtils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="430"> <state relative-caret-position="272">
<caret line="152" column="24" lean-forward="true" selection-start-line="152" selection-start-column="24" selection-end-line="152" selection-end-column="24" /> <caret line="104" column="26" selection-start-line="104" selection-start-column="26" selection-end-line="104" selection-end-column="26" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OfflineConfig.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="550">
<caret line="25" column="34" selection-start-line="25" selection-start-column="34" selection-end-line="25" selection-end-column="34" />
<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/pojo/offline/OfflineOnlineCacheResponse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308">
<caret line="14" column="57" selection-start-line="14" selection-start-column="57" selection-end-line="14" selection-end-column="57" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#474#475#0" expanded="true" />
<element signature="e#510#511#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-264">
<caret line="6" column="33" selection-start-line="6" selection-start-column="33" selection-end-line="6" selection-end-column="33" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/offline/SpeakersApi.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="660">
<caret line="30" column="29" lean-forward="true" selection-start-line="30" selection-start-column="29" selection-end-line="30" selection-end-column="29" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/aspectj/aspectjweaver/1.9.4/aspectjweaver-1.9.4.jar!/org/aspectj/lang/annotation/Before.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="176">
<caret line="14" column="18" selection-start-line="14" selection-start-column="18" selection-end-line="14" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/offline/OfflineService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="496">
<caret line="33" column="28" selection-start-line="33" selection-start-column="16" selection-end-line="33" selection-end-column="28" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#818#819#0" expanded="true" />
<element signature="e#868#869#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/OfflineController.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="452"> <state relative-caret-position="56">
<caret line="313" column="23" selection-start-line="313" selection-start-column="19" selection-end-line="313" selection-end-column="23" /> <caret line="27" column="8" selection-start-line="27" selection-start-column="8" selection-end-line="27" selection-end-column="8" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
<element signature="e#552#553#0" expanded="true" />
<element signature="e#604#605#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
......
...@@ -5,8 +5,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -5,8 +5,6 @@ import lombok.extern.slf4j.Slf4j;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.nio.Buffer;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -51,19 +49,6 @@ public class CallPython { ...@@ -51,19 +49,6 @@ public class CallPython {
reader.close(); reader.close();
} }
public static void changeSound() throws IOException {
String[] args = {INTERPRETER, "/home/yf01/pythonWork/hello.py", "1", "2"};
Process process = Runtime.getRuntime().exec(args);
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line;
StringBuilder result = new StringBuilder();
while ((line = reader.readLine()) != null) {
result.append(line);
}
log.info("result:{}", result.toString());
reader.close();
}
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
String wav = "/usr/GameEditor/mqw/tts/audio/A04/正常/f403f73cff700be9c3fed05b67fc9ace.wav"; String wav = "/usr/GameEditor/mqw/tts/audio/A04/正常/f403f73cff700be9c3fed05b67fc9ace.wav";
String mp3 = "/usr/GameEditor/mqw/tts/audio/A04/正常/f403f73cff700be9c3fed05b67fc9ace.mp3"; String mp3 = "/usr/GameEditor/mqw/tts/audio/A04/正常/f403f73cff700be9c3fed05b67fc9ace.mp3";
......
package ai.qiwu.com.tts_service.common;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* @author 苗权威
* @dateTime 19-8-3 下午4:06
*/
@Component
@ConfigurationProperties(prefix = "offline")
@Getter
@Setter
@ToString
public class OfflineConfig {
private String output_dir;
private String short_audio_dir;
private String letter_audio_dir;
private String test_text;
private String mysql_host;
private String mysql_user;
private String mysql_password;
private String models_threads;
}
package ai.qiwu.com.tts_service.common;
import ai.qiwu.com.tts_service.pojo.MP3Response;
import ai.qiwu.com.tts_service.pojo.offline.OfflineOnlineCacheResponse;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
/**
* @author 苗权威
* @dateTime 19-8-3 下午4:42
*/
@Slf4j
public class OfflineServiceUtil {
public static void speakersApiFile(HttpServletResponse response, String fileName, String type) {
try (BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(fileName));
OutputStream out = new BufferedOutputStream(response.getOutputStream())){
response.reset();
response.setContentType(type);
byte[] buffer = new byte[1024];
int ln;
while ((ln = inputStream.read(buffer)) != -1) {
out.write(buffer, 0, ln);
}
out.flush();
} catch (Exception e) {
log.error("speakersApiFile():写入音频流到HttpServletResponse失败:{}", e.toString());
}
}
public static void onlineCacheResponse(HttpServletResponse response, OfflineOnlineCacheResponse cacheResponse, int status) {
String responseJsonStr = JSON.toJSONString(cacheResponse);
response.setStatus(status);
response.setCharacterEncoding("UTF-8");
response.setContentType("application/json;charset=utf-8");
try (PrintWriter out = response.getWriter()){
out.append(responseJsonStr);
out.flush();
} catch (Exception e) {
log.error("OfflineServiceUtil#onlineCacheResponse返回写入json数据失败:{}",e.toString());
}
}
}
...@@ -86,6 +86,12 @@ public class TTSUtils { ...@@ -86,6 +86,12 @@ public class TTSUtils {
return file; return file;
} }
public static String buildWavFilename(String filename) {
String file = DigestUtils.md5DigestAsHex(filename.getBytes(StandardCharsets.UTF_8));
file = StringUtils.join(new String[]{file, "wav"}, ".");
return file;
}
public static String pythonlistToStr(List<String> file_ls) { public static String pythonlistToStr(List<String> file_ls) {
StringBuilder builder = new StringBuilder("['"); StringBuilder builder = new StringBuilder("['");
for (String str : file_ls) { for (String str : file_ls) {
......
package ai.qiwu.com.tts_service.controller;
import ai.qiwu.com.tts_service.pojo.offline.OfflineOnlineCacheRequest;
import ai.qiwu.com.tts_service.pojo.offline.SpeakersApi;
import ai.qiwu.com.tts_service.service.offline.OfflineService;
import org.aspectj.lang.annotation.Before;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
/**
* @author 苗权威
* @dateTime 19-8-3 下午3:45
*/
@RestController
public class OfflineController {
private final OfflineService offlineService;
@Autowired
public OfflineController(OfflineService offlineService) {
this.offlineService = offlineService;
}
@Before(value = "speakers_api() || online_cache()")
public void before() {
}
@GetMapping("/synthesize")
public void speakers_api(@RequestParam(required = false) String person, @RequestParam(required = false) String tone,
@RequestParam(required = false) String server, @RequestParam(required = false) String text,
@RequestParam(required = false) String botname, @RequestParam(required = false)String volume,
@RequestParam(required = false) String pitch, @RequestParam(required = false) String speed,
@RequestParam(required = false)String format, @RequestParam(required = false) String change,
HttpServletResponse response) {
SpeakersApi speakersApi = new SpeakersApi(person, tone, server, text, botname, volume, pitch,
speed, format, change);
offlineService.speakers_api(speakersApi, response, "GET");
}
@PostMapping("/synthesize")
public void speakers_api(@RequestBody SpeakersApi api, HttpServletResponse response) {
offlineService.speakers_api(api, response, "POST");
}
@PutMapping("/synthesize")
public void speakers_api(HttpServletResponse response, @RequestBody SpeakersApi api) {
offlineService.speakers_api(api, response, "PUT");
}
@DeleteMapping("/online_cache")
public void online_cache(@RequestBody OfflineOnlineCacheRequest request, HttpServletResponse response) {
offlineService.online_cache(request, response);
}
}
...@@ -19,7 +19,6 @@ import javax.servlet.http.HttpServletResponse; ...@@ -19,7 +19,6 @@ import javax.servlet.http.HttpServletResponse;
@RequestMapping("/mqw") @RequestMapping("/mqw")
public class TTSController { public class TTSController {
// @Autowired
private final TTService ttService; private final TTService ttService;
@Autowired @Autowired
......
package ai.qiwu.com.tts_service.pojo.offline;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* @author 苗权威
* @dateTime 19-8-3 下午5:06
*/
@Getter
@Setter
@ToString
public class OfflineOnlineCacheRequest {
private String server;
private String botname;
}
package ai.qiwu.com.tts_service.pojo.offline;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* @author 苗权威
* @dateTime 19-8-3 下午5:11
*/
@Getter
@Setter
@ToString
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class OfflineOnlineCacheResponse {
private int status;
private String message;
public OfflineOnlineCacheResponse(int status, String message) {
this.status = status;
this.message = message;
}
public OfflineOnlineCacheResponse(int status) {
this.status = status;
}
}
package ai.qiwu.com.tts_service.pojo.offline;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* @author 苗权威
* @dateTime 19-8-3 下午3:49
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class SpeakersApi {
private String person;
private String tone;
private String server;
private String text;
private String botname;
private String volume;
private String pitch;
private String speed;
private String format;
private String change;
public SpeakersApi(String person, String tone, String server, String text,
String botname, String volume, String pitch, String speed,
String format, String change) {
this.person = person;
this.tone = tone;
this.server = server;
this.text = text;
this.botname = botname;
this.volume = volume;
this.pitch = pitch;
this.speed = speed;
this.format = format;
this.change = change;
}
}
...@@ -70,7 +70,7 @@ public class TTService { ...@@ -70,7 +70,7 @@ public class TTService {
Config.getProperty("offline_server")), new HashMap<>(), offlineStr); Config.getProperty("offline_server")), new HashMap<>(), offlineStr);
} catch (IOException e) { } catch (IOException e) {
log.error("删除offline地址的bot请求出错:{}", e.toString()); log.error("删除offline地址的bot请求出错:{}", e.toString());
deleteOfflineResCode = 500; deleteOfflineResCode = 555;
} }
TTServiceUtil.buildOnlineCacheResponse(response, new TTSResponse(deleteOfflineResCode, "no botName"), deleteOfflineResCode); TTServiceUtil.buildOnlineCacheResponse(response, new TTSResponse(deleteOfflineResCode, "no botName"), deleteOfflineResCode);
} }
...@@ -320,7 +320,7 @@ public class TTService { ...@@ -320,7 +320,7 @@ public class TTService {
response = new TTSResponse(200, audio); response = new TTSResponse(200, audio);
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
log.error("URLEncoding编码出错:{}", e.toString()); log.error("URLEncoding编码出错:{}", e.toString());
response = new TTSResponse(500, "编码URL中的中文出错"); response = new TTSResponse(555, "编码URL中的中文出错");
} }
} }
// filepath文件不存在或是put请求,调用generalMP3生成该filepath所指的mp3文件 // filepath文件不存在或是put请求,调用generalMP3生成该filepath所指的mp3文件
...@@ -373,7 +373,7 @@ public class TTService { ...@@ -373,7 +373,7 @@ public class TTService {
String.valueOf(data.getPitch()), filePath); String.valueOf(data.getPitch()), filePath);
} catch (Exception e) { } catch (Exception e) {
log.error("调用python的changeSound出错:{}", e.toString()); log.error("调用python的changeSound出错:{}", e.toString());
res = new ResponseCodeWithData(500); res = new ResponseCodeWithData(555);
} }
} }
// 如果url是线下地址:http://aliyun-hz1.chewrobot.com:9001/synthesize 且xx.mp3文件不存在,则直接下载 // 如果url是线下地址:http://aliyun-hz1.chewrobot.com:9001/synthesize 且xx.mp3文件不存在,则直接下载
...@@ -466,7 +466,7 @@ public class TTService { ...@@ -466,7 +466,7 @@ public class TTService {
log.error("第{}次失败,原因{}", i+1, e.toString()); log.error("第{}次失败,原因{}", i+1, e.toString());
continue; continue;
} }
int resCode = res == null ? 500 : res.getCode(); int resCode = res == null ? 555 : res.getCode();
if (resCode == 200) { if (resCode == 200) {
break; break;
} }
......
package ai.qiwu.com.tts_service.service.offline;
import ai.qiwu.com.tts_service.common.CallPython;
import ai.qiwu.com.tts_service.common.OfflineConfig;
import ai.qiwu.com.tts_service.common.OfflineServiceUtil;
import ai.qiwu.com.tts_service.common.TTSUtils;
import ai.qiwu.com.tts_service.pojo.offline.OfflineOnlineCacheRequest;
import ai.qiwu.com.tts_service.pojo.offline.OfflineOnlineCacheResponse;
import ai.qiwu.com.tts_service.pojo.offline.SpeakersApi;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
/**
* @author 苗权威
* @dateTime 19-8-3 下午3:56
*/
@Service
@Slf4j
public class OfflineService {
private final OfflineConfig offlineConfig;
@Autowired
public OfflineService(OfflineConfig offlineConfig) {
this.offlineConfig = offlineConfig;
}
public void speakers_api(SpeakersApi request, HttpServletResponse response, String requestMethod) {
String person = request.getPerson();
String mood = null;
if (StringUtils.isNotBlank(person)) {
mood = request.getTone();
}
String server_name = request.getServer();
String text = request.getText();
if (StringUtils.isBlank(text)) {
log.info("text is empty");
response.setStatus(404);
return;
}
if (offlineConfig.getTest_text().equals(text)) {
server_name = null;
}
String botname = StringUtils.isBlank(server_name) ? null : request.getBotname();
String volume = StringUtils.isBlank(request.getVolume()) ? "0" : request.getVolume();
String pitch = StringUtils.isBlank(request.getPitch()) ? "0" : request.getPitch();
String speed = StringUtils.isBlank(request.getSpeed()) ? "1" : request.getSpeed();
String filename = TTSUtils.buildWavFilename(text);
StringBuilder builder = new StringBuilder(offlineConfig.getOutput_dir()).append(File.separator);
for (String str : new String[]{server_name, botname, person, mood}) {
if (str != null) builder.append(str).append(File.separator);
}
String wavfilepath = builder.append(filename).toString();
log.info("OfflineService,51 row: filepath:{}", wavfilepath);
if (!TTSUtils.doesFileExist(wavfilepath)) {
if ("wav".equals(request.getFormat())) {
OfflineServiceUtil.speakersApiFile(response, wavfilepath, "audio/wav");
return;
}
String mp3Filepath = wavfilepath.replace(".wav", ".mp3");
if (!TTSUtils.doesFileExist(mp3Filepath) || StringUtils.isNotBlank(request.getChange())
|| requestMethod.equals("PUT")) {
try {
CallPython.changeSound(wavfilepath, volume, speed, pitch, mp3Filepath);
} catch (Exception e) {
log.info("OfflineService#speakers_api:调用changeSound方法生成mp3文件出错:{}", e.toString());
response.setStatus(555);
return;
}
OfflineServiceUtil.speakersApiFile(response, mp3Filepath, "audio/mp3");
return;
}
}else {
response.setStatus(404);
}
}
public void online_cache(OfflineOnlineCacheRequest request, HttpServletResponse response) {
String serverName = request.getServer();
String botname = null;
if (StringUtils.isNotBlank(serverName)) {
botname = request.getBotname();
}
if (StringUtils.isBlank(botname)) {
OfflineServiceUtil.onlineCacheResponse(response, new OfflineOnlineCacheResponse(401, "no botname"), 401);
return;
}
StringBuilder builder = new StringBuilder("offline").append(File.separator);
if (StringUtils.isNotBlank(serverName)) builder.append(serverName).append(File.separator);
if (StringUtils.isNotBlank(botname)) builder.append(botname);
String botDir = builder.toString();
if (TTSUtils.doesFileExist(botDir)) {
TTSUtils.deleteFile(new File(botDir));
log.info("删除目录{}成功", botDir);
}
OfflineServiceUtil.onlineCacheResponse(response, new OfflineOnlineCacheResponse(200), 200);
}
}
...@@ -19,3 +19,14 @@ spring: ...@@ -19,3 +19,14 @@ spring:
# path: /usr/mqw/logs/tts # path: /usr/mqw/logs/tts
server: server:
port: 8088 port: 8088
offline:
output_dir: 'offline'
short_audio_dir: 'short_audio'
letter_audio_dir: 'letter_audio'
test_text: '这是一段测试文本,请听下音效,选择你认为合适的一套声音'
# hz1
mysql_host: '47.98.37.248'
mysql_user: 'tts'
mysql_password: 'qiwu@123234aA~'
models_threads: 3
\ No newline at end of file
...@@ -227,11 +227,12 @@ public class ResponseEncapsulation extends AudioPlayer { ...@@ -227,11 +227,12 @@ public class ResponseEncapsulation extends AudioPlayer {
String audioUrl = data.getAudio(); String audioUrl = data.getAudio();
logger.info(getSupportedInterfaces().getAudioPlayer() == null?"audio is null":"audio not null"); logger.info(getSupportedInterfaces().getAudioPlayer() == null?"audio is null":"audio not null");
logger.info(getSupportedInterfaces().getScreen() == null?"screen is null":"screen not null"); logger.info(getSupportedInterfaces().getScreen() == null?"screen is null":"screen not null");
if (getSupportedInterfaces().getScreen() == null) { // if (getSupportedInterfaces().getScreen() == null) {
addDirective(buildNoScreenPlayDirec(audioUrl, AudioPlayerDirective.PlayBehaviorType.REPLACE_ALL)); // addDirective(buildNoScreenPlayDirec(audioUrl, AudioPlayerDirective.PlayBehaviorType.REPLACE_ALL));
}else { // }else {
// addDirective(buildPlayDirective(audioUrl, data.getText(), AudioPlayerDirective.PlayBehaviorType.REPLACE_ALL));
// }
addDirective(buildPlayDirective(audioUrl, data.getText(), AudioPlayerDirective.PlayBehaviorType.REPLACE_ALL)); addDirective(buildPlayDirective(audioUrl, data.getText(), AudioPlayerDirective.PlayBehaviorType.REPLACE_ALL));
}
// String uri = "https://aliyun-hz1.chewrobot.com/xiaodu/image/5b2d0a11/lvzhou/1564033095964d39f.jpg"; // String uri = "https://aliyun-hz1.chewrobot.com/xiaodu/image/5b2d0a11/lvzhou/1564033095964d39f.jpg";
// ImageStructure imageStructure = new ImageStructure(uri, 512, 512); // ImageStructure imageStructure = new ImageStructure(uri, 512, 512);
......
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