Quickstart Guide
Prerequisites
Before the DeepTone™ SDK can be used, it must first be initialized. Before you do so, ensure you have your License Key. If you don't, you can request it at support@oto.ai.
Setup
This page will guide you through the process of setting up the DeepTone™ SDK in your project. Select your platform below to get started.
- Python
- Swift/iOS
- Android
Python
info
Note: Python version 3.7+ is required.
Python installation
If you already have python 3.7+ installed on your machine or know how to do it, please skip this section and continue with the environment setup
To install a specific python version pyenv
can be used.
- Mac OS / Linux
- Windows
To setup pyenv
in Mac OS or Linux the pyenv-installer
can be used. Follow
the installation instructions here
or directly use this command to install:
This will add pyenv initialisation commands to your shell's "rc" file. Reload you shell to apply the changes:
Now you are ready to use pyenv
to install a specific python version:
where x
should be replaced with the latest patch version.
Alternatively, you can use
to get a list of all available python versions.
Once the python version is installed, you can either set it as your local python version
such that this version of python will only be used in your current directory, or set it as your global python version with
Now you are ready to install the DeepTone™ SDK.
Environment setup
Set up your environment using your preferred Python Environment Manager.
- Poetry (recommended)
- Pipenv
- Conda
- pip
Create a Poetry project if you don’t have one already, by running:
Add the following to your pyproject.toml
, to configure Poetry to fetch packages from OTO’s PyPI repository:
After the repository is configured, run the following to add the dependency to your project:
Validate the SDK was correctly installed, by importing it within a Python shell and executing the following commands:
If the import was successful, congratulations, you are now ready to use DeepTone™! Head to our Usage section to start exploring.