edge-tts icon indicating copy to clipboard operation
edge-tts copied to clipboard

Add callback for communicate.save()

Open kency opened this issue 1 year ago • 2 comments

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=...

kency avatar Apr 15 '23 17:04 kency

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")

rany2 avatar Apr 17 '23 16:04 rany2

got it

kency avatar Apr 21 '23 09:04 kency