-
Notifications
You must be signed in to change notification settings - Fork 116
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
Feature Request - Work with Audio file's download URL #101
Comments
Hi, @prakhart111! I'm a bit hesitant to add any sort of networking to Parselmouth, as it somewhat diverges from the available Praat functionality. But, with a couple of lines, you can already do this via a detour. Based on one of PySoundfile's examples in the documentation: import io
import parselmouth
import soundfile as sf
from urllib.request import urlopen
def read_parselmouth_sound_from_url(url):
data, samplerate = sf.read(io.BytesIO(urlopen(url).read()), dtype='float64')
return parselmouth.Sound(data, sampling_frequency=samplerate)
read_parselmouth_sound_from_url("https://parselmouth.readthedocs.io/en/latest/examples/audio/the_north_wind_and_the_sun.wav") Would this work for you? Based on this, I would be curious to try reading a |
Hey @YannickJadoul , Since most free deployment services are ReadOnly, this will help people using parselMouth. I deployed on PythonAnywhere, with help of a friend, and that worked for me. Also, this |
Hi @prakhart111. I had a closer look, and it seems possible, but will require quite some refactoring (potentially replacing the usage of Praat's But yes, I agree that integration with |
Sure, ping me here if you need some help ;)
|
I'm not on Twitter, I'm afraid ;-) If you want to have a stab at this, feel free to check out the code. I'll happily give you some pointers if you want. |
Okay, I'll join you guys on gitter. Yup, it is quite intimidating, especially for JS people ;) But I'll have a look for sure. |
I recently used Parselmouth, but my deployment server was read-only (Vercel) so I can't save the audio file that was coming from the client.
This can be resolved if Parselmouth supports fetching the file directly via a cloud URL (like aws).
I would love to help if someone's building this, or decides to build after this request.
Thanks.
The text was updated successfully, but these errors were encountered: