Skip to main content

SONATA: SOund and Narrative Advanced Transcription Assistant

Project description

SONATA 🎵🔊

License: GPL v3 GitHub stars

SOund and Narrative Advanced Transcription Assistant

SONATA(SOund and Narrative Advanced Transcription Assistant) is advanced ASR system that captures human expressions including emotive sounds and non-verbal cues.

✨ 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 (online and offline modes)
  • ⏱️ 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

# With offline speaker diarization (no token needed after setup)
sonata-asr path/to/audio.wav --diarize --offline-diarize --offline-config ~/.sonata/models/offline_config.yaml

📚 See full usage documentation
⌨️ See complete CLI documentation
🎤 See offline diarization guide

🗣️ Supported Languages

SONATA supports 10 languages including English, Korean, Chinese, Japanese, French, German, Spanish, Italian, Portuguese, and Russian.

🌐 See languages documentation

🔊 Audio Event Detection

SONATA can detect over 500 different audio events, from laughter and applause to ambient sounds and music. The customizable event detection thresholds allow you to fine-tune sensitivity for specific audio events to match your unique use cases, such as podcast analysis, meeting transcription, or nature recording analysis.

🎵 See audio events documentation

🚀 Next Steps

  • 🧠 Advanced ASR model diversity
  • 😢 Improved emotive detection
  • 🔊 Better speaker diarization
  • ⚡ Performance optimization

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📝 See contribution guidelines

📄 License

This project is licensed under the GNU General Public License v3.0.

🙏 Acknowledgements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sonata_asr-0.0.8.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonata_asr-0.0.8-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file sonata_asr-0.0.8.tar.gz.

File metadata

  • Download URL: sonata_asr-0.0.8.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for sonata_asr-0.0.8.tar.gz
Algorithm Hash digest
SHA256 e5342ec3eb1abf6c80e25f7c37e856e007323eea4567bd92304b2092550aa8bc
MD5 8c1e4ede931b899168d0ce2173755e7b
BLAKE2b-256 a229f636ae0a79a4c65fd986af30937a3597db1980095e57f8aa961bd0b0553d

See more details on using hashes here.

File details

Details for the file sonata_asr-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: sonata_asr-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for sonata_asr-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 414cb98aa89350c97bcde152e4bb97bc2860b8630ce603d3e4c0b64084289bb9
MD5 ecc4b8f7f12321170c68cf49c5bc6eb4
BLAKE2b-256 5cf2db7cd8b79d22b835809e6ed0cc20897bc58603b16f8990a0bdfee0f396be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page