mirror of
https://github.com/rany2/edge-tts
synced 2024-11-22 01:45:02 +00:00
Hide more items in edge_tts util's --list-voices
This commit is contained in:
parent
b92de4c18b
commit
66d3e61c1a
@ -19,10 +19,17 @@ async def _print_voices(*, proxy: str) -> None:
|
||||
print()
|
||||
|
||||
for key in voice.keys():
|
||||
if key in ["SuggestedCodec", "FriendlyName", "Status"]:
|
||||
if key in (
|
||||
"SuggestedCodec",
|
||||
"FriendlyName",
|
||||
"Status",
|
||||
"VoiceTag",
|
||||
"Name",
|
||||
"Locale",
|
||||
):
|
||||
continue
|
||||
# print ("%s: %s" % ("Name" if key == "ShortName" else key, voice[key]))
|
||||
print(f"{key}: {voice[key]}")
|
||||
pretty_key_name = key if key != "ShortName" else "Name"
|
||||
print(f"{pretty_key_name}: {voice[key]}")
|
||||
|
||||
|
||||
async def _run_tts(args: Any) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user