-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Error in Loading audio file in base64 codec #6029
Comments
Hi @makseq Please help me out. Thanks! |
@iqbalfarz are you sure you turned on "Use pre-signed URLs" in the storage settings? and also you should use valueType="url" for your Audio tag in the labeling config. |
I believe audio tag doesn't support base64 data in tasks. |
I upload a regular mp3 file to my bucket, then provide a short uri to as in my $audio variable, and it appears as the raw base64 format for some reason (inside the task). In addition, I don't know if it has anything to do with it - but my browser also crashes when I am trying to load a labeling task (enterprise version), with out of memory message. What should I do? Is there a different format supported in tasks? Would appreciate your advice in the matter. |
I deleted and created the storage again with the "use pre-signed URLs" turned on. now:
when clicking on the link it opens the audio file in a new window and plays the audio but inside the UI there is the above error. I am working with enterprise UI: "release": "2.13.1.dev2". |
Most likely, you haven't configured the CORS settings on GCS side: https://docs.humansignal.com/guide/persistent_storage#Configure-CORS-for-the-GCS-bucket |
@makseq what can we do to support it? Can we help in any way? |
The problem was solved by setting cors config to:
] Beforehand the origin contained specific url (app-heartx..), and the method only contained GET. |
@parthagar why do you need this? It's a bad way to operate with label studio tasks, your data manager pages will start perform badly, browser will hang a lot and probably it will lead to page crashes and OOM, because your browser will handle the whole audio data for the page at once. Most likely, you have to rethink your pipeline and switch to storing your data in s3/gcs/etc. |
I have an issue.
I am storing my audio file in S3 bucket, and I am syncing audio file from there.
It is working in non-labelling UI, I meant where we see all columns present as well as the
audio
one. Here, I am able to run the audio file.But, when I click to label this, I am getting below error:
The task looks like below:
Please help me out @makseq , It's an urgent task.
thanks a lot and I hope to hear from you soon.
Thanks again!
Originally posted by @iqbalfarz in #1492 (comment)
The text was updated successfully, but these errors were encountered: