|
|
@@ -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
|