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")
Metadata
Release files for Transkit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Transkit-1.0.0.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Transkit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.7 kB
Release files / Transkit-1.0.0.tar.gz
| Download URL | Transkit-1.0.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f2aca640f7cd93d960e4688169f829558ab7dcf2ccf5b384877729a7a6c2811
|
|
BLAKE2b-256 checksum How to use checksums |
cfab17a4cd49c8439a4071da07840e5ae0e4000a2645b680a1de2e322ffbd5ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Transkit-1.0.0-py3-none-any.whl
| Download URL | Transkit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc981e893657f4a5da6d35ef4066e97c06af169c4a4ff2afe48b8a95cdcb8646
|
|
BLAKE2b-256 checksum How to use checksums |
2ef64585fd3a481b2ecf667d176e36c0c0d09b979458251bf1580501551cda54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|