Browse Source

Relocate the package to com.reecedunn.espeak

master
Reece H. Dunn 12 years ago
parent
commit
123e55a39c

+ 3
- 3
android/AndroidManifest.xml View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.googlecode.eyesfree.espeak"
package="com.reecedunn.espeak"
android:versionCode="7"
android:versionName="1.46.02_r7" >

@@ -127,8 +127,8 @@
</activity>

<provider
android:name="com.googlecode.eyesfree.espeak.providers.SettingsProvider"
android:authorities="com.googlecode.eyesfree.espeak.providers.SettingsProvider" />
android:name="com.reecedunn.espeak.providers.SettingsProvider"
android:authorities="com.reecedunn.espeak.providers.SettingsProvider" />
</application>

</manifest>

android/jni/jni/com_googlecode_eyesfree_espeak_eSpeakService.cpp → android/jni/jni/eSpeakService.cpp View File

@@ -116,7 +116,7 @@ JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {
}

JNIEXPORT jboolean
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeClassInit(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeClassInit(
JNIEnv* env, jclass clazz) {
if (DEBUG) LOGV("%s", __FUNCTION__);
METHOD_nativeSynthCallback = env->GetMethodID(clazz, "nativeSynthCallback", "([B)V");
@@ -126,7 +126,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeClassInit(
}

JNIEXPORT jboolean
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeCreate(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeCreate(
JNIEnv *env, jobject object, jstring path) {
if (DEBUG) LOGV("%s", __FUNCTION__);
native_data_t *nat = new native_data_t;
@@ -150,7 +150,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeCreate(
}

JNIEXPORT jboolean
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeDestroy(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeDestroy(
JNIEnv *env, jobject object) {
if (DEBUG) LOGV("%s", __FUNCTION__);
native_data_t *nat = getNativeData(env, object);
@@ -163,7 +163,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeDestroy(
}

JNIEXPORT jint
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetSampleRate(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeGetSampleRate(
JNIEnv *env, jobject object) {
if (DEBUG) LOGV("%s", __FUNCTION__);
const native_data_t *nat = getNativeData(env, object);
@@ -171,7 +171,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetSampleRate(
}

JNIEXPORT jint
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetChannelCount(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeGetChannelCount(
JNIEnv *env, jobject object) {
if (DEBUG) LOGV("%s", __FUNCTION__);
const native_data_t *nat = getNativeData(env, object);
@@ -179,7 +179,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetChannelCoun
}

JNIEXPORT jint
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetAudioFormat(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeGetAudioFormat(
JNIEnv *env, jobject object) {
if (DEBUG) LOGV("%s", __FUNCTION__);
const native_data_t *nat = getNativeData(env, object);
@@ -187,7 +187,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetAudioFormat
}

JNIEXPORT jint
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetBufferSizeInMillis(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeGetBufferSizeInMillis(
JNIEnv *env, jobject object) {
if (DEBUG) LOGV("%s", __FUNCTION__);
const native_data_t *nat = getNativeData(env, object);
@@ -195,7 +195,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetBufferSizeI
}

JNIEXPORT jobjectArray
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetAvailableVoices(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeGetAvailableVoices(
JNIEnv *env, jobject object) {
if (DEBUG) LOGV("%s", __FUNCTION__);

@@ -235,7 +235,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeGetAvailableVo
}

JNIEXPORT jboolean
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeSetVoiceByProperties(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeSetVoiceByProperties(
JNIEnv *env, jobject object, jstring name, jstring languages, jint gender, jint age,
jint variant) {
const char *c_name = name ? env->GetStringUTFChars(name, NULL) : NULL;
@@ -268,7 +268,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeSetVoiceByProp
}

JNIEXPORT jboolean
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeSetRate(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeSetRate(
JNIEnv *env, jobject object, jint rate) {
const int wpm = ((float)rate / 100) * espeak_GetParameter(espeakRATE, 0);
if (DEBUG) LOGV("%s(rate=%d, wpm=%d)", __FUNCTION__, rate, wpm);
@@ -286,7 +286,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeSetRate(
}

JNIEXPORT jboolean
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeSetPitch(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeSetPitch(
JNIEnv *env, jobject object, jint pitch) {
// The values of pitch from android range from 50 - 200, with 100 being normal.
// The values espeak supports are from 0 - 100, with 50 being normal.
@@ -306,7 +306,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeSetPitch(
}

JNIEXPORT jboolean
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeSynthesize(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeSynthesize(
JNIEnv *env, jobject object, jstring text) {
if (DEBUG) LOGV("%s", __FUNCTION__);
native_data_t *nat = getNativeData(env, object);
@@ -335,7 +335,7 @@ JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeSynthesize(
}

JNIEXPORT jboolean
JNICALL Java_com_googlecode_eyesfree_espeak_SpeechSynthesis_nativeStop(
JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeStop(
JNIEnv *env, jobject object) {
if (DEBUG) LOGV("%s", __FUNCTION__);
espeak_Cancel();

android/jni/jni/com_google_espeakengine.cpp → android/jni/jni/espeakengine.cpp View File


+ 1
- 1
android/res/xml/tts_engine.xml View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<tts-engine
xmlns:android="http://schemas.android.com/apk/res/android"
android:settingsActivity="com.googlecode.eyesfree.espeak.TtsSettingsActivity" />
android:settingsActivity="com.reecedunn.espeak.TtsSettingsActivity" />

android/src/com/googlecode/eyesfree/espeak/CheckVoiceData.java → android/src/com/reecedunn/espeak/CheckVoiceData.java View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.googlecode.eyesfree.espeak;
package com.reecedunn.espeak;

import android.app.Activity;
import android.content.Context;
@@ -24,8 +24,8 @@ import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.Engine;
import android.util.Log;

import com.googlecode.eyesfree.espeak.SpeechSynthesis.SynthReadyCallback;
import com.googlecode.eyesfree.espeak.SpeechSynthesis.Voice;
import com.reecedunn.espeak.SpeechSynthesis.SynthReadyCallback;
import com.reecedunn.espeak.SpeechSynthesis.Voice;

import java.io.File;
import java.util.ArrayList;

android/src/com/googlecode/eyesfree/espeak/DownloadVoiceData.java → android/src/com/reecedunn/espeak/DownloadVoiceData.java View File

@@ -1,5 +1,6 @@
/*
* Copyright (C) 2009 The Android Open Source Project
* Copyright (C) 2012 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,7 +15,7 @@
* limitations under the License.
*/

package com.googlecode.eyesfree.espeak;
package com.reecedunn.espeak;

import android.app.Activity;
import android.content.Context;
@@ -33,7 +34,7 @@ import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;

public class DownloadVoiceData extends Activity {
public static final String BROADCAST_LANGUAGES_UPDATED = "com.googlecode.eyesfree.espeak.LANGUAGES_UPDATED";
public static final String BROADCAST_LANGUAGES_UPDATED = "com.reecedunn.espeak.LANGUAGES_UPDATED";

private AsyncExtract mAsyncExtract;


android/src/com/googlecode/eyesfree/espeak/GetSampleText.java → android/src/com/reecedunn/espeak/GetSampleText.java View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.googlecode.eyesfree.espeak;
package com.reecedunn.espeak;

import android.app.Activity;
import android.content.Intent;

android/src/com/googlecode/eyesfree/espeak/SpeechSynthesis.java → android/src/com/reecedunn/espeak/SpeechSynthesis.java View File

@@ -21,7 +21,7 @@
* API Version: 14
*/

package com.googlecode.eyesfree.espeak;
package com.reecedunn.espeak;

import android.content.Context;
import android.speech.tts.TextToSpeech;

android/src/com/googlecode/eyesfree/espeak/TtsService.java → android/src/com/reecedunn/espeak/TtsService.java View File

@@ -22,7 +22,7 @@
* API Version: 14
*/

package com.googlecode.eyesfree.espeak;
package com.reecedunn.espeak;

import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
@@ -39,8 +39,8 @@ import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeechService;
import android.util.Log;

import com.googlecode.eyesfree.espeak.SpeechSynthesis.SynthReadyCallback;
import com.googlecode.eyesfree.espeak.SpeechSynthesis.Voice;
import com.reecedunn.espeak.SpeechSynthesis.SynthReadyCallback;
import com.reecedunn.espeak.SpeechSynthesis.Voice;

import java.util.List;
import java.util.Locale;

android/src/com/googlecode/eyesfree/espeak/TtsSettingsActivity.java → android/src/com/reecedunn/espeak/TtsSettingsActivity.java View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.googlecode.eyesfree.espeak;
package com.reecedunn.espeak;

import android.os.Bundle;
import android.preference.ListPreference;

android/src/com/googlecode/eyesfree/espeak/eSpeak.java → android/src/com/reecedunn/espeak/eSpeak.java View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.googlecode.eyesfree.espeak;
package com.reecedunn.espeak;

import android.app.Activity;
import android.os.Bundle;
@@ -28,7 +28,7 @@ import android.os.Bundle;
* implementing TTS must be a file placed here:
* /data/data/<PACKAGE_NAME>/lib/libtts<ACTIVITY_NAME_LOWERCASED>.so
* Example:
* /data/data/com.googlecode.eyesfree.espeak/lib/libttsespeak.so
* /data/data/com.reecedunn.espeak/lib/libttsespeak.so
*/

public class eSpeak extends Activity {

android/src/com/googlecode/eyesfree/espeak/eSpeakActivity.java → android/src/com/reecedunn/espeak/eSpeakActivity.java View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/

package com.googlecode.eyesfree.espeak;
package com.reecedunn.espeak;

import android.app.Activity;
import android.app.AlertDialog;

android/src/com/googlecode/eyesfree/espeak/providers/SettingsProvider.java → android/src/com/reecedunn/espeak/providers/SettingsProvider.java View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/

package com.googlecode.eyesfree.espeak.providers;
package com.reecedunn.espeak.providers;

import com.googlecode.eyesfree.espeak.CheckVoiceData;
import com.reecedunn.espeak.CheckVoiceData;

import android.content.ContentProvider;
import android.content.ContentValues;

Loading…
Cancel
Save