deepgram-rust-sdk
deepgram-rust-sdk copied to clipboard
Streaming callbacks
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?