Skip to content
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

Encode audio files #37

Open
mezaga opened this issue Jun 25, 2023 · 4 comments
Open

Encode audio files #37

mezaga opened this issue Jun 25, 2023 · 4 comments

Comments

@mezaga
Copy link

mezaga commented Jun 25, 2023

While trying to generate my dataset encodings, I keep getting an empty folder and the following message (Both in Colab and M1 Mac):

too many indices for array: array is 1-dimensional, but 2 were indexed Exception ignored! Continuing..

@dr-zaib
Copy link

dr-zaib commented Oct 27, 2023

helloo!
i am actually having the same problem and trying to figure it out, any news?

@marcoppasini
Copy link
Owner

Are you using stereo audio files? If you are using mono files, try to convert them to stereo and try to encode again, I think it should solve the issue :-)

@dr-zaib
Copy link

dr-zaib commented Nov 8, 2023

helloo
it definitely was an error about the audio channelling (stereo/mono/transformation into an array/back trasforming to an audio file..stuff!) after an audio data augmentation i did to my dataset!

for anyone having the same problem I recommend to check this, it may be really uselful, since the encoder makes uses of Audiosegment from pydub library

https://github.com/jiaaro/pydub/blob/master/API.markdown#audiosegmentexport

@dr-zaib
Copy link

dr-zaib commented Nov 8, 2023

But when running the encoder today from the colab script (since we are talking about the Encoding part here) i got this error i really do not know how to debug and/or fix, any hint/solution ?

Traceback (most recent call last):
File "/content/musika/musika_encode.py", line 7, in
from utils_encode import UtilsEncode_functions
File "/content/musika/utils_encode.py", line 9, in
from utils import Utils_functions
File "/content/musika/utils.py", line 11, in
import gradio as gr
File "/usr/local/lib/python3.9/site-packages/gradio/init.py", line 3, in
import gradio.components as components
File "/usr/local/lib/python3.9/site-packages/gradio/components.py", line 38, in
from gradio import media_data, processing_utils, utils
File "/usr/local/lib/python3.9/site-packages/gradio/processing_utils.py", line 17, in
from gradio import encryptor, utils
File "/usr/local/lib/python3.9/site-packages/gradio/utils.py", line 395, in
class Request:
File "/usr/local/lib/python3.9/site-packages/gradio/utils.py", line 415, in Request
client = httpx.AsyncClient()
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1397, in init
self._transport = self._init_transport(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1445, in _init_transport
return AsyncHTTPTransport(
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 275, in init
self._pool = httpcore.AsyncConnectionPool(
TypeError: init() got an unexpected keyword argument 'socket_options'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants