Wordcab Python
📖 Transcribe and Summarize any business communication at scale with Wordcab's API
Wordcab is a transcription and summarization service that provides a simple API to summarize any audio, text, or JSON file.
It also includes compatibility with other transcripts platforms like:
Getting started
You can learn more about Wordcab services and pricing on our website.
If you want to try out the API, you can signup for a free account and start using the API right away.
Requirements
- OS:
- Python:
Installation
You can install Wordcab Python via pip from PyPI:
$ pip install wordcab
Start using the API with any python script right away!
Usage
Start Summary full pipeline
import time
from wordcab import retrieve_job, retrieve_summary, start_summary
from wordcab.core_objects import AudioSource, GenericSource, InMemorySource
# Prepare your input source
## For a transcript stored as a .txt or .json file
source = GenericSource(filepath="path/to/file.txt") # Or file.json
## For a transcript stored as an audio file
source = AudioSource(filepath="path/to/file.mp3")
## For a transcript already in memory
transcript = {"transcript": ["SPEAKER A: Hello.", "SPEAKER B: Hi."]}
source = InMemorySource(obj=transcript)
# Launch the Summarization job
job = start_summary(
source_object=source,
display_name="sample_txt",
summary_type="narrative",
summary_lens=[1, 3],
tags=["sample", "text"],
)
# Wait for the job completion
while True:
job = retrieve_job(job_name=job.job_name)
if job.job_status == "SummaryComplete":
break
else:
time.sleep(3)
# Get the summary id
summary_id = job.summary_details["summary_id"]
# Retrieve the summary
summary = retrieve_summary(summary_id=summary_id)
# Get the summary as a human-readable string
print(summary.get_formatted_summaries())
# Save the json object to a file
with open("wordcab_summary.json", "w") as f:
f.write(summary)
Documentation
Please see the Documentation for more details.
Contributing
Contributions are very welcome. 🚀 To learn more, see the Contributor Guide.
License
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for wordcab 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wordcab-0.7.2.tar.gz | 31.6 kB | Without provenance | Details for wordcab-0.7.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wordcab-0.7.2-py3-none-any.whl | Python 3 | none | any | Details for wordcab-0.7.2-py3-none-any.whl |
Total release size: 68.3 kB
Release files / wordcab-0.7.2.tar.gz
| Download URL | wordcab-0.7.2.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a2975ffda0a0bafbbab2f36b3fbf151ab38b2c35f1b524053e12a5f19347c79
|
|
BLAKE2b-256 checksum How to use checksums |
415e47e4644073f65ab89efdc95b58590d18e988c19468cfa49dd79dc67df268
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.25.0
|
Release files / wordcab-0.7.2-py3-none-any.whl
| Download URL | wordcab-0.7.2-py3-none-any.whl |
|---|---|
| Size | 36.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c08307bca6fc8338c2da4b6e1f9f634124f73c0cf90226285a081ae5f61c106d
|
|
BLAKE2b-256 checksum How to use checksums |
ab11d849441c91128341690579b8521b32d8368e45f84db875f40410d4e561ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.25.0
|
Security for wordcab 0.7.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.