-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
867 additions
and
921 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
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
32 changes: 15 additions & 17 deletions
32
packages/tasks/src/tasks/automatic-speech-recognition/inference.ts
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,33 +1,31 @@ | ||
|
||
/** | ||
* Inference code generated from the JSON schema spec in ./spec | ||
* | ||
* | ||
* Using src/scripts/inference-codegen | ||
*/ | ||
|
||
|
||
/** | ||
* Inputs for Automatic Speech Recognition inference | ||
*/ | ||
export interface AutomaticSpeechRecognitionInput { | ||
/** | ||
* The input audio data | ||
*/ | ||
inputs: unknown; | ||
/** | ||
* Additional inference parameters | ||
*/ | ||
parameters?: { [key: string]: unknown }; | ||
[property: string]: unknown; | ||
/** | ||
* The input audio data | ||
*/ | ||
inputs: unknown; | ||
/** | ||
* Additional inference parameters | ||
*/ | ||
parameters?: { [key: string]: unknown }; | ||
[property: string]: unknown; | ||
} | ||
|
||
/** | ||
* Outputs of inference for the Automatic Speech Recognition task | ||
*/ | ||
export interface AutomaticSpeechRecognitionOutput { | ||
/** | ||
* The recognized text. | ||
*/ | ||
text: string; | ||
[property: string]: unknown; | ||
/** | ||
* The recognized text. | ||
*/ | ||
text: string; | ||
[property: string]: unknown; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
|
||
/** | ||
* Inference code generated from the JSON schema spec in ./spec | ||
* | ||
* | ||
* Using src/scripts/inference-codegen | ||
*/ | ||
|
||
|
||
/** | ||
* Inputs for Feature Extraction inference | ||
*/ | ||
export interface FeatureExtractionInput { | ||
/** | ||
* One or several texts to get the features of | ||
*/ | ||
inputs: string[] | string; | ||
/** | ||
* Additional inference parameters | ||
*/ | ||
parameters?: { [key: string]: unknown }; | ||
[property: string]: unknown; | ||
/** | ||
* One or several texts to get the features of | ||
*/ | ||
inputs: string[] | string; | ||
/** | ||
* Additional inference parameters | ||
*/ | ||
parameters?: { [key: string]: unknown }; | ||
[property: string]: unknown; | ||
} |
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 |
---|---|---|
|
@@ -48,4 +48,4 @@ | |
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.