|
|
@@ -36,8 +36,8 @@ public class VoiceToWord extends Activity{
|
|
|
//初始化听写Dialog,如果只使用有UI听写功能,无需创建SpeechRecognizer
|
|
|
iatDialog =new RecognizerDialog(context);
|
|
|
mToast = Toast.makeText(context, "", Toast.LENGTH_LONG);
|
|
|
- //初始化听写Dialog,如果只使用有UI听写功能,无需创建SpeechRecognizer
|
|
|
- iatDialog =new RecognizerDialog(context);
|
|
|
+// //初始化听写Dialog,如果只使用有UI听写功能,无需创建SpeechRecognizer
|
|
|
+// iatDialog =new RecognizerDialog(context);
|
|
|
//初始化缓存对象.
|
|
|
mSharedPreferences = context.getSharedPreferences(context.getPackageName(),MODE_PRIVATE);
|
|
|
}
|
|
|
@@ -50,8 +50,8 @@ public class VoiceToWord extends Activity{
|
|
|
//初始化听写Dialog,如果只使用有UI听写功能,无需创建SpeechRecognizer
|
|
|
iatDialog =new RecognizerDialog(context);
|
|
|
mToast = Toast.makeText(context, "", Toast.LENGTH_LONG);
|
|
|
- //初始化听写Dialog,如果只使用有UI听写功能,无需创建SpeechRecognizer
|
|
|
- iatDialog =new RecognizerDialog(context);
|
|
|
+// //初始化听写Dialog,如果只使用有UI听写功能,无需创建SpeechRecognizer
|
|
|
+// iatDialog =new RecognizerDialog(context);
|
|
|
//初始化缓存对象.
|
|
|
mSharedPreferences = context.getSharedPreferences(context.getPackageName(),MODE_PRIVATE);
|
|
|
this.recognizerDialogListener = recognizerDialogListener;
|