TransducerRecognizer support#98
Conversation
|
@thewh1teagle test added, pr ready for review |
|
Hi @rdcm |
|
Follow the other examples template you can copy paste and change a bit |
|
@thewh1teagle done, example added :) |
|
Two things I noticed: (2) in the example instead of filling nulls, you can use |
|
Feel free to leave it as is, I'll merge it anyway soon : ) |
Example still works fine :) |
|
Also added more detailed example. |
|
Looks great. Thank you! |
| } | ||
|
|
||
| let config = TransducerConfig { | ||
| decoder: "decoder.onnx".to_string(), |
There was a problem hiding this comment.
@thewh1teagle Hi, do you know if there is any way to pass &[u8] instead of a file path to the model?
Currently, we use a workaround with a memfd_create call to get a file descriptor for the memory and then pass the path to that descriptor.
However, ONNX Runtime provides a more convenient API, for example:
Session::builder()
....
.commit_from_memory(model);
Hi! I'm currently migrating our speech-to-text service from Python to Rust. Our service relies on the
from_transducerAPI from the original library, and it would be great to have the same API available insherpa-rs. I still need to add a test, which might take a bit more time. In the meantime, if you have any comments or suggestions regarding the PR, I'm happy to discuss and make changes as needed.TODO:
- tests(done)Run tests:
cargo test transducerPrerequisites: