public class PushToTalkAndroidASR extends Object implements PipelineProfile
SpeechRecognizer
API for ASR.
Using Android's built-in ASR requires that an Android Context
object
be attached to the speech pipeline using it. This must be done separately
from profile application, using
SpeechPipeline.Builder#setAndroidContext(android.content.Context)
.
AndroidSpeechRecognizer
Constructor and Description |
---|
PushToTalkAndroidASR() |
Modifier and Type | Method and Description |
---|---|
SpeechPipeline.Builder |
apply(SpeechPipeline.Builder builder)
Apply this profile to the pipeline builder.
|
public SpeechPipeline.Builder apply(SpeechPipeline.Builder builder)
PipelineProfile
apply
in interface PipelineProfile
builder
- The builder to which the profile should be applied.Copyright © 2020. All rights reserved.