package com.yanzuoguang.util.vo; /** * 百度语音配置 * * @author 颜佐光 */ public class BaiduConfig extends BaseVo { /** * 百度App_ID */ private String appId; /** * 百度apiKey */ private String apiKey; /** * 百度secretKey */ private String secretKey; /** * 设置网络连接参数 */ private int connectionTimeoutInMillis; /** * 设置网络连接参数 */ private int socketTimeoutInMillis; /** * 设置http代理服务器 */ private String httpProxyHost; /** * 设置http代理端口 */ private int httpProxyPort; /** * 设置http代理服务器 */ private String socketProxyHost; /** * 设置http代理端口 */ private int socketProxyPort; /** * 语言,默认中文 */ private String lang = "zh"; /** * ctp */ private int ctp = 1; /** * 语速,取值0-9,默认为5中语速 */ private int spd = 5; /** * 音调,取值0-9,默认为5中语调 */ private int pit = 5; /** * 音量,取值0-15,默认为5中音量 否 */ private int vol = 15; /** * 发音人选择,0为女声,1为男声, 3为情感合成-度逍遥,4为情感合成-度丫丫,默认为普通女 否 */ private int per = 0; public BaiduConfig() { } public BaiduConfig(String appId, String apiKey, String secretKey) { this.appId = appId; this.apiKey = apiKey; this.secretKey = secretKey; } public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public String getApiKey() { return apiKey; } public void setApiKey(String apiKey) { this.apiKey = apiKey; } public String getSecretKey() { return secretKey; } public void setSecretKey(String secretKey) { this.secretKey = secretKey; } public int getConnectionTimeoutInMillis() { return connectionTimeoutInMillis; } public void setConnectionTimeoutInMillis(int connectionTimeoutInMillis) { this.connectionTimeoutInMillis = connectionTimeoutInMillis; } public int getSocketTimeoutInMillis() { return socketTimeoutInMillis; } public void setSocketTimeoutInMillis(int socketTimeoutInMillis) { this.socketTimeoutInMillis = socketTimeoutInMillis; } public String getHttpProxyHost() { return httpProxyHost; } public void setHttpProxyHost(String httpProxyHost) { this.httpProxyHost = httpProxyHost; } public int getHttpProxyPort() { return httpProxyPort; } public void setHttpProxyPort(int httpProxyPort) { this.httpProxyPort = httpProxyPort; } public String getSocketProxyHost() { return socketProxyHost; } public void setSocketProxyHost(String socketProxyHost) { this.socketProxyHost = socketProxyHost; } public int getSocketProxyPort() { return socketProxyPort; } public void setSocketProxyPort(int socketProxyPort) { this.socketProxyPort = socketProxyPort; } public String getLang() { return lang; } public void setLang(String lang) { this.lang = lang; } public int getCtp() { return ctp; } public void setCtp(int ctp) { this.ctp = ctp; } public int getSpd() { return spd; } public void setSpd(int spd) { this.spd = spd; } public int getPit() { return pit; } public void setPit(int pit) { this.pit = pit; } public int getVol() { return vol; } public void setVol(int vol) { this.vol = vol; } public int getPer() { return per; } public void setPer(int per) { this.per = per; } }