推荐下载Android实例Word下载.docx
- 文档编号:15785267
- 上传时间:2022-11-16
- 格式:DOCX
- 页数:18
- 大小:21.75KB
推荐下载Android实例Word下载.docx
《推荐下载Android实例Word下载.docx》由会员分享,可在线阅读,更多相关《推荐下载Android实例Word下载.docx(18页珍藏版)》请在冰豆网上搜索。
CodeGearDelphiRuntimeLibrary}4{Copyright(c)2013JeffOvercash}5{}6
{*******************************************************}8{Delphi
trnslationforTTSAndroidJavaclassesfrom}9{
developer.android/reference/android/speech/tts/package-summary.html}11unit
Androidapi.JNI.TTS;
1213interface15usesAndroidapi.JNIBridge,16
Androidapi.JNI.JavaTypes,17Androidapi.JNI.Os,18Androidapi.JNI.App,19
Androidapi.JNI.GraphicsContentViewText;
2021type23{Forwarddeclarations}24
JSynthesisCallback=interface;
//android.speech.tts.SynthesisCallback25
JSynthesisRequest=interface;
//android.speech.tts.SynthesisRequest26JTextToSpeech=
interface;
//android.speech.tts.TextToSpeech27JTextToSpeech_Engine=interface;
//
android.speech.tts.TextToSpeech$Engine28JTextToSpeech_EngineInfo=interface;
//android.speech.tts.TextToSpeech$EngineInfo29JTextToSpeech_OnInitListener=
//android.speech.tts.TextToSpeech$OnInitListener30
JTextToSpeech_OnUtteranceCompletedListener=interface;
android.speech.tts.TextToSpeech$OnUtteranceCompletedListener31
JTextToSpeechService=interface;
//android.speech.tts.TextToSpeechService32
JUtteranceProgressListener=interface;
//android.speech.tts.UtteranceProgressListener34
JSynthesisCallbackClass=interface(IJavaClass)35[‘{3B30766E-A43B-4005-BE92-
472CD075F325}’]36end;
3738
[JavaSignature(‘android/speech/tts/SynthesisCallback’)]39JSynthesisCallback=
interface(IJavaInstance)40[‘{190C13DE-BC7E-44CE-94F6-4AF1A84A4612}’]41
functionaudioAvailable(buffer:
TJavaArraybyteoffset:
Integer;
length:
Integer):
cdecl;
42functiondone:
cdecl;
43procedureerror;
44function
getMaxBufferSize:
45functionstart(sampleRateInHz:
audioFormat:
channelCount:
46end;
47
TJSynthesisCallback=class(TJavaGenericImportJSynthesisCallbackClass,
JSynthesisCallback)end;
4849JSynthesisRequestClass=interface(JObjectClass)50
[‘{AE41459D-42C6-4E66-B174-F6FA5216A1DA}’]51{Method}52functioninit(text:
JString;
params:
JBundle):
JSynthesisRequest;
53end;
5455
[JavaSignature(‘android/speech/tts/SynthesisRequest’)]56JSynthesisRequest=
interface(JObject)57[‘{1963DAD8-C58F-4868-BF8A-B43AE7A14145}’]58function
getCountry:
JString;
59functiongetLanguage:
60function
getParams:
JBundle;
61functiongetPitch:
62function
getSpeechRate:
63functiongetText:
64functiongetVariant:
65end;
66TJSynthesisRequest=class(TJavaGenericImport
JSynthesisRequestClass,JSynthesisRequest)end;
6768JTextToSpeechClass=
interface(JObjectClass)69[‘{0E2C5E49-95BE-4F19-BCCD-21960D03E957}’]70{
PropertyMethods}71function
_GetACTION_TTS_QUEUE_PROCESSING_COMPLETED:
72function
_GetERROR:
73function_GetLANG_AVAILABLE:
74function
_GetLANG_COUNTRY_AVAILABLE:
75function
_GetLANG_COUNTRY_VAR_AVAILABLE:
76function
_GetLANG_MISSING_DATA:
77function_GetLANG_NOT_SUPPORTED:
Integer;
78function_GetQUEUE_ADD:
79function_GetQUEUE_FLUSH:
80function_GetSUCCESS:
81{Methods}82functioninit(contect:
JContext;
listener:
JTextToSpeech_OnInitListener):
JTextToSpeech;
overload;
83
functioninit(context:
JContext;
JTextToSpeech_OnInitListener;
engine:
JString):
JTextToSpeech;
84{Properties}85property
ACTION_TTS_QUEUE_PROCESSING_COMPLETED:
JStringread
_GetACTION_TTS_QUEUE_PROCESSING_COMPLETED;
86propertyERROR:
Integerread_GetERROR;
87propertyLANG_AVAILABLE:
Integerread
_GetLANG_AVAILABLE;
88propertyLANG_COUNTRY_AVAILABLE:
_GetLANG_COUNTRY_AVAILABLE;
89property
LANG_COUNTRY_VAR_AVAILABLE:
_GetLANG_COUNTRY_VAR_AVAILABLE;
90propertyLANG_MISSING_DATA:
Integerread_GetLANG_MISSING_DATA;
91propertyLANG_NOT_SUPPORTED:
Integerread_GetLANG_NOT_SUPPORTED;
92propertyQUEUE_ADD:
_GetQUEUE_ADD;
93propertyQUEUE_FLUSH:
Integerread_GetQUEUE_FLUSH;
94propertySUCCESS:
Integerread_GetSUCCESS;
95end;
9697
[JavaSignature(‘android/speech/tts/TextToSpeech’)]98JTextToSpeech=
interface(JObject)99[‘{E1D06364-F967-4381-B178-EEDD42C203C7}’]100function
addEarcon(earcon:
filename:
101function
packagename:
resourceID:
I
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 推荐 下载 Android 实例
![提示](https://static.bdocx.com/images/bang_tan.gif)