Flite-TTS-Engine-for-Android


Source link: https://github.com/happyalu/Flite-TTS-Engine-for-Android

Flite TTS Engine for Android

Author: Alok Parlikar

Introduction

Flite (festival-lite) is a small, fast runtime speech synthesis engine developed at Carnegie Mellon University and primarily designed for small embedded devices. Flite is an opensource synthesis engine that can be used to provide text-to-speech functionality on smartphones and similar devices. For more information about Flite, visit www.cmuflite.org

This application wraps the Flite engine so that it can be installed as an application on Android devices. This app gets installed as a TTS library, thereby allowing other applications to make use of Flite for synthesis.

Installing this Application

This app is not yet available on the Google Play Store, but you can generate an apk file by building this source code, or download an APK file from the Github page and install it on your device. Devices running Android versions 2.3 (Gingerbread) or later are supported.

After installing this application, you will have to:

  1. Enable Flite from "Text to Speech Settings" on your phone
  2. Install voice data
  3. Go to "Language" settings and select the voice that you want.

By clicking on "Listen to a sample" you can verify that Flite is working.

Using Flite for TTS in Your Application

If you are developing an application and would like to use Flite for speech synthesis, you can specify "edu.cmu.cs.speech.tts.flite" as the package name of the engine to use.

Building this App from Source using the Build script

Instructions here are for development on Linux.

Requirements

In order to build this application, you need the following:

  • Android NDK Release 10e or newer
  • Android SDK with the SDK Platform package for Android 5.1.1 (API 22)

Application Build Steps

Export necessary environment variables

export ANDROID_NDK=/path/to/android/ndk export ANDROID_SDK=/path/to/android/sdk bash ./build.sh 

Wait for the build script do download, verify, extract, patch and build the Flite Engine and App.

The final apk will be placed in bin/FliteEngine-debug.apk.

Building this App from Source manually

Instructions here are for development on Linux.

Requirements

In order to build this application, you need the following:

Application Build Steps

Export necessary environment variables

export FLITEDIR=/path/to/flite-2.0.0 export FLITE_APP_DIR=/path/to/this/application export ANDROID_NDK=/path/to/android/ndk export ANDROID_SDK=/path/to/android/sdk 

Build Flite Engine for multiple architectures

cd $FLITEDIR ./configure --with-langvox=android --target=armeabi-android make ./configure --with-langvox=android --target=armeabiv7a-android make ./configure --with-langvox=android --target=x86-android make ./configure --with-langvox=android --target=mips-android make 

Build installable application package (debug mode)

cd $FLITE_APP_DIR ant debug 

Resources

Lib that imports all the vector drawables from materialdesignicons.com into your R.drawable/.

A simple plain pie chart widget fully customizable.

Library for toolbar animation.

A simple ViewPager indicator implementation compatible with the Android Support Library. It can use arrows on the left and on right and it can display a pageIndicator.

This is a wrapper of OpenWeatherMap for Android platform using Volley.

Defrag is a simple to use library that allows for Fragment-free Android applications.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes