alternating between 16 edge-tts English voices [howto] #341
mrfragger
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To just do one chapter with the same voice a simple for in loop works.
for f in .txt; do edge-tts --voice en-US-SteffanNeural -f "$f" --write-media "${f%.}.mp3"; done
it took me many hours of trying to figure out how to alternate voices...nested loops, arrays, etc. Finally got it..just access multiple arrays. I don't know how to repeat an array so just added voices like 6 or 7 times so it can do a tad over 100 chapters of text each with a different voice....hit 16 then repeats.
Beta Was this translation helpful? Give feedback.
All reactions