The Symbl Python SDK allows you to add Conversational Intelligence directly into your web applications and meeting platforms. You can generate Speech-to-Text and get intelligent insights such as action items, topics and questions, etc.
Find the source code here: https://github.com/symblai/symbl-python.
Before you install the Symbl Python SDK, ensure that you have installed Python 2.7+ or Python 3.4+ (PyPy supported). You can download the latest version of Python from the official Python site and read the Python documentation for the instructions.
To install the SDK you can use either of the following methods:
- Install via
pipusing the command:
pipis the package installer for Python. pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4. If you do not have it, install it using the get pip commands documented in PIP Documentation.
- Install from source using the following command.
This is an alternate way of installing the Python SDK, where after downloading the Python SDK repository on your own local PC you can run this command to install:
Before using the Symbl Python SDK, you have to set up your authentication credentials. You can get your authentication credentials from your Symbl Platform account. Using your App ID and App Secret, create the credentials file with the following details:
Save this file as
symbl.conf. By default, the location is your home directory, which would look something like this in a Windows System:
You can also save it in the same location from where you are executing the
Essentially, you must save the
symbl.conf in the same folder from where you are executing the program as it utilizes the credentials to successfully run it.
Using Credentials in-line
Alternatively, if you wish to quickly test the code, you can utilize the
credentials variable to pass your App ID and Secret as a part of the code itself. However, you must add the credentials variable every time make a new API call.
The Python SDK allows you to utilize the capabilities of the Symbl APIs with minimal coding effort.
To use this SDK, you must first
import Symbl SDK and then specify the service you’d like to use along with the operation that want to perform:
In the example given below, we are calling the real-time audio processing service that accepts a
file_path to ingest the audio file.
Further, we specify the operation which is generating transcript (messages) for the said conversation.
Using Python SDK, you can get the Conversation Insights: Speech-to-Text (messages), Topics, Follow ups, Action Items and Questions.
In this Python SDK release, you can utilize the following Symbl APIs:
- Streaming API (in Real-time)
- Telephony API (in Real-time)
- Async Text API
- Async Audio (File) API
- Async Audio (URL) API
- Async Video (File) API
- Async Video (URL) API