2025-06-11 09:42:13 +08:00
|
|
|
package com.newyetai.sdk.xf.config;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.Builder;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
|
|
@ConfigurationProperties(prefix = XfProperties.PREFIX)
|
|
|
|
|
@Data
|
|
|
|
|
@Component
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
|
@Builder
|
|
|
|
|
public class XfProperties implements Serializable{
|
|
|
|
|
|
|
|
|
|
/** **/
|
|
|
|
|
private static final long serialVersionUID = 6362606996602121889L;
|
|
|
|
|
|
|
|
|
|
public static final String PREFIX = "xf";
|
|
|
|
|
|
|
|
|
|
/** 控制台获取http服务接口认证信息中的APIPassword **/
|
|
|
|
|
private String httpAPIPassword;
|
|
|
|
|
|
|
|
|
|
/** 在控制台-我的应用获取 **/
|
|
|
|
|
private String appId;
|
|
|
|
|
private String apiSecret;
|
|
|
|
|
private String apiKey;
|
|
|
|
|
/** 语音听写地址 **/
|
|
|
|
|
private String iatHostUrl;
|
|
|
|
|
/** 语音合成地址 **/
|
|
|
|
|
private String ttsHostUrl;
|
2025-06-24 16:24:57 +08:00
|
|
|
/** 机器翻译niutrans **/
|
|
|
|
|
private String otsHostUrl;
|
|
|
|
|
|
2025-06-11 09:42:13 +08:00
|
|
|
|
|
|
|
|
}
|