using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hotline.Share.Dtos.Quality
{
public class AiQualityDto
{
///
/// 录音来源方式:sftp,ftp,http,nas
///
public string AudioSource { get; set; } = "ftp";
///
/// 工单号:录音的唯一ID
///
public string RecordID { get; set; }
///
/// 录音的存储路径:此处录音路径格式与audioSource方式有关
///
public string RecordPath { get; set; }
///
/// 坐席工号
///
public string AgentID { get; set; }
///
/// 坐席组编号
///
public string AgentTeamID { get; set; } = "0";
///
/// 来电号码
///
public string CallNumber { get; set; }
///
/// 来电时间,固定格式:yyyy-MM-dd HH:mm:ss
///
public string CallTime { get; set; }
///
/// 录音格式
///
public string RecordForm { get; set; }
///
/// 采样率
///
public string SamplingRate { get; set; } = "8k";
///
/// 编码方式
///
public string Encoding { get; set; } = "16bit";
///
/// 声道数(1:单声道,2:双声道)
///
public string SoundChannel { get; set; } = "2";
///
/// 坐席对应声道(1:单声道,2:双声道,左声道为坐席,3:双声道,右声道为坐席)
///
public string AgentChannel { get; set; } = "3";
///
/// 扩展字段
///
public string Extend { get; set; }
}
public class AiQualityResultDto
{
public AiQualitySourceData source_data { get; set; }
public AiQualityAnalysisData analysis_data { get; set; }
}
public class AiQualitySourceData
{
///
/// 录音PATH地址
///
public string record_path { get; set; }
///
/// 录音URL地址
///
public string record_url { get; set; }
///
/// 客户id,全局唯一
///
public string customer_id { get; set; }
///
/// 录音文件名称
///
public string file_name { get; set; }
///
/// 坐席工号
///
public string agent_id { get; set; }
///
/// 坐席组的编号
///
public string agent_group_no { get; set; }
///
/// 来电号码
///
public string call_number { get; set; }
///
/// 通话的来电时间
///
public string call_time { get; set; }
///
/// 录音格式,wav、mp3、v3、pcm等
///
public string record_form { get; set; }
///
/// 采样率
///
public string sampling_rate { get; set; }
///
/// 编码方式
///
public string encoding { get; set; }
///
/// 声道数(个)
///
public int sound_channel { get; set; }
///
/// 坐席声音存储的声道
///
public int agent_channel { get; set; }
///
/// 来电地区
///
public string region { get; set; }
///
/// 工单上传时间
///
public string upload_time { get; set; }
///
/// 来源,1:平台上传;2:接口上传
///
public string source { get; set; }
///
/// 文件大小
///
public string file_size { get; set; }
///
/// 文件上传时间
///
public string file_upload_time { get; set; }
public AiQualityExtended extended_field { get; set; }
}
public class AiQualityExtended
{
public string field1 { get; set; }
}
public class AiQualityAnalysisData
{
///
/// 智能质检得分
///
public int quality_score { get; set; }
///
/// 智能质检时间
///
public string quality_time { get; set; }
///
/// 是否减分[1是0否]
///
public int reduction_flag { get; set; }
///
/// 智能质检策略名称
///
public string strategy_name { get; set; }
///
/// 智能质检评分规则名称
///
public string score_name { get; set; }
public List score_items { get; set; }
}
public class AiQualityScoreItems
{
///
/// 智能评分项名称
///
public string name { get; set; }
///
/// 质检方式,1:质检规则;2:智能分类器;
///
public int type { get; set; }
///
/// 出现个数
///
public string num { get; set; }
///
/// 出现次数
///
public int times { get; set; }
///
/// 评分项说明
///
public string description { get; set; }
///
/// 分值类型,0:减分;1:加分
///
public int score_type { get; set; }
///
/// 分值
///
public int score { get; set; }
///
/// 评分项结果评分
///
public int result_score { get; set; }
}
}