项目作者: arjun-droid

项目描述 :
customisation of speech recognizer in android
高级语言: Java
项目地址: git://github.com/arjun-droid/speechwaveview-custom-speechrecognizer.git


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,

  1. 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(),

  1. @Override
  2. public void onDestroy() {
  3. super.onDestroy();
  4. if (recognizer != null) {
  5. recognizer.stopListening();
  6. recognizer.destroy();
  7. }
  8. }