public class AIConfiguration
extends ai.api.AIConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
AIConfiguration.RecognitionEngine |
| Constructor and Description |
|---|
AIConfiguration(java.lang.String clientAccessToken,
ai.api.AIConfiguration.SupportedLanguages language,
AIConfiguration.RecognitionEngine recognitionEngine) |
| Modifier and Type | Method and Description |
|---|---|
AIConfiguration.RecognitionEngine |
getRecognitionEngine() |
android.content.res.AssetFileDescriptor |
getRecognizerCancelSound() |
android.content.res.AssetFileDescriptor |
getRecognizerStartSound() |
android.content.res.AssetFileDescriptor |
getRecognizerStopSound() |
boolean |
isNormalizeInputSound() |
boolean |
isVoiceActivityDetectionEnabled() |
void |
setNormalizeInputSound(boolean normalizeInputSound)
With setting this field to true you can enable sound amplification if it's too quiet.
|
void |
setRecognizerCancelSound(android.content.res.AssetFileDescriptor recognizerCancelSound) |
void |
setRecognizerStartSound(android.content.res.AssetFileDescriptor recognizerStartSound) |
void |
setRecognizerStopSound(android.content.res.AssetFileDescriptor recognizerStopSound) |
void |
setVoiceActivityDetectionEnabled(boolean voiceActivityDetectionEnabled)
With setting this field to false you can disable voice activity detection for Speaktoit recognition.
|
public AIConfiguration(java.lang.String clientAccessToken,
ai.api.AIConfiguration.SupportedLanguages language,
AIConfiguration.RecognitionEngine recognitionEngine)
public AIConfiguration.RecognitionEngine getRecognitionEngine()
public boolean isVoiceActivityDetectionEnabled()
public void setVoiceActivityDetectionEnabled(boolean voiceActivityDetectionEnabled)
voiceActivityDetectionEnabled - public void setNormalizeInputSound(boolean normalizeInputSound)
normalizeInputSound - public boolean isNormalizeInputSound()
public android.content.res.AssetFileDescriptor getRecognizerStartSound()
public void setRecognizerStartSound(android.content.res.AssetFileDescriptor recognizerStartSound)
public android.content.res.AssetFileDescriptor getRecognizerStopSound()
public void setRecognizerStopSound(android.content.res.AssetFileDescriptor recognizerStopSound)
public android.content.res.AssetFileDescriptor getRecognizerCancelSound()
public void setRecognizerCancelSound(android.content.res.AssetFileDescriptor recognizerCancelSound)