From f41e1f808fbcf9014c0a5668fba4eff6dd051366 Mon Sep 17 00:00:00 2001 From: Bjorn Bringert Date: Mon, 14 Mar 2011 18:42:10 +0000 Subject: Port Pico to new TTS engine API Requires TTS engine API added in change I7614ff788e11f897e87052f684f1b4938d539fb7 The compatibility layer in pico/compat/src/com/android/tts/compat/SynthProxy.java pico/compat/jni/com_android_tts_compat_SynthProxy.cpp is based on these files removed from the old TTS engine framework: frameworks/base/packages/TtsService/src/android/tts/SynthProxy.java frameworks/base/packages/TtsService/jni/android_tts_SynthProxy.cpp Bug: 4150618 Change-Id: I7a2cca6b5cfbac6158a87fad69cc796140adb2f3 --- pico/src/com/svox/pico/PicoService.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pico/src/com/svox/pico/PicoService.java (limited to 'pico/src') diff --git a/pico/src/com/svox/pico/PicoService.java b/pico/src/com/svox/pico/PicoService.java new file mode 100644 index 0000000..4c6e678 --- /dev/null +++ b/pico/src/com/svox/pico/PicoService.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2011 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.svox.pico; + +import com.android.tts.compat.CompatTtsService; + +public class PicoService extends CompatTtsService { + + private static final String TAG = "PicoService"; + + @Override + protected String getSoFilename() { + return "/system/lib/libttspico.so"; + } + +} -- cgit v1.1