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

Add callback for communicate.save() #69

Open
kency opened this issue Apr 15, 2023 · 2 comments
Open

Add callback for communicate.save() #69

kency opened this issue Apr 15, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@kency
Copy link

kency commented Apr 15, 2023

some likes after it saved the mp3 file ,i need play it ,or do sth with the mp3 file,so i need write a callback function for #save.finish after save completed
Could u give a callback for communicate.save() , some likes communicate.add_callback.....or communicate.callback=...

@rany2
Copy link
Owner

rany2 commented Apr 17, 2023

Hi, if you add this and make a PR I won't reject it. But I don't get why you'd want to do that versus just:

await communicate.save("a.mp3")
do_something_with_mp3("a.mp3")

@kency
Copy link
Author

kency commented Apr 21, 2023

got it

@rany2 rany2 added the good first issue Good for newcomers label Apr 26, 2023
@rany2 rany2 changed the title Could u give a callback for communicate.save() Add callback for communicate.save() May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants