deepgram-rust-sdk icon indicating copy to clipboard operation
deepgram-rust-sdk copied to clipboard

Streaming callbacks

Open bd-g opened this issue 1 year ago • 0 comments

Proposed changes

Allows specifying a callback for streaming requests. See docs.

Types of changes

  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Documentation update or tests (if none of the other choices apply)

Checklist

  • [x] I have read the CONTRIBUTING.md doc
  • [x] I have added tests and/or examples that prove my fix is effective or that my feature works
  • [x] I have added necessary documentation (if appropriate)

Further comments

Added a doc to the callback_method option to clarify the option is only respected for pre-recorded requests. May be worth making a breaking change in the future and refusing to accept streaming requests that attempt to set this option?

bd-g avatar Aug 12 '24 18:08 bd-g