public class VoiceHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
VoiceHelper.SpeechFromTextCallback
State-based callback for the VoiceHelper class
|
Modifier and Type | Method and Description |
---|---|
static VoiceHelper |
getInstance(Context context)
Get an instance of the VoiceHelper utility class, if it's currently null,
create a new instance
|
void |
getSpeechFromText(java.lang.String text,
VoiceHelper.SpeechFromTextCallback callback)
Create a new audio recording based on text passed in, update the callback with the changing states
|
public static VoiceHelper getInstance(Context context)
context
- public void getSpeechFromText(java.lang.String text, VoiceHelper.SpeechFromTextCallback callback)
text
- the text to rendercallback
-