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 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: add annotations to speech events
- Loading branch information
1 parent
083d527
commit 68d3988
Showing
10 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
14 changes: 10 additions & 4 deletions
14
src/main/java/io/spokestack/spokestack/OnSpeechEventListener.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 |
---|---|---|
@@ -1,18 +1,24 @@ | ||
package io.spokestack.spokestack; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
/** | ||
* speech event callback interface. | ||
* | ||
* This is the primary event interface in Spokestack. The speech pipeline | ||
* routes events/errors asynchronously through it as they occur. | ||
* <p> | ||
* This is the primary event interface in Spokestack. The speech pipeline routes | ||
* events/errors asynchronously through it as they occur. | ||
* </p> | ||
*/ | ||
public interface OnSpeechEventListener { | ||
/** | ||
* receives a speech event. | ||
* | ||
* @param event the name of the event that was raised | ||
* @param context the current speech context | ||
* @throws Exception on error | ||
*/ | ||
void onEvent(SpeechContext.Event event, SpeechContext context) | ||
throws Exception; | ||
void onEvent(@NonNull SpeechContext.Event event, | ||
@NonNull SpeechContext context) | ||
throws Exception; | ||
} |
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
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
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
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
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
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
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
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
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