Learn how to retrieve available voices, models, and languages.
In this tutorial, you will learn how to use the Smallest AI platform to fetch the available languages, models, and voices. By the end of this guide, you’ll be able to retrieve and display this information using the Smallest AI SDK.
Before you begin, ensure you have the following:
Set your API key as an environment variable:
The Smallest AI SDK allows you to query the available languages, voices, and models for your TTS needs. Here’s how you can do it:
get_languages()
: Retrieves the list of supported languages for Text-to-Speech.get_voices(model="model_name")
: Retrieves the voices available for a specific model (e.g., “lightning”).get_cloned_voices()
: Fetches all user-specific cloned voices.get_models()
: Retrieves the TTS models on the platform available through API.If you have any questions or encounter issues, our community is here to help!
Learn how to retrieve available voices, models, and languages.
In this tutorial, you will learn how to use the Smallest AI platform to fetch the available languages, models, and voices. By the end of this guide, you’ll be able to retrieve and display this information using the Smallest AI SDK.
Before you begin, ensure you have the following:
Set your API key as an environment variable:
The Smallest AI SDK allows you to query the available languages, voices, and models for your TTS needs. Here’s how you can do it:
get_languages()
: Retrieves the list of supported languages for Text-to-Speech.get_voices(model="model_name")
: Retrieves the voices available for a specific model (e.g., “lightning”).get_cloned_voices()
: Fetches all user-specific cloned voices.get_models()
: Retrieves the TTS models on the platform available through API.If you have any questions or encounter issues, our community is here to help!