socket 逻辑初始化
This commit is contained in:
37
vetti-ai/pom.xml
Normal file
37
vetti-ai/pom.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
|
||||
<parent>
|
||||
<artifactId>vetti-service</artifactId>
|
||||
<groupId>com.vetti</groupId>
|
||||
<version>3.9.0</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>vetti-ai</artifactId>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-models</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>com.vetti</groupId>
|
||||
<artifactId>vetti-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.vetti.ai.service;
|
||||
|
||||
/**
|
||||
* 面试聊天共通 服务层
|
||||
*/
|
||||
public interface ChatCommonService {
|
||||
|
||||
|
||||
/**
|
||||
* 处理面试聊天语音结果数据
|
||||
*/
|
||||
public void handleChatVoiceData();
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.vetti.ai.service.impl;
|
||||
|
||||
import com.vetti.ai.service.ChatCommonService;
|
||||
import com.vetti.common.ai.elevenLabs.ElevenLabsClient;
|
||||
import com.vetti.common.ai.gpt.ChatGPTClient;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 聊天面试共通 服务层实现
|
||||
*/
|
||||
@Service
|
||||
public class ChatCommonServiceImpl implements ChatCommonService {
|
||||
|
||||
@Autowired
|
||||
private ElevenLabsClient elevenLabsClient;
|
||||
|
||||
@Autowired
|
||||
private ChatGPTClient chatGPTClient;
|
||||
|
||||
@Override
|
||||
public void handleChatVoiceData() {
|
||||
//1、获取面试传输的语音文件
|
||||
|
||||
//2、语音文件转换成文本字符串
|
||||
|
||||
//3、把文本传输到GPT中,等待回复
|
||||
|
||||
//4、GPT返回的结果,文本转成语音文件
|
||||
|
||||
//5、返回最终的语音文件
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user