public class TFWakewordAndroidASR extends Object implements PipelineProfile
SpeechRecognizer API for ASR. Properties related to
signal processing are tuned for the "Spokestack" wakeword.
Wakeword detection requires configuration to locate the models used for classification; these properties must be set elsewhere:
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,
WakewordTrigger| Constructor and Description |
|---|
TFWakewordAndroidASR() |
| 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)
PipelineProfileapply in interface PipelineProfilebuilder - The builder to which the profile should be applied.Copyright © 2021. All rights reserved.