import json

f = open('voice_ids.txt')
data = json.load(f)

print(str(len(data['voices'])) + " total voices")

"""
"labels": {
			"accent": "american",
			"description": "calm",
			"age": "young",
			"gender": "female",
			"use case": "narration"
		},
"""
        
for v in data['voices']:
    print("{0:>10}, {1}, {2}".format(v["name"],v["voice_id"], ', '.join(str(x) for x in v["labels"].values()) ))
  
""" 
Output:  (dont remove or alter the below it is parsed for voices.exe display)
45 total voices
    Rachel, 21m00Tcm4TlvDq8ikWAM, american, calm, young, female, narration
      Drew, 29vD33N1CtxCmqQRPOHJ, american, well-rounded, middle aged, male, news
     Clyde, 2EiwWnXFnvU5JabPnv8n, american, war veteran, middle aged, male, video games
      Paul, 5Q0t7uMcjvnagumLfvZi, american, ground reporter, middle aged, male, news
      Domi, AZnzlk1XvdvUeBnXmlld, american, strong, young, female, narration
      Dave, CYw3kZ02Hs0563khs1Fj, british-essex, conversational, young, male, video games
       Fin, D38z5RcWu1voky8WS1ja, irish, sailor, old, male, video games
     Sarah, EXAVITQu4vr4xnSDxMaL, american, soft, young, female, news
    Antoni, ErXwobaYiN019PkySvjV, american, well-rounded, young, male, narration
    Thomas, GBv7mTt0atIp3Br8iCZE, american, calm, young, male, meditation
   Charlie, IKne3meq5aSn9XLyUdCD, australian, casual, middle aged, male, conversational
    George, JBFqnCBsd6RMkjVDRZzb, british, warm, middle-aged, male, narration
     Emily, LcfcDJNUP1GQjkzn1xUU, american, calm, young, female, meditation
      Elli, MF3mGyEYCl7XYWbV9V6O, american, emotional, young, female, narration
    Callum, N2lVS1w4EtoT3dr4eOWO, american, intense, middle-aged, male, characters
   Patrick, ODq5zmih8GrVes37Dizd, american, shouty, middle aged, male, video games
     Harry, SOYHLrjzK2X1ezoPC6cr, american, anxious, young, male, video games
      Liam, TX3LPaxmHKxFdv7VOQHJ, american, calm, young, male, narration
   Dorothy, ThT5KcBeYPX3keUQqHPh, british, pleasant, young, female, children's stories
      Josh, TxGEqnHWrfWFTfGW9XjX, american, deep, young, male, narration
    Arnold, VR6AewLTigWG4xSOukaG, american, crisp, middle aged, male, narration
 Charlotte, XB0fDUnXU5powFXDhCwa, british-swedish, seductive, young, female, characters
     Alice, Xb7hH8MSUJpSbSDYk0k2, british, confident, middle-aged, female, news
   Matilda, XrExE9yKIg1WjnnlVkGX, american, friendly, middle-aged, female, narration
     James, ZQe5CZNOzWyzPSCn5a3c, australian, calm , old, male, news
    Joseph, Zlb1dXrM653N07WRdFW3, british, middle aged, male, news, ground reporter
    Jeremy, bVMeCyTHy58xNoL34h3p, american-irish, excited, young, male, narration
   Michael, flq6f7yk4E4fJM5XTYuZ, american, old, male, audiobook, orotund
     Ethan, g5CIjZEefAph4nQFvHAz, american, young, male, ASMR, whisper
     Chris, iP95p4xoKVk53GoZ742B, american, casual, middle-aged, male, conversational
      Gigi, jBpfuIE2acCO8z3wKNLl, american, childlish, young, female, animation
     Freya, jsCqWAovK2LkecY7zXl4, american, young, female, overhyped, video games
     Brian, nPczCjzI2devNBz1zQrb, american, deep, middle-aged, male, narration
     Grace, oWAxZDx7w5VEj9dCyTzz, american-southern, young, female, audiobook , gentle
    Daniel, onwK4e9ZLuTAKqWW03F9, british, authoritative, middle-aged, male, news
      Lily, pFZP5JQG7iQjIQuC4Bku, british, raspy, middle-aged, female, narration
    Serena, pMsXgVXv3BLzUgSXRplE, american, pleasant, middle aged, female, interactive
      Adam, pNInz6obpgDQGcFmaJgB, american, deep, middle aged, male, narration
    Nicole, piTKgcLEGmPE4e6mEKli, american, whisper, young, female, audiobook
      Bill, pqHfZKP75CvOlQylNhV4, american, strong, old, male, narration
    Jessie, t0jbNlBVZ17f02VDIeMI, american, raspy , old, male, video games
       Sam, yoZ06aMxZJJ28mfd3POQ, american, raspy, young, male, narration
    Glinda, z9fAnlkpzviPz146aGWa, american, witch, middle aged, female, video games
  Giovanni, zcAOhNBS3c14rBihAFp1, english-italian, foreigner, young, male, audiobook
      Mimi, zrHiDhphv9ZnVXBqCLjz, english-swedish, childish, young, female, animation

"""

