瀏覽代碼

add ai speaking module

lalala 1 年之前
父節點
當前提交
f419f7dccf

+ 0 - 5
application.yaml

@@ -82,11 +82,6 @@ xunfei:
     api-key: 9d44aad124b15562cd36f1c69f907c23
     api-secret: MWZkZTM5ZjMwMGJkNjJkM2NmNjJjMjI3
 
-microsoft:
-  ark:
-    speech_key: DzMBKYw2oVnL7brsyLZYlpvOqhiCDshlzRqQNtDOrwJA6KL5DOdcJQQJ99BCAC3pKaRXJ3w3AAAYACOGDWcJ
-    speech_regin: eastasia
-
 proxy:
   enabled: false
   host: 20.111.54.16

+ 1 - 6
pom.xml

@@ -180,12 +180,7 @@
             <artifactId>websdk-java-speech</artifactId>
             <version>2.0.3</version>
         </dependency>
-        <!--    微软语音合成依赖    -->
-        <dependency>
-            <groupId>com.microsoft.cognitiveservices.speech</groupId>
-            <artifactId>client-sdk</artifactId>
-            <version>1.42.0</version>
-        </dependency>
+
         <dependency>
             <groupId>com.squareup.okhttp3</groupId>
             <artifactId>okhttp</artifactId>

+ 0 - 10
src/main/java/com/njuzr/eaibackend/config/IseClientFactory.java

@@ -1,20 +1,10 @@
 package com.njuzr.eaibackend.config;
 
 import cn.xfyun.api.IseClient;
-import com.microsoft.cognitiveservices.speech.SpeechConfig;
-import com.microsoft.cognitiveservices.speech.SpeechSynthesizer;
-import com.microsoft.cognitiveservices.speech.audio.AudioConfig;
-import com.microsoft.cognitiveservices.speech.audio.AudioOutputStream;
-import com.microsoft.cognitiveservices.speech.audio.PullAudioOutputStream;
-import com.njuzr.eaibackend.enums.VoiceType;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.context.annotation.Configuration;
 
-import javax.annotation.PostConstruct;
-import java.util.HashMap;
-import java.util.Map;
-
 /**
  * @author Liululin
  * @date 2025/4/3 - 8:17

+ 1 - 1
src/main/java/com/njuzr/eaibackend/service/impl/AssignmentServiceImpl.java

@@ -89,7 +89,7 @@ public class AssignmentServiceImpl implements AssignmentService {
         target.setCourseId(courseId);
         target.setTeacherId(user.getId());
         // TODO:权宜之计
-      //  target.setTeacherId(Long.valueOf(user.getPid()));
+//        target.setTeacherId(Long.valueOf(user.getPid()));
         target.setCreateTime(new Date());
 
         try {