oscie57 / tiktok-voice

Simple Python script to interact with the TikTok TTS API
515 stars 74 forks source link

weird sequencing #15

Closed oscie57 closed 1 year ago

oscie57 commented 1 year ago

currently for batch processes, we have numbered files and "for file in listdir", which on some systems mess up (1, 10, 11, 12, 13...., 2, 3...) and idk a workaround

if anyone can help thatd be awesome

taiwo0007 commented 1 year ago

So one would need a way to sort the index of the files?

oscie57 commented 1 year ago

kinda yeah

taiwo0007 commented 1 year ago

Okay so we should be able to create a simple sort function that’s called in the code that sorts the indices of the files before outputting it

lynn commented 1 year ago

This should do the trick: https://stackoverflow.com/a/4623518/257418

oscie57 commented 1 year ago

This should do the trick: https://stackoverflow.com/a/4623518/257418

ah awesome! i dont have time to work on this at the moment (and i dont really have anything setup), so if someone could work on this thatd be great

taiwo0007 commented 1 year ago

I've coded a fix for this

oscie57 commented 1 year ago

fixed