jovo-framework icon indicating copy to clipboard operation
jovo-framework copied to clipboard

SpeechRecognizer doesn't support enabled: false

Open rmtuckerphx opened this issue 1 year ago • 0 comments

I'm submitting a...

  • [x] Bug report
  • [ ] Feature request
  • [ ] Documentation issue or request
  • [ ] Other... Please describe:

Expected Behavior

Setting SpeechRecognizer to enabled: false will use AudioRecording (Jovo-side ASR) even for Chrome browsers that support client-side ASR.

Current Behavior

The documentation indicates that SpeechRecognizer has an enabled config setting. Setting enabled:false gives an error. https://www.jovo.tech/marketplace/client-web#webspeech-api-speechrecognizer

Error Log

Type '{ enabled: false; }' is not assignable to type 'PartialObjectDeep<SpeechRecognizerConfig, {}>'.
  Object literal may only specify known properties, and 'enabled' does not exist in type 'PartialObjectDeep<SpeechRecognizerConfig, {}>'.ts(2322)

Your Environment

  • Jovo Framework version used: 4.5.11
  • Operating System: Windows 11

rmtuckerphx avatar Jul 15 '23 17:07 rmtuckerphx