This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: clearer SpokestackAdapter method names
This change adds convenience methods to the SpokestackAdapter abstract class, allowing clients to override methods whose names are more distinct when implemented together with the others. Traces and errors are also duplicated from all individual modules into new purpose-built listener methods.
- Loading branch information
1 parent
9e99d54
commit 64d1f14
Showing
3 changed files
with
132 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/io/spokestack/spokestack/SpokestackModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.spokestack.spokestack; | ||
|
||
/** | ||
* A simple list of Spokestack modules used for unified event dispatching. | ||
*/ | ||
@SuppressWarnings("checkstyle:javadocvariable") | ||
public enum SpokestackModule { | ||
|
||
SPEECH_PIPELINE, | ||
NLU, | ||
TTS | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters