Search in sources :

Example 1 with CustomCommandHelper

use of ai.saiy.android.custom.CustomCommandHelper in project Saiy-PS by brandall76.

the class QuantumHelper method resolve.

public CustomResolver resolve(@NonNull final Context ctx, @NonNull final SupportedLanguage sl, @NonNull final CommandRequest cr) {
    final long then = System.nanoTime();
    final CustomHelperHolder holder = new CustomHelper().getCustomisationHolder(ctx);
    final CustomResolver resolver = new CustomResolver();
    final CustomCommandHelper cch = new CustomCommandHelper();
    final ArrayList<String> manipulatedVoiceData = new Profanity(ctx, cr.getResultsArray(), sl).remove();
    resolver.setCustom(cch.isCustomCommand(ctx, manipulatedVoiceData, sl, holder.getCustomCommandArray()));
    resolver.setCustomCommandHelper(cch);
    resolver.setVoiceData(manipulatedVoiceData);
    if (DEBUG) {
        MyLog.getElapsed(CLS_NAME, then);
    }
    return resolver;
}
Also used : CustomHelper(ai.saiy.android.custom.CustomHelper) CustomHelperHolder(ai.saiy.android.custom.CustomHelperHolder) CustomCommandHelper(ai.saiy.android.custom.CustomCommandHelper) Profanity(ai.saiy.android.nlu.local.Profanity) CustomResolver(ai.saiy.android.custom.CustomResolver)

Aggregations

CustomCommandHelper (ai.saiy.android.custom.CustomCommandHelper)1 CustomHelper (ai.saiy.android.custom.CustomHelper)1 CustomHelperHolder (ai.saiy.android.custom.CustomHelperHolder)1 CustomResolver (ai.saiy.android.custom.CustomResolver)1 Profanity (ai.saiy.android.nlu.local.Profanity)1