Update Uptated-Prototype/Test-json.py
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
##########################
|
'''
|
||||||
|
############### Test Code Block Start ###############
|
||||||
x = {
|
x = {
|
||||||
"en_GB-alan-low": {
|
"en_GB-alan-low": {
|
||||||
"key": "en_GB-alan-low",
|
"key": "en_GB-alan-low",
|
||||||
@@ -73,9 +74,8 @@ z = json.loads(y)
|
|||||||
for voice_id, info in z.items():
|
for voice_id, info in z.items():
|
||||||
print((f"{info["language"]["name_native"]} ({info["language"]["name_english"]}, {info["language"]["country_english"]})")
|
print((f"{info["language"]["name_native"]} ({info["language"]["name_english"]}, {info["language"]["country_english"]})")
|
||||||
|
|
||||||
# Removes duplicate languages choices from list
|
############### Test Code Block End ###############
|
||||||
|
'''
|
||||||
##########################
|
|
||||||
|
|
||||||
# Attempts to load voices.json
|
# Attempts to load voices.json
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user