File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,12 @@ export function toSentence (text) {
121
121
122
122
// ------------------------------------------------------------------
123
123
124
+ /**
125
+ * Factory function - create SpeechRecognition class from cognitive recognizer.
126
+ * @param {Function } - createRecognizer function.
127
+ * @param {DictationOptions } - Options object.
128
+ * @return {SpeechRecognition }
129
+ */
124
130
function createSpeechRecognitionFromRecognizer ( createRecognizer , options ) {
125
131
// Extend options with the defaults.
126
132
const _OPT = { ...DEFAULTS , ...options } ;
@@ -553,6 +559,11 @@ function createCognitiveRecognizer (options) {
553
559
554
560
// ------------------------------------------------------------------
555
561
562
+ /**
563
+ * The main function, to create an adaptive speech recognizer 'Ponyfill' object.
564
+ * @param {DictationOptions } - Options object.
565
+ * @return {Ponyfill }
566
+ */
556
567
export function createDictationRecognizerPonyfill ( options ) {
557
568
// WAS: const recognizer = createCognitiveRecognizer(options);
558
569
You can’t perform that action at this time.
0 commit comments