AI2 Component  (Version nb184)
ITextToSpeech.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2009-2011 Google, All Rights reserved
3 // Copyright 2011-2012 MIT, All rights reserved
4 // Released under the Apache License, Version 2.0
5 // http://www.apache.org/licenses/LICENSE-2.0
6 package com.google.appinventor.components.runtime.util;
7 
8 import java.util.ArrayList;
9 import java.util.Locale;
10 import java.util.Set;
11 
19 public interface ITextToSpeech {
20 
25 
29  public void onSuccess();
30 
34  public void onFailure();
35  }
36 
42  public void speak(String message, Locale loc);
43 
48  public void onStop();
49 
54  public void onResume();
55 
56 
61  public void onDestroy();
62 
68  public void setPitch(float pitch);
69 
76  public void setSpeechRate(float speechRate);
77 
78  public int isLanguageAvailable(Locale loc);
79 
80  public boolean isInitialized() ;
81 
82 }
com.google.appinventor.components.runtime.util.ITextToSpeech.onResume
void onResume()
com.google.appinventor.components.runtime.util.ITextToSpeech.TextToSpeechCallback
Definition: ITextToSpeech.java:24
com.google.appinventor.components.runtime.util.ITextToSpeech.onStop
void onStop()
com.google.appinventor.components.runtime.util.ITextToSpeech.speak
void speak(String message, Locale loc)
com.google.appinventor.components.runtime.util.ITextToSpeech.onDestroy
void onDestroy()
com.google.appinventor.components.runtime.util.ITextToSpeech.setPitch
void setPitch(float pitch)
com.google.appinventor.components.runtime.util.ITextToSpeech.setSpeechRate
void setSpeechRate(float speechRate)
com.google.appinventor.components.runtime.util.ITextToSpeech
Definition: ITextToSpeech.java:19
com.google.appinventor.components.runtime.util.ITextToSpeech.TextToSpeechCallback.onFailure
void onFailure()
com.google.appinventor.components.runtime.util.ITextToSpeech.isLanguageAvailable
int isLanguageAvailable(Locale loc)
com.google.appinventor.components.runtime.util.ITextToSpeech.isInitialized
boolean isInitialized()
com.google.appinventor.components.runtime.util.ITextToSpeech.TextToSpeechCallback.onSuccess
void onSuccess()