Typhoon ASR
A user-friendly Python package for Thai speech recognition using the Typhoon ASR model.
Installation
pip install typhoon-asr
Quick Start
Python API
from typhoon_asr import transcribe
# Basic transcription
result = transcribe("audio.wav")
print(result['text'])
# With word timestamps (estimated)
result = transcribe("audio.wav", with_timestamps=True)
print(result['text'])
for ts in result['timestamps']:
print(f"[{ts['start']:.2f}s - {ts['end']:.2f}s] {ts['word']}")
# Specify device
result = transcribe("audio.wav", device="cuda") # or "cpu", "auto"
Command Line
# Basic usage
typhoon-asr audio.wav
# With timestamps
typhoon-asr audio.wav --with-timestamps
# Specify device
typhoon-asr audio.wav --device cuda
Supported Formats
.wav,.mp3,.m4a,.flac,.ogg,.aac,.webm
API Reference
transcribe(input_file, model_name="scb10x/typhoon-asr-realtime", with_timestamps=False, device="auto")
Parameters:
input_file(str): Path to audio filemodel_name(str): HuggingFace model identifierwith_timestamps(bool): Generate estimated word timestampsdevice(str): Processing device ("auto", "cpu", "cuda")
Returns:
dictwith keys:text: Transcribed texttimestamps: List of word timestamps (if enabled)processing_time: Processing duration in secondsaudio_duration: Audio duration in seconds
Requirements
- Python ≥ 3.8
- CUDA (optional, for GPU acceleration)
License
Apache Software License 2.0
Metadata
Release files for typhoon-asr 0.1.1
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 |
|---|---|---|---|---|
| typhoon_asr-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for typhoon_asr-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typhoon_asr-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for typhoon_asr-0.1.1-py3-none-any.whl |
Total release size: 8.6 kB
Release files / typhoon_asr-0.1.1.tar.gz
| Download URL | typhoon_asr-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a2cad67801346c19cf3637085a7c0545d751ef908d6e792ebe3c41603a4258a
|
|
BLAKE2b-256 checksum How to use checksums |
2a3185e72d3d357231d59fa0bcbd1a8175ba41cc14a81b25ecde60d52bb02f79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / typhoon_asr-0.1.1-py3-none-any.whl
| Download URL | typhoon_asr-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9316bc8972e56cff07ee4e2cba41629cd14c38974ae7351025c9641659b1e596
|
|
BLAKE2b-256 checksum How to use checksums |
a6cdcc52df8ee0b44b3175247181e180c9d925ecfe1598af61b315b334e88bec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Security for typhoon-asr 0.1.1
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.