Sonify 1026
An expressive, adaptive Indian female TTS voice engine — warm, mid-register, urban Indian English that code-switches seamlessly into native-standard Hindi.
What it actually is: Sonify is a performance layer over Microsoft Edge TTS. The neural voice and the raw audio are produced by Edge TTS (free, no API key); Sonify does not train or ship a speech model of its own. It directs and post-processes that voice — emotion, prosody, pacing and imperfections — so the free voices act. See Requirements and limits.
Made by Naitik · github.com/naitik0409
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",
)
The canonical package is
sonify1026;snfyis a thin alias (pip install snfyinstalls the same engine) and the import name issnfy— the same pattern aspip install beautifulsoup4→import bs4.
Contents
- Hear it
- Why Sonify
- How it compares
- Use cases
- Integrations
- Installation
- Importing
- Quickstart
- Emotions
- Languages and code-switching
- Runtime controls
- Batch and streaming
- Command line
- Fine-tuning the voice
- Testing
- Requirements and limits
- Troubleshooting
- Documentation
- Author
Hear it
No install needed — type your own text in the live demo:
▶️ Try Sonify 1026 live
A few sample renders from the engine (click to play):
| Clip | Emotion | Text |
|---|---|---|
| 01 · neutral | neutral |
This is a neutral sample from the Sonify voice engine. |
| 02 · happy | happy |
That is wonderful news — I am so happy for you! |
| 03 · warm | warm |
Take your time. There is no rush at all. |
| 04 · whisper | whisper |
Come closer, I will tell you a secret. |
| 05 · Hinglish | neutral |
Yaar, kal ki meeting bahut important hai. |
| 06 · Hindi | warm |
ठीक है, जो करो पूरे मन से करो। |
Prefer to run it yourself? pip install streamlit then streamlit run streamlit_app.py,
or use the standalone Gradio app in hf-space/.
Why Sonify
Most TTS reads. Sonify performs:
- Adapts to meaning, not just punctuation. Intensity words, sentence length and emotional valence are analysed per sentence and drive pitch, rate, volume, brightness, warmth, breathing and pause length.
- Emotional arc. A script that builds in feeling sounds like it builds, instead of resetting to neutral on every sentence.
- Natural imperfections. Breath intakes, mouth clicks, micro-pauses and occasional vocal fry — the things that make speech sound human.
- Subglottic effort. Content words are projected, hedging words (maybe, perhaps) are delivered more softly.
- Unique every call. No fixed seed, so no two renders are identical.
- Clarity first. Phase-preserving EQ, no output compression, and no time-stretching in the signal path — so it stays intelligible.
- Register safety. A pitch guard verifies each render sits in the intended register and re-renders if a phrase drifts too low or high.
- Inline emotion tags. Write
[cheerful],[softly],[warmly]… in your script to steer delivery mid-text; tags are never spoken. - Controlled pacing. Takes split only at sentence ends, per-voice rates keep both languages in the same pace band, and over-long pauses are gently shortened to natural micro-pauses.
- One voice, every language. A single Indian female speaker reads English,
Hindi and Hinglish — the identity and accent never change at a code-switch.
(See
voice_modein the configuration guide.)
How it compares
| Sonify 1026 | raw edge-tts |
gTTS |
pyttsx3 |
Cloud TTS¹ | |
|---|---|---|---|---|---|
| Emotion control | 17 adaptive presets | SSML only | — | — | paid SSML |
| Adaptive prosody | yes | no | no | no | partial |
| Hinglish in one voice | yes | manual switch | no | no | partial |
| API key / cost | none · free | none · free | free² | free | paid |
| Works offline | fallback³ | no | no | yes | no |
| Indian female voice | tuned | available | generic | OS-dependent | available |
| Setup | pip install |
low-level | pip install |
needs a driver | SDK + key |
¹ Amazon Polly / Azure / Google. ² gTTS uses Google's endpoint (no key, but
network + ToS apply). ³ set_offline_mode() swaps to the pyttsx3 backend — a
different, OS-provided voice (not the Sonify/Edge voice), at much lower
quality; a safety fallback, not the same sound. Sonify is a performance layer
on top of edge-tts: it does not train its own model, it makes the free
voices act.
Use cases
- AI agents & voice assistants — give an LLM a warm, expressive Indian voice that stays in character.
- Audiobooks & narration — emotional arcs across long scripts.
- IVR, telephony & announcements — natural Hinglish prompts.
- Video voiceover & short-form — quick, human-sounding reads.
- Accessibility & screen reading — clearer, warmer delivery.
- E-learning & edtech — one speaker for English and Hindi lessons.
- Notifications & alerts — warm or serious, chosen per message.
Integrations
Give your agents and apps a voice:
- MCP server — any MCP client (Claude Desktop, Cursor, Windsurf) gets
synthesizeandemotionstools. Install withpip install "sonify1026[mcp]"then runsnfy-mcp. - LangChain and LlamaIndex — drop-in tool wrappers.
- Generic function calling — an OpenAI-style schema is included.
from snfy.mcp_server import synthesize_to_file
info = synthesize_to_file("Yaar, kal ki meeting bahut important hai.", emotion="warm")
print(info["path"]) # -> the rendered WAV file
Full setup — Claude Desktop config, Cursor, examples and the tool reference: docs/INTEGRATIONS.md.
Installation
pip install sonify1026
Either distribution name works. sonify1026 is the canonical package;
snfy is a thin alias that installs the same engine:
pip install snfy # identical result to: pip install sonify1026
Python 3.9+. No API key, no account. Dependencies (edge-tts, numpy,
scipy, soundfile, PyYAML) install automatically.
From source:
pip install git+https://github.com/naitik0409/sonify1026.git
Importing
Three equivalent forms — all verified working:
import snfy # module namespace (recommended)
from snfy import SonifyEngine, Emotion # direct names
from snfy.engine import SonifyEngine # from the module directly
engine = snfy.create_engine() # factory
engine = snfy.SonifyEngine() # class
engine = snfy.BIOS02VoiceEngine() # legacy alias, still supported
Everything public is re-exported from the top-level package:
snfy.SonifyEngine, snfy.Emotion, snfy.Language, snfy.Persona,
snfy.ProsodyParams, snfy.SynthesisResult, snfy.create_engine,
snfy.render, snfy.render_arc, snfy.speak, snfy.clear_backend_cache,
snfy.REGISTERS,
import snfyprints oneINFOline on first use. That is the library starting up — silence it withlogging.getLogger("sonify1026").setLevel(logging.WARNING).
Quickstart
import snfy
engine = snfy.SonifyEngine()
# Write to a file
result = engine.synthesize("Hello! How are you?", output_path="hello.wav")
print(result.duration, "seconds")
# Or keep it in memory (float32 numpy array, 48 kHz)
import soundfile as sf
result = engine.synthesize("Hello again!")
sf.write("hello.wav", result.audio, result.sample_rate)
# Directories are created automatically
engine.synthesize("Nested path works too.", output_path="a/b/c/deep.wav")
SynthesisResult carries: audio, sample_rate, duration, emotion,
language, text.
Emotions
17 presets, each shaping rate, volume, pause and tone:
neutral |
happy |
sad |
angry |
excited |
calm |
whisper |
fearful |
warm |
gentle |
thoughtful |
playful |
tired |
proud |
surprised |
reassuring |
serious |
engine.synthesize("I am so happy for you!", emotion=snfy.Emotion.HAPPY)
engine.synthesize("I am here with you.", emotion=snfy.Emotion.REASSURING)
Emotion sets the baseline; the adaptive analysis still modulates each
sentence within it. Prefer plain strings too — emotion="happy" works.
Languages and code-switching
snfy.Language.EN_IN # Indian English (default)
snfy.Language.HI_IN # Hindi
snfy.Language.EN_US # General American
You rarely need to specify it. The engine detects Devanagari and switches voices automatically, so mixed text just works:
engine.synthesize("Yaar, kal ki meeting bahut important hai.") # Hinglish
engine.synthesize("ठीक है, the point is simple — जो करो, पूरे मन से करो।") # script mix
engine.synthesize("The order of 250 units ships on 12/05/2026.") # numbers read naturally
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() # swap to the pyttsx3 backend (different, lower-quality OS voice)
Controls are per-engine and persist until changed.
Batch and streaming
# Many lines at once
results = engine.batch_synthesize(
["Good morning.", "How are you?", "See you soon."],
[snfy.Emotion.WARM, snfy.Emotion.CALM, snfy.Emotion.HAPPY],
output_dir="outputs/greetings",
)
# Async stream: yields (audio, sample_rate, pause_ms) per segment
import asyncio
async def speak():
async for audio, sr, pause_ms in engine.stream("A longer sentence."):
play(audio, sr) # your audio device
await asyncio.sleep(pause_ms / 1000)
asyncio.run(speak())
Command line
snfy "Hello! How are you?" --emotion warm --output hello.wav
sonify1026 "यह एक परीक्षण है।" -e calm -o test.wav
snfy "Play this." --play # needs: pip install sounddevice
| Flag | Meaning |
|---|---|
text |
what to say |
-e, --emotion |
any of the 17 presets (default neutral) |
-a, --accent |
in or us |
-o, --output |
output .wav path |
-p, --play |
play after synthesising |
Fine-tuning the voice
Every voice parameter lives in one YAML file — nothing is hardcoded. Copy the shipped config, edit it, and point the engine at your copy:
engine = snfy.create_engine(config_path="my_voice.yaml")
engine.reload_config() # or reload after editing at runtime
The most useful knobs:
| Key | Effect |
|---|---|
character.base_pitch |
overall register (Hz offset) |
persona.warm_hz / warm_gain |
chest resonance / body |
persona.presence_gain |
high-frequency clarity |
persona.target_rms_db |
loudness |
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 |
dynamic_prosody.intensity_volume_scale |
how strongly effort is projected |
breath |
breath intakes before phrases |
vocal_fry |
creak at phrase endings |
humanize.max_utterance_chars |
where long text is split |
registers / default_register |
normal, formal, casual |
pitch_guard |
register safety net |
Full reference: docs/CONFIGURATION.md.
Testing
pytest tests -q # 126 objective checks (needs a network)
python tests/voice_audit.py # full voice QA report
Requirements and limits
- Requires an internet connection at synthesis time — the voice is served
by Microsoft Edge TTS.
set_offline_mode()switches to thepyttsx3backend instead: a different, OS-provided voice at much lower quality (a fallback, not the same sound). - Edge TTS free endpoints are provided as-is; for production, read and comply with Microsoft's terms of use.
- First call takes 1–3 seconds (network round trip).
- Devanagari text prints as
?in a default Windows console — that is the terminal's encoding, not the audio. SetPYTHONIOENCODING=utf-8if you need to print it.
Troubleshooting
| Symptom | Fix |
|---|---|
NoAudioReceived |
Text produced no speech — check it isn't empty or punctuation-only |
| Connection errors | No internet, or a proxy; retry, or use set_offline_mode() |
speak() / --play fails |
pip install sounddevice |
Unwanted outputs/temp_synthesis.wav |
synthesize() always writes a file; pass output_path= to control it |
Hindi prints as ? |
Console encoding; set PYTHONIOENCODING=utf-8 |
| Want the same delivery twice | Pass seed=12345 (defaults to a fresh random delivery); add backend_cache.enabled: true for byte-identical output |
More: docs/TROUBLESHOOTING.md.
Documentation
| Guide | Contents |
|---|---|
| docs/API.md | Complete API reference |
| docs/CONFIGURATION.md | Every config key, with tuning guidance |
| docs/INTEGRATIONS.md | MCP server, LangChain & LlamaIndex tools |
| docs/TROUBLESHOOTING.md | Problems and fixes |
| CHANGELOG.md | Release history |
Author
Built and maintained by Naitik — github.com/naitik0409.
License
MIT — see LICENSE.
Metadata
Release files for sonify1026 0.3.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 |
|---|---|---|---|---|
| sonify1026-0.3.1.tar.gz | 115.2 kB | With provenance | Details for sonify1026-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sonify1026-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for sonify1026-0.3.1-py3-none-any.whl |
Total release size: 165.7 kB
Release files / sonify1026-0.3.1.tar.gz
| Download URL | sonify1026-0.3.1.tar.gz |
|---|---|
| Size | 115.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52db870e580900f411935d2cae9f96014d971fa4e993d1f26232968039189413
|
|
BLAKE2b-256 checksum How to use checksums |
89c819fc7a3e298aac2c45eff94f1a62155478d63bc2faeca25537a8eebed497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / sonify1026-0.3.1-py3-none-any.whl
| Download URL | sonify1026-0.3.1-py3-none-any.whl |
|---|---|
| Size | 50.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
636be3db3bc5c7ffcdd36bf5644c757e146f7b672eb6c170082194f2af7211f0
|
|
BLAKE2b-256 checksum How to use checksums |
8d56b95eaa5a02363670a37b46871087260afc11beb2744f2b9b5649f0145828
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for sonify1026 0.3.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sonify1026-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA 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.