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.
Summary
This PR modifies the object Persona and PersonaCreate, changing the fields voiceId to Voice object and faceId to Face object
Changes
Related Issues
N/A
Type of Change
This change solved the comments posted on the review of the previous PR created by @rquesada [https://github.com//pull/4]
Checklist
Screenshots (if applicable)
Additional Context
Tested locally using Swagger.
Based on the premise that we are not expecting that faces and voices to be modified frequently, so the approach we considered here was to create an "assets" folder (in the front-end) to store the images, videos and audios. Then it was only going to be necessary to store the id of voice and face to help us associate the asset with the voice and face.
For example:
Given the object Persona:
The frontend will be able to load the files:
:/assests/audio/x4te5a69-40d6-4246-8d53-f4c777be8080.mp3
:/assests/face/7ffe5a69-40d6-4246-8d54-f4c777be6989.jpg
:/assests/video/7ffe5a69-40d6-4246-8d54-f4c777be6989.mp4