Sonify 1026 Voice Engine
An expressive, adaptive Indian female TTS voice engine — mid-20s, urban Indian English with native-standard Hindi code-switching.
pip install sonify1026
import snfy
engine = snfy.SonifyEngine()
engine.synthesize(
"That is wonderful news, I am so happy for you!",
emotion=snfy.Emotion.HAPPY,
output_path="out.wav",
)
Installed as
sonify1026, imported assnfy— the same pattern aspip install beautifulsoup4/import bs4.
Voice profile
| Aspect | Behaviour |
|---|---|
| Timbre | Warm, mid register with low-to-mid chest resonance; light, mid-high pitch |
| Delivery | Spontaneous and extemporaneous — no metronomic line-reading |
| Expressiveness | Emotional valence analysed per sentence: smiling inflection on positive phrases, acoustic softening on tender ones, subglottic lift on emphatic ones |
| Pacing | Non-linear — pauses, rate and breathing scale with the emotional subtext |
| Imperfections | Soft breath intakes, mouth clicks, micro-pauses, occasional vocal fry |
| Clarity | Phase-preserving EQ, no compression, no time-stretching in the output path |
| Uniqueness | Every call is its own performance (no fixed seed) |
Features
- Bilingual — English (
en-IN-NeerjaNeural) and Hindi (hi-IN-SwaraNeural), with automatic Hinglish code-switching in either direction. - 17 emotions —
neutral,happy,calm,warm,gentle,sad,excited,angry,fearful,thoughtful,playful,tired,proud,surprised,reassuring,serious,whisper. - Adaptive prosody — intensity words, sentence length and emotional valence drive pitch, rate, volume, brightness, warmth, breathing interval and pause length per sentence.
- Emotional arc — a script that builds in feeling sounds like it builds, instead of resetting each sentence.
- Register control —
normal,formal,casual(casual is the default). - Number normalisation — digits, decimals, times, ordinals and phone numbers are spoken naturally (both ASCII and Devanagari).
- Pitch guard — verifies the rendered voice sits in the intended register and re-renders if a phrase drifts too low or high.
- Offline fallback — pyttsx3 when the network is unavailable.
- Fully configurable — every voice parameter lives in one YAML file; nothing is hardcoded.
Installation
pip install sonify1026
Requires Python 3.9+. An internet connection is required at synthesis time (audio is served by Microsoft Edge TTS); no API key needed.
Usage
Python API
import snfy
engine = snfy.SonifyEngine()
# English
engine.synthesize("Hello! How are you today?", emotion=snfy.Emotion.WARM,
output_path="en.wav")
# Hindi
engine.synthesize("नमस्ते! आपका दिन शुभ हो।", emotion=snfy.Emotion.WARM,
language=snfy.Language.HI_IN, output_path="hi.wav")
# Hinglish — detected automatically
engine.synthesize("Yaar, kal ki meeting bahut important hai, on time aa jaana.",
output_path="hinglish.wav")
Work with audio in memory:
import soundfile as sf
result = engine.synthesize("Hello!") # no output_path
sf.write("out.wav", result.audio, result.sample_rate)
print(result.duration, result.sample_rate) # 4.91 48000
Runtime controls
engine.set_speed(1.15) # 0.5 - 2.0
engine.set_pitch(0) # -20 - +25 Hz
engine.set_volume(1.0) # 0.0 - 1.5
engine.set_offline_mode(True) # pyttsx3 fallback
engine.reload_config() # re-read voice_config.yaml
CLI
sonify1026 "Hello! How are you?" --emotion warm --output hello.wav
sonify1026 "यह एक परीक्षण है।" -e calm -o test.wav
sonify1026 "Play this." --play
Configuration
All voice behaviour lives in snfy/voice_config.yaml. Use your own file with:
engine = SonifyEngine(config_path="my_voice.yaml")
| Key | Effect |
|---|---|
character.base_pitch |
overall register (Hz offset) |
pitch_guard |
auto-corrects register if a phrase drifts |
persona.warm_hz / warm_gain |
chest resonance |
persona.presence_gain |
high-frequency clarity |
voice_settings.<voice>.eq |
per-voice tone shaping |
emotions.<name> |
per-emotion rate / volume / pause / compression |
dynamic_prosody.valence_words |
what counts as positive / tender / negative |
breath |
breath intakes before phrases |
humanize.max_utterance_chars |
where takes are split |
Testing
pytest tests -q # 56 objective quality/regression checks
python tests/voice_audit.py # full voice QA report across a corpus
Clarity, loudness and modulation are measured objectively from the rendered waveform and judged relative to the same text rendered straight through edge-tts, so regressions in clarity or naturalness are caught automatically.
License
MIT — see LICENSE.
Audio is generated by Microsoft Edge TTS; you are responsible for complying with its terms of use.
Metadata
Release files for sonify1026 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| sonify1026-0.1.0.tar.gz | 53.7 kB | Without provenance | Details for sonify1026-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sonify1026-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sonify1026-0.1.0-py3-none-any.whl |
Total release size: 90.0 kB
Release files / sonify1026-0.1.0.tar.gz
| Download URL | sonify1026-0.1.0.tar.gz |
|---|---|
| Size | 53.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43fa1f14500e1ecf2fc970c649a3817b934a62980de3c12476acf5ab886b7a49
|
|
BLAKE2b-256 checksum How to use checksums |
b8afa7bf94fc309ada876a48b62c7472c916226c50a9c00745aa31e84f4fb03c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Release files / sonify1026-0.1.0-py3-none-any.whl
| Download URL | sonify1026-0.1.0-py3-none-any.whl |
|---|---|
| Size | 36.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b61bd393d1cbe995075f5bbcd89571a29e82ce189b6c5c90d3e9b58dce566543
|
|
BLAKE2b-256 checksum How to use checksums |
5e9cc46be605f2668866af747409da91a0ae64e943f1386d49014beceddb84f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Security for sonify1026 0.1.0
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.