Add Forced Alignment Client and Models (#120)#121
Open
sourman wants to merge 3 commits intorevdotcom:developfrom
Open
Add Forced Alignment Client and Models (#120)#121sourman wants to merge 3 commits intorevdotcom:developfrom
sourman wants to merge 3 commits intorevdotcom:developfrom
Conversation
f24036d to
cd5e3b2
Compare
* Introduced `ForcedAlignmentClient` for interacting with the Rev AI forced alignment API. * Added data models: `ForcedAlignmentJob`, `ForcedAlignmentResult`, `ElementAlignment`, and `Monologue` to handle alignment jobs. * Implemented methods for processing jobs in forced_alignment_client. * Created a module for forced alignment models to organize classes. * Updated generic_api_client get_result_object methods optionally specify the result route to accomodate the forced alignment endpoint which does NOT have a /result route. Instead it has a /transcript route as per [Get Forced Alignment Transcript By Id](https://docs.rev.ai/api/alignment/reference/#operation/GetAlignmentTranscriptById) Signed-off-by: Ahmed Mansour <ahmed@loom.li>
* Introduced a new test module `test_forced_alignment_client.py` to validate the functionality of the `ForcedAlignmentClient`. * Implemented various test cases to ensure correct behavior for job submission and result retrieval. * Added tests for handling missing parameters and validating error messages. Signed-off-by: Ahmed Mansour <ahmed@loom.li>
* Added `ForcedAlignmentJob`, `ForcedAlignmentResult`, and `ElementAlignment` to the import statements in the `__init__.py` files to expose at the top level of the sdk for easy import access. Signed-off-by: Ahmed Mansour <ahmed@loom.li>
cd5e3b2 to
08383d9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ForcedAlignmentClientfor interacting with the Rev AI forced alignment API.ForcedAlignmentJob,ForcedAlignmentResult,ElementAlignment, andMonologueto handle alignment jobs.