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

Seeking support through restful API #156

Open
faroit opened this issue Mar 3, 2020 · 3 comments
Open

Seeking support through restful API #156

faroit opened this issue Mar 3, 2020 · 3 comments
Assignees
Labels
Milestone

Comments

@faroit
Copy link

faroit commented Mar 3, 2020

is there a way to get chunked audio through the restful API, assuming seeking is supported for the requested format (e.g. WAV, OGG)

@faroit
Copy link
Author

faroit commented Mar 3, 2020

@yomguy isn't this already implemented here?

start = float(request.GET.get('start', 0))
stop = float(request.GET.get('stop', -1))

So this could be easily passed as an argument from the api, right?

@yomguy
Copy link
Member

yomguy commented Mar 4, 2020

@faroit that's right, we should add those parms to the API.

Could you please specify your own usecase need a little bit?
For example, do you need to access to the source stream or to a transcoded one?

@faroit
Copy link
Author

faroit commented Mar 4, 2020

Could you please specify your own use case need a little bit?

we have two use-cases:

a) some of our deep learning inference model can only process chunks of a few seconds and therefore would stream the chunks directly from the timeside api. For this to work, the chunking would need to make sure that no samples are dropped. This might be a bit difficult for transcoded streams such as mp3 (as the encoder usually add few zero samples)

b) a client requests a full transcoded (and heavily compressed) file to the client and a user specifies a range to be processed in a second step. Then the source stream or a safe transcoded format (ogg, flac?) is requested using start and stop to reduce bandwidth.

As we need to deploy this pretty quickly (we are still running 0.8.1) it would be great if this could be added to the master or dev branch in a way it can be cherry picked easily. Also I can certainly implement this myself if you provide some proposal how you would add this feature.

@yomguy yomguy self-assigned this Mar 4, 2020
@yomguy yomguy added the feature label Mar 4, 2020
@yomguy yomguy added this to the 1.0 milestone Apr 10, 2020
@yomguy yomguy modified the milestones: 1.0, 1.2 Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants