如何使用Android编程打开S Voice

How to open S Voice using Android Programming

我在 Galaxy S4 中使用 Android 5.0。当我双击主页按钮时,S 语音打开。我想让代码打开它。我使用了下面的代码,但代码只打开 google 语音。如何在没有任何配置的情况下打开 S Voice?非常感谢

        Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
        intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, "en-US");
        try {
            startActivityForResult(intent, 1);
        } catch (ActivityNotFoundException a) {
            Toast.makeText(this, "Oops! Your device doesn't support Speech to Text",Toast.LENGTH_SHORT).show();
        }

这是 S-Voice

更新:我安装了软件Dexplorer,找到了Svoice。但是,我无法访问 AndroidManifest.xml

我安装的 S-Voice 版本将响应以下任何意图操作:

            final String SVOICE_PACKAGE_NAME = "com.vlingo.midas";
            final String SVOICE_LISTEN_ACTION = "com.sec.action.SVOICE";

            final Intent intent = new Intent();
            intent.setPackage(SVOICE_PACKAGE_NAME);

            intent.setAction(SVOICE_LISTEN_ACTION);

            // intent.setAction(Intent.ACTION_VOICE_COMMAND);

            // intent.setAction(RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE);
            // intent.putExtra(RecognizerIntent.EXTRA_SECURE, false);

            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);

            try {
                startActivity(intent);
            } catch (final ActivityNotFoundException e) {
                e.printStackTrace();
            } catch (final Exception e) {
                e.printStackTrace();
            }