/tts/src/com/google/tts/ESpeak.java

http://eyes-free.googlecode.com/ · Java · 40 lines · 10 code · 3 blank · 27 comment · 0 complexity · c9264419c5703ccd0869bce2928aa957 MD5 · raw file

  1. /*
  2. * Copyright (C) 2009 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.google.tts;
  17. import android.app.Activity;
  18. import android.os.Bundle;
  19. /*
  20. * The Java portion of this TTS plugin engine app does nothing. This activity is
  21. * only here so that the native code can be wrapped up inside an apk file.
  22. *
  23. * The file path structure convention is that the native library implementing
  24. * TTS must be a file placed here:
  25. * /data/data/<PACKAGE_NAME>/lib/libtts<ACTIVITY_NAME_LOWERCASED>.so Example:
  26. * /data/data/com.svox.pico/lib/libttspico.so
  27. */
  28. public class eSpeak extends Activity {
  29. @Override
  30. public void onCreate(Bundle savedInstanceState) {
  31. super.onCreate(savedInstanceState);
  32. // The Java portion of this does nothing.
  33. // This activity is only here so that everything
  34. // can be wrapped up inside an apk file.
  35. finish();
  36. }
  37. }