91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 17.85MB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2023-07-26
  • 語言: Java
  • 標簽: java??語音解析??

資源簡介

java版的科大訊飛api,有詳細的說明,以及做了很多優化

資源截圖

代碼片段和文件信息

package?com.iflytek.util;

import?java.awt.BorderLayout;
import?java.awt.Color;
import?java.awt.Font;
import?java.awt.Image;
import?java.awt.event.MouseAdapter;
import?java.awt.event.MouseEvent;

import?javax.swing.ImageIcon;
import?javax.swing.JButton;
import?javax.swing.JLabel;
import?javax.swing.SwingConstants;

public?class?DrawableUtils?{

public?static?JButton?createImageButton(String?name?ImageIcon?img?String?layout)
{
JButton?button?=?new?JButton(img);
button.setSize(img.getIconWidth()?img.getIconHeight());
button.setBackground(null);

button.setBorder(null);
button.setContentAreaFilled(false);

JLabel?label?=?new?JLabel(name?SwingConstants.CENTER);
label.setForeground(Color.white);
Font?font=new?Font(“宋體“?Font.BOLD?20);
label.setFont(font);

button.setLayout(new?BorderLayout());

if(layout?==?null?||?layout.contains(“center“))
button.add(label?BorderLayout.CENTER);
else?if(layout.equals(“right“)?||?layout.contains(“right“))
{
button.add(label?BorderLayout.EAST);
}

return?button;
}

public?static?int??getScreenWidth()?{
return?(java.awt.Toolkit.getDefaultToolkit().getScreenSize().width);
}

public?static?int?getScreenHeight()?{
return?(java.awt.Toolkit.getDefaultToolkit().getScreenSize().height);
}

public?static?void?setMouseListener(final?JButton?button?String?iconPath)?{

final?ImageIcon?imagePressed?=?new?ImageIcon(iconPath?+?“_p.png“);
final?ImageIcon?image=?new?ImageIcon(iconPath?+?“.png“);

button.addMouseListener(new?MouseAdapter()?{???
????????????public?void?mousePressed(MouseEvent?e)?{???
???????????? button.setIcon(imagePressed);
????????????}???
??
????????????public?void?mouseReleased(MouseEvent?e)?{???
????????????????button.setIcon(image);
????????????}???
????????});??
}

public?static?Image?divisionImage(Image?backImg?int?x?int?y?int?width
int?height)?{
// Image?img?=?getSpaceImage(width?height?null);
Image?img?=?backImg;
img.getGraphics().drawImage(backImg?0?0?width?height?x?y
x?+?width?y?+?height?null);
return?img;
}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-11-18?04:34??doc\
?????文件?????1812740??2015-11-18?04:34??doc\Open?Semantic?Platform?API??Documents.pdf
?????文件??????910027??2015-11-18?04:34??doc\MSC?Develop?Manual?for?Java.pdf
?????目錄???????????0??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\
?????文件??????236686??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\index-all.html
?????文件??????138831??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\constant-values.html
?????文件????????2794??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\index.html
?????文件????????5189??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\allclasses-frame.html
?????文件????????4609??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\allclasses-noframe.html
?????目錄???????????0??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\
?????目錄???????????0??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\iflytek\
?????目錄???????????0??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\
?????目錄???????????0??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\
?????文件???????12081??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\SpeechListener.html
?????文件??????118841??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\SpeechConstant.html
?????文件???????48284??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\SpeechRecognizer.html
?????文件????????9076??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\Version.html
?????文件???????22975??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\Setting.html
?????文件???????13125??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\DataDownloader.html
?????文件???????23609??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\ResourceUtil.html
?????文件???????21557??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\package-summary.html
?????文件???????12538??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\RecognizerResult.html
?????文件???????36596??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\SpeechUnderstander.html
?????文件???????24074??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\VerifierListener.html
?????文件???????23519??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\SpeechUnderstanderListener.html
?????文件???????15212??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\DataUploader.html
?????文件???????12622??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\TextUnderstanderListener.html
?????文件????????9714??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\LexiconListener.html
?????文件???????28988??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\VerifierResult.html
?????文件???????26986??2015-11-18?04:34??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\TextUnderstander.html
?????文件???????55807??2015-11-23?03:45??doc\iFlytek?MSC?Reference?Manual\com\iflytek\cloud\speech\SpeakerVerifier.html
............此處省略146個文件信息

評論

共有 條評論