SONATA: SOund and Narrative Advanced Transcription Assistant
Project description
SONATA 🎵🔊
SOund and Narrative Advanced Transcription Assistant
SONATA is an advanced Automatic Speech Recognition (ASR) system that captures the symphony of human expression by recognizing and transcribing both verbal content and emotive sounds.
✨ Features
- 🎙️ High-accuracy speech-to-text transcription using WhisperX
- 😀 Recognition of 523+ emotive sounds and non-verbal cues
- 🌍 Multi-language support with 10 languages
- 👥 Speaker diarization for multi-speaker transcription
- ⏱️ Rich timestamp information at the word level
- 🔄 Audio preprocessing capabilities
📚 See detailed features documentation
🚀 Installation
Install the package from PyPI:
pip install sonata-asr
Or install from source:
git clone https://github.com/hwk06023/SONATA.git
cd SONATA
pip install -e .
📖 Quick Start
Basic Transcription
from sonata.core.transcriber import IntegratedTranscriber
# Initialize the transcriber
transcriber = IntegratedTranscriber(asr_model="large-v3", device="cpu")
# Transcribe an audio file
result = transcriber.process_audio("path/to/audio.wav", language="en")
print(result["integrated_transcript"]["plain_text"])
CLI Usage
# Basic usage
sonata-asr path/to/audio.wav
# With speaker diarization
sonata-asr path/to/audio.wav --diarize --hf-token YOUR_HUGGINGFACE_TOKEN
📚 See full usage documentation
⌨️ See complete CLI documentation
🗣️ Supported Languages
SONATA supports 10 languages including English, Korean, Chinese, Japanese, French, German, Spanish, Italian, Portuguese, and Russian.
🔊 Audio Event Detection
SONATA can detect over 500 different audio events, from laughter and applause to ambient sounds and music.
🎵 See audio events documentation
🛣️ Roadmap
- 🌐 Enhanced multilingual support
- 🧠 Advanced ASR model diversity
- 😢 Improved emotive detection
- 🔊 Better speaker diarization
- ⚡ Performance optimization
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the GNU General Public License v3.0.
🙏 Acknowledgements
- WhisperX - Fast speech recognition
- AudioSet AST - Audio event detection
- PyAnnote Audio - Speaker diarization
- HuggingFace Transformers - NLP tools
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonata_asr-0.0.7.tar.gz.
File metadata
- Download URL: sonata_asr-0.0.7.tar.gz
- Upload date:
- Size: 40.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
049190ef75fa5c664d927215ecc859c450fc0597621b0db08de40631017d1765
|
|
| MD5 |
8af5eb0ae96f53db887dc79f9f6df34c
|
|
| BLAKE2b-256 |
4061e7fefba30bd0a9fc313f2d74ad878eccdc9f9c45e87a56991d94d66bcd8f
|
File details
Details for the file sonata_asr-0.0.7-py3-none-any.whl.
File metadata
- Download URL: sonata_asr-0.0.7-py3-none-any.whl
- Upload date:
- Size: 44.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9320772a2061ef861f56abcfc7f4f5ad8bf0b8f1ee2af758bc8c56593b29ef3a
|
|
| MD5 |
9747b0fbe0d737253180b8814935aa12
|
|
| BLAKE2b-256 |
2fa2d02d03565c826a7e1040c1f9a269522a20e700b3b498f479be1de4076379
|