Find Voices by a Particular Tag
Our API has a tagging system where we tag voices. Here's a simple example where we extract all of the "sad" English voices.
import requests
import json
url = "https://v2.api.audio/speech/voice"
headers = {
"accept": "application/json",
"x-api-key": "APIKEY"
}
response = requests.get(url, headers=headers)
voices = json.loads(response.text)
english_sad_voices = [voice['alias'] for voice in voices["data"]["voices"] if voice["language"] in ["english", "multilingual"] and "sad" in voice["tags"] ]
print(english_sad_voices)
This will return a list of English sad voices. You can also change the tag to "cheerful" or something similar.
You can see the tags on library.audiostack.ai
Updated 5 months ago