<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="xiaozhi.modules.voiceclone.dao.VoiceCloneDao">
    <select id="getTrainSuccess" resultType="xiaozhi.modules.model.dto.VoiceDTO">
        select id, name, voice_id as voiceDemo, languages
        from ai_voice_clone
        where model_id = #{modelId} and user_id = #{userId} and train_status = 2
    </select>
</mapper>