Transkit API library
Project description
Transkit API libraries
In this repository, you can find example ready-to-use libraries. For more technical information, please visit https://api.transkit.vicomtech.org/doc/
Functions in "Transkit" package
- getOnlineTranscription(audioBase64, pipeline). Returns a JSON
- getOfflineTranscription(audioURL, pipeline, config = None). Returns a JSON
- getOfflineTranscriptionStatus(jobid). Returns a JSON
- getQuota(). Returns a JSON
- addTag(tag).
- setTags(tags).
An exception will be thrown if any error detected, so we recommend to use try/except statements.
Example
Install the package
pip install Transkit
Import:
from Transkit import Transkit
Initialize with your api key:
transkitapi = Transkit("apikey")
Make an online transcription:
with open("file.mp3", "rb") as f:
encodedFile = base64.b64encode(f.read()).decode()
transcriptionResult = transkit.getOnlineTranscription(encodedFile, "myPipeline")
print("Transcription result: ", transcriptionResult)
Make an offline transcription:
transcriptionResult = transkit.getOfflineTranscription("https://myvideo.url/path/here", "myPipeline")
Make an offline transcription status request:
transcriptionResult = transkit.getOfflineTranscriptionStatus("my-job-id")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Transkit-1.0.0.tar.gz
(15.1 kB
view details)
Built Distribution
Transkit-1.0.0-py3-none-any.whl
(15.6 kB
view details)
File details
Details for the file Transkit-1.0.0.tar.gz
.
File metadata
- Download URL: Transkit-1.0.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f2aca640f7cd93d960e4688169f829558ab7dcf2ccf5b384877729a7a6c2811 |
|
MD5 | 45dbc4d179313051c5069f47737fb6bf |
|
BLAKE2b-256 | cfab17a4cd49c8439a4071da07840e5ae0e4000a2645b680a1de2e322ffbd5ca |
File details
Details for the file Transkit-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: Transkit-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc981e893657f4a5da6d35ef4066e97c06af169c4a4ff2afe48b8a95cdcb8646 |
|
MD5 | 34d81f28d3163187858e3003d6ce475b |
|
BLAKE2b-256 | 2ef64585fd3a481b2ecf667d176e36c0c0d09b979458251bf1580501551cda54 |