-
-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutomaticSpeechRecognitionPipeline callback_function api inconsistancy #43
Comments
Hi. Yes, you are correct, I originally implemented it with a TODO comment somewhere there to return a type parameter, which will help users differentiate between what is being run in the callback function. For the most part, this is because HF's transformer library doesn't have the same functionality (probably because it would cause some inconsistencies), so, we had to make it ourselves (something which is very useful for streaming the output back). I suppose we could change it to something like |
Yeah, I really like the stream part, so keep it. I would keep calling the streaming callback Personally, my use cases are as follows:
|
(BTW I love how fast you are responding to issues here kudos 😀) |
Haha yeah I'm trying my best to get all these things fixed! 😄 I'm online 24/7 ;)
Okay that sounds do-able. This functionality (streaming while doing merging) isn't available in the python implementation, so, there aren't any "rules" to follow per-se (other than it should make sense haha).
Technically, it is possible to get the timestamps while you are generating, using a combination of the I can try provide an example (later possibly), but I am currently working on fixing some other bugs (see other issues). |
Updated in 6c9ea41 👍 will close the issue when I make the 1.3.2 release. Let me know if you have any other questions or suggestions :) |
Update is now live! (https://www.npmjs.com/package/@xenova/transformers/v/1.3.2) Closing the issue now :) |
In the
AutomaticSpeechRecognitionPipeline
class thecallback_function
is used in two places:As a result, 1 returns a different data format than 2. This wasn't very clear to me. Does it not make sense to have a separate callback for these?
The text was updated successfully, but these errors were encountered: