Permalink
Browse files

Initial Engine Repository

This is the just the framework for building a new plugin Engine. No code
specific to getting the engine work has been added yet.
  • Loading branch information...
0 parents commit 06aa55a66fa4ee05998b6a77065ef3e53d75d420 @happyalu committed Mar 24, 2010
@@ -0,0 +1,5 @@
+bin/
+libs/
+gen/
+build.properties
+local.properties
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="edu.cmu.cs.speech.tts.flite" android:versionCode="1"
+ android:versionName="1.0">
+ <uses-sdk android:minSdkVersion="4" />
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:enabled="true" android:name="FliteEngine"
+ android:label="@string/app_name" android:theme="@android:style/Theme.Translucent.NoTitleBar">
+ <intent-filter>
+ <action android:name="android.intent.action.START_TTS_ENGINE" />
+ <category android:name="android.intent.category.tts_engine.FLITE" />
+ <category android:name="android.intent.category.tts_lang.en.US" />
+ </intent-filter>
+ </activity>
+ </application>
+</manifest>
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="FliteEngine" default="help">
+
+ <!-- The local.properties file is created and updated by the 'android' tool.
+ It contains the path to the SDK. It should *NOT* be checked in in Version
+ Control Systems. -->
+ <property file="local.properties" />
+
+ <!-- The build.properties file can be created by you and is never touched
+ by the 'android' tool. This is the place to change some of the default property values
+ used by the Ant rules.
+ Here are some properties you may want to change/update:
+
+ application.package
+ the name of your application package as defined in the manifest. Used by the
+ 'uninstall' rule.
+ source.dir
+ the name of the source directory. Default is 'src'.
+ out.dir
+ the name of the output directory. Default is 'bin'.
+
+ Properties related to the SDK location or the project target should be updated
+ using the 'android' tool with the 'update' action.
+
+ This file is an integral part of the build system for your application and
+ should be checked in in Version Control Systems.
+
+ -->
+ <property file="build.properties" />
+
+ <!-- The default.properties file is created and updated by the 'android' tool, as well
+ as ADT.
+ This file is an integral part of the build system for your application and
+ should be checked in in Version Control Systems. -->
+ <property file="default.properties" />
+
+ <!-- Custom Android task to deal with the project target, and import the proper rules.
+ This requires ant 1.6.0 or above. -->
+ <path id="android.antlibs">
+ <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
+ <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
+ <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
+ <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
+ <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
+ </path>
+
+ <taskdef name="setup"
+ classname="com.android.ant.SetupTask"
+ classpathref="android.antlibs" />
+
+ <!-- Execute the Android Setup task that will setup some properties specific to the target,
+ and import the build rules files.
+
+ The rules file is imported from
+ <SDK>/platforms/<target_platform>/templates/android_rules.xml
+
+ To customize some build steps for your project:
+ - copy the content of the main node <project> from android_rules.xml
+ - paste it in this build.xml below the <setup /> task.
+ - disable the import by changing the setup task below to <setup import="false" />
+
+ This will ensure that the properties are setup correctly but that your customized
+ build steps are used.
+ -->
+ <setup />
+
+</project>
@@ -0,0 +1,13 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Indicates whether an apk should be generated for each density.
+split.density=false
+# Project target.
+target=android-4
@@ -0,0 +1,2 @@
+APP_PROJECT_PATH := $(call my-dir)/project
+APP_MODULES := ttsfliteengine
@@ -0,0 +1,36 @@
+Android Application for Flite
+Author: Alok Parlikar <aup@cs.cmu.edu>
+Copyright 2010
+
+This directory contains the native code for FliteEngine. Flite Libraries are
+distributed in binary form here, but you can download flite from
+www.cmuflite.org and compile them again.
+
+To compile this project, you need to build the native part first, then build
+the Java project.
+
+
+The native code part, which resides in Application.mk and project/...,
+must be built with the Android NDK:
+
+ unzip android-ndk.zip
+ cd android-ndk
+
+ cd apps
+ ln -s /path/to/FliteEngine/native ./FliteEngine
+ cd ..
+
+ ./build/host-setup.sh
+
+ make APP=FliteEngine
+
+This will generate a file
+
+ project/libs/armeabi/liblibttsfliteengine.so
+
+which should be copied to
+
+ libs/armeabi/libttsfliteengine.so
+
+The Java part, which resides in AndroidManifest.xml and in src/...,
+can be built using the ant script.
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd $ANDROID_NDK
+make APP=FliteEngine
@@ -0,0 +1,22 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-subdir-java-files)
+
+LOCAL_JAVA_RESOURCE_DIRS := resources
+
+LOCAL_JAVA_LIBRARIES := core framework
+
+LOCAL_MODULE:= ttsfliteengine
+
+LOCAL_DX_FLAGS := --core-library
+
+include $(BUILD_JAVA_LIBRARY)
+
+# Include subdirectory makefiles
+# ============================================================
+
+ifneq ($(SDK_ONLY),true)
+ include $(call first-makefiles-under,$(LOCAL_PATH))
+endif
@@ -0,0 +1,17 @@
+LOCAL_PATH:= $(call my-dir)
+
+# wrapper lib will depend on and include the flite libs
+#
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := ttsfliteengine
+LOCAL_SRC_FILES := edu_cmu_cs_speech_tts_fliteEngine.cpp
+
+LOCAL_LDLIBS:= -llog \
+ $(LOCAL_PATH)/../libs/armeabi/libcmu_us_rms_me_18.a \
+ $(LOCAL_PATH)/../libs/armeabi/libflite_cmulex.a \
+ $(LOCAL_PATH)/../libs/armeabi/libflite_usenglish.a \
+ $(LOCAL_PATH)/../libs/armeabi/libflite.a \
+
+
+include $(BUILD_SHARED_LIBRARY)
Oops, something went wrong. Retry.

0 comments on commit 06aa55a

Please sign in to comment.