PageRenderTime 27ms CodeModel.GetById 15ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 1ms

/tts/src/com/google/tts/ITtsBeta.aidl

http://eyes-free.googlecode.com/
Android Interface Definition Language | 69 lines | 25 code | 23 blank | 21 comment | 0 complexity | b1c7662f3a01b091d9c93ec33997cc91 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");
 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
17package com.google.tts;
18
19import com.google.tts.ITtsCallbackBeta;
20
21import android.content.Intent;
22
23/**
24 * AIDL for the TTS Service
25 * ITts.java is autogenerated from this.
26 *
27 * {@hide}
28 */
29interface ITtsBeta {
30    int setSpeechRate(in String callingApp, in int speechRate);
31
32    int setPitch(in String callingApp, in int pitch);
33
34    int speak(in String callingApp, in String text, in int queueMode, in String[] params);
35
36    boolean isSpeaking();
37
38    int stop(in String callingApp);
39
40    void addSpeech(in String callingApp, in String text, in String packageName, in int resId);
41
42    void addSpeechFile(in String callingApp, in String text, in String filename);
43
44    String[] getLanguage();
45
46    int isLanguageAvailable(in String language, in String country, in String variant, in String[] params);
47
48    int setLanguage(in String callingApp, in String language, in String country, in String variant);
49
50    boolean synthesizeToFile(in String callingApp, in String text, in String[] params, in String outputDirectory);
51
52    int playEarcon(in String callingApp, in String earcon, in int queueMode, in String[] params);
53
54    void addEarcon(in String callingApp, in String earcon, in String packageName, in int resId);
55
56    void addEarconFile(in String callingApp, in String earcon, in String filename);
57
58    int registerCallback(in String callingApp, ITtsCallbackBeta cb);
59
60    int unregisterCallback(in String callingApp, ITtsCallbackBeta cb);
61
62    int playSilence(in String callingApp, in long duration, in int queueMode, in String[] params);
63    
64    int setEngineByPackageName(in String enginePackageName);
65
66    String getDefaultEngine();
67
68    boolean areDefaultsEnforced();
69}