Skip to content

arjun-droid/speechwaveview-custom-speechrecognizer

Repository files navigation

speechwave - custom speechrecognizer

This project demonstrates the customisation of speech recognizer in android. We can add our own UI and equalizer animation based on voice amplitude.

alt text

We can change the interpolator as needed during aniamtion,

    waveAnimator.setInterpolator(new LinearInterpolator());

List of interpolators as per docs, AccelerateDecelerateInterpolator, AccelerateInterpolator, AnticipateInterpolator, AnticipateOvershootInterpolator, BaseInterpolator, BounceInterpolator, CycleInterpolator, DecelerateInterpolator, LinearInterpolator, OvershootInterpolator, PathInterpolator.

Please don't forget to destroy the recognizer object onDestroy(),

    @Override
    public void onDestroy() {
    super.onDestroy();
    if (recognizer != null) {
        recognizer.stopListening();
        recognizer.destroy();
     }
    }

About

customisation of speech recognizer in android

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages