Initialization

Before the DeepTone™ SDK can be used, it must first be initialized. Before you do so, ensure you have your License Key and Model file. If you don't, you can request them at support@oto.ai.

The deeptone.Deeptone class is the entry point for the DeepTone™ Python SDK. You can instantiate it like in the code snippet below by replacing YOUR_KEY with the provided license key and PATH_TO_MODEL_FILE with the path to the provided .model file:

import deeptone
engine = deeptone.Deeptone(license_key="YOUR_KEY",
model_path="PATH_TO_MODEL_FILE")

After these steps the SDK is now ready to be used.

You can verify that the import and initialization were sucessful by trying to run the following code that prints a list with the available models.

print(engine.get_available_models())