diff options
author | Bjorn Bringert <bringert@android.com> | 2011-03-14 18:42:10 +0000 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2011-04-15 09:57:18 +0100 |
commit | f41e1f808fbcf9014c0a5668fba4eff6dd051366 (patch) | |
tree | 41540ee669544331efd78d35f97dabed6a9cff9e /pico/src | |
parent | 8a1dd2de697c7e5fc3290d1115b51ed0bcdcd726 (diff) | |
download | external_svox-f41e1f808fbcf9014c0a5668fba4eff6dd051366.zip external_svox-f41e1f808fbcf9014c0a5668fba4eff6dd051366.tar.gz external_svox-f41e1f808fbcf9014c0a5668fba4eff6dd051366.tar.bz2 |
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
Diffstat (limited to 'pico/src')
-rw-r--r-- | pico/src/com/svox/pico/PicoService.java | 29 |
1 files changed, 29 insertions, 0 deletions
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"; + } + +} |