Hide more items in edge_tts util's --list-voices
This commit is contained in:
@@ -19,10 +19,17 @@ async def _print_voices(*, proxy: str) -> None:
|
|||||||
print()
|
print()
|
||||||
|
|
||||||
for key in voice.keys():
|
for key in voice.keys():
|
||||||
if key in ["SuggestedCodec", "FriendlyName", "Status"]:
|
if key in (
|
||||||
|
"SuggestedCodec",
|
||||||
|
"FriendlyName",
|
||||||
|
"Status",
|
||||||
|
"VoiceTag",
|
||||||
|
"Name",
|
||||||
|
"Locale",
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
# print ("%s: %s" % ("Name" if key == "ShortName" else key, voice[key]))
|
pretty_key_name = key if key != "ShortName" else "Name"
|
||||||
print(f"{key}: {voice[key]}")
|
print(f"{pretty_key_name}: {voice[key]}")
|
||||||
|
|
||||||
|
|
||||||
async def _run_tts(args: Any) -> None:
|
async def _run_tts(args: Any) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user