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

is there any way to restrict max duration of recorded audio? and fire a function on a callback when it reaches the max duration? How to get duration of the audio recording? #285

Closed
anjogithub opened this issue Feb 13, 2024 · 1 comment

Comments

@anjogithub
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
The problem is i want to know if there is already a way inside the package to limit the duration of recording an audio then automatically stop and call a callback function.
Describe the solution you'd like
A clear and concise description of what you want to happen.
A way to add a limit for a recorded audio and fire a callback once the limit is reached, for example, max recorded audio should only be 1 minute, if it reaches 1 minute it should fire a callback function then stop the recording automatically

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Manually creating a timer to measure max duration of recorded audio, i am just asking if there is already a way for this inside the package. I've been searching for many hours now.
Additional context
Add any other context or screenshots about the feature request here.

@anjogithub anjogithub changed the title is there any way to restrict max duration of recorded audio? and fire a function on a callback when it reaches the max duration? is there any way to restrict max duration of recorded audio? and fire a function on a callback when it reaches the max duration? How to get duration of the audio recording? Feb 13, 2024
@llfbandit
Copy link
Owner

You can set your own timer to stop the recording. This package won't do it for you.

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

2 participants