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

ValueError: rate must be specified when data is a numpy array or list of audio samples. #10

Open
sugizo opened this issue Mar 28, 2024 · 0 comments

Comments

@sugizo
Copy link

sugizo commented Mar 28, 2024

execute
medipack trim 'extract_audio.mp3' -s '00:00' -t '00:09' -o 'trim_s_t.mp3'

result

Traceback (most recent call last):
  File "/usr/local/bin/medipack", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/medipack/main.py", line 69, in main
    Meditor.aaudio_cutter(inp,trimmer,out)
AttributeError: type object 'Meditor' has no attribute 'aaudio_cutter'. Did you mean: 'audio_cutter'?
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-10-d5f5b9eceb4f>](https://localhost:8080/#) in <cell line: 3>()
      1 get_ipython().system("medipack trim 'extract_audio.mp3' -s '00:00' -t '00:09' -o 'trim_s_t.mp3'")
      2 
----> 3 IPython.display.Audio('trim_s_t.mp3')

[/usr/local/lib/python3.10/dist-packages/IPython/lib/display.py](https://localhost:8080/#) in __init__(self, data, filename, url, embed, rate, autoplay, normalize, element_id)
    114         if self.data is not None and not isinstance(self.data, bytes):
    115             if rate is None:
--> 116                 raise ValueError("rate must be specified when data is a numpy array or list of audio samples.")
    117             self.data = Audio._make_wav(data, rate, normalize)
    118 

ValueError: rate must be specified when data is a numpy array or list of audio samples.

best regards

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

1 participant