blob: c1051c49e02d8cc77da9ec931cc38d72bab3fd88 [file] [log] [blame]
Charles Chen4b8e1852009-06-08 18:20:38 -07001/*
2 * Copyright (C) 2009 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of 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,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Charles Chenf85aa5a2009-06-10 10:39:55 -070017package android.speech.tts;
Charles Chen4b8e1852009-06-08 18:20:38 -070018
Charles Chenf85aa5a2009-06-10 10:39:55 -070019import android.speech.tts.ITtsCallback;
Charles Chen4b8e1852009-06-08 18:20:38 -070020
21import android.content.Intent;
22
23/**
24 * AIDL for the TTS Service
25 * ITts.java is autogenerated from this.
26 *
27 * {@hide}
28 */
29interface ITts {
Charles Chena9c5e4b2009-07-09 20:27:15 -070030 int setSpeechRate(in String callingApp, in int speechRate);
Charles Chen4b8e1852009-06-08 18:20:38 -070031
Charles Chena9c5e4b2009-07-09 20:27:15 -070032 int setPitch(in String callingApp, in int pitch);
Jean-Michel Trivi2ea53492009-06-23 13:44:40 -070033
Charles Chena9c5e4b2009-07-09 20:27:15 -070034 int speak(in String callingApp, in String text, in int queueMode, in String[] params);
Charles Chen4b8e1852009-06-08 18:20:38 -070035
36 boolean isSpeaking();
37
Charles Chena9c5e4b2009-07-09 20:27:15 -070038 int stop(in String callingApp);
Charles Chen4b8e1852009-06-08 18:20:38 -070039
Charles Chena9c5e4b2009-07-09 20:27:15 -070040 void addSpeech(in String callingApp, in String text, in String packageName, in int resId);
Charles Chen4b8e1852009-06-08 18:20:38 -070041
Charles Chena9c5e4b2009-07-09 20:27:15 -070042 void addSpeechFile(in String callingApp, in String text, in String filename);
Charles Chen4b8e1852009-06-08 18:20:38 -070043
Jean-Michel Trividdb0a802009-06-29 16:38:47 -070044 String[] getLanguage();
45
Charles Chen1a2712c2010-04-01 17:16:28 -070046 int isLanguageAvailable(in String language, in String country, in String variant, in String[] params);
Jean-Michel Trividdb0a802009-06-29 16:38:47 -070047
Charles Chena9c5e4b2009-07-09 20:27:15 -070048 int setLanguage(in String callingApp, in String language, in String country, in String variant);
Charles Chen4b8e1852009-06-08 18:20:38 -070049
Charles Chena9c5e4b2009-07-09 20:27:15 -070050 boolean synthesizeToFile(in String callingApp, in String text, in String[] params, in String outputDirectory);
Charles Chen4b8e1852009-06-08 18:20:38 -070051
Charles Chena9c5e4b2009-07-09 20:27:15 -070052 int playEarcon(in String callingApp, in String earcon, in int queueMode, in String[] params);
Charles Chen4b8e1852009-06-08 18:20:38 -070053
Charles Chena9c5e4b2009-07-09 20:27:15 -070054 void addEarcon(in String callingApp, in String earcon, in String packageName, in int resId);
Charles Chen4b8e1852009-06-08 18:20:38 -070055
Charles Chena9c5e4b2009-07-09 20:27:15 -070056 void addEarconFile(in String callingApp, in String earcon, in String filename);
Charles Chen4b8e1852009-06-08 18:20:38 -070057
Charles Chen78c9d0d2009-07-13 16:22:41 -070058 int registerCallback(in String callingApp, ITtsCallback cb);
Charles Chen4b8e1852009-06-08 18:20:38 -070059
Charles Chen78c9d0d2009-07-13 16:22:41 -070060 int unregisterCallback(in String callingApp, ITtsCallback cb);
Charles Chen4b8e1852009-06-08 18:20:38 -070061
Charles Chenb4fbe762009-11-18 16:34:32 -080062 int playSilence(in String callingApp, in long duration, in int queueMode, in String[] params);
63
Charles Chendef71852010-03-25 19:59:50 -070064 int setEngineByPackageName(in String enginePackageName);
65
Charles Chen42229252010-03-29 18:30:30 -070066 String getDefaultEngine();
67
68 boolean areDefaultsEnforced();
Charles Chen4b8e1852009-06-08 18:20:38 -070069}