SwarNano v1
Project links
- Hugging Face: https://huggingface.co/dhoni420/SwarNano-v1
- GitHub: https://github.com/Dhoniprotocol/SwarNano-v1
SwarNano v1 is a Nepali text-to-speech model. This repository publishes the FP32 and INT8 model weights, minimal vocabulary/speaker metadata, and the notices needed for attribution. The source code, model implementation, and architecture are maintained separately by the project creator; they are not included or licensed by this weights-only release.
Audio samples
Sample 1
एकादेशमा हरियाली डाँडाले घेरिएको एउटा सुन्दर गाउँ थियो। त्यो गाउँको छेउमा एउटा घना जङ्गल थियो।
Sample 2
सबै जनावरहरूले राजाको कुरा ध्यान दिएर सुने। तर, चङ्खे भने एउटा पुतलीलाई लखेट्नमै व्यस्त थियो।
The WAV files are example speech outputs; the text above is the transcript for each sample.
Model details
- Task: Nepali text-to-speech.
- Language: Nepali.
- Voice choices: 18 speaker IDs are available through a compatible implementation. They are model voice options, not verified identities.
- Audio output: The included examples are mono WAV at 22,050 Hz.
- Weights:
weights/swarnano_v1_fp32.ptandweights/swarnano_v1_int8.xz. - Metadata:
weights/swarnano_v1_meta.jsoncontains the phone vocabulary and speaker-ID map.
Capabilities at a glance
When paired with a compatible Nepali speech application, SwarNano v1 turns Nepali text into spoken audio and lets the application select among the available speaker IDs. Two weight formats are provided:
- FP32: about 6.2 MiB.
- INT8 compressed: about 1.4 MiB for a smaller download and storage footprint.
These are file sizes, not speed or quality benchmarks. No comparative performance claims are made for the two formats.
The weight files require a compatible model implementation to run. This repository is weights-only and does not provide that implementation.
Running locally
This package includes run_swarnano.py, a thin command-line wrapper. It does
not include the model implementation or architecture. To run it, you need
separately authorized runtime files (serve_tts.py and
language_frontend.py) and the dependencies supplied for that runtime.
Place those files beside run_swarnano.py, or point --runtime-dir to their
directory. The wrapper and weights alone cannot synthesize speech.
From the package directory, an authorized runtime can be used like this:
python .\run_swarnano.py --text "नमस्ते, यो स्वरनानो हो।" --model .\weights\swarnano_v1_fp32.pt --speaker 0 --output .\output.wav
To use the compressed INT8 weights, set --model to
.\weights\swarnano_v1_int8.xz. Select a speaker using its index (0 to
17) or the source speaker ID from weights/swarnano_v1_meta.json (for
example, 0258). Use python .\run_swarnano.py --help to see all options.
The output is a mono WAV file at 22,050 Hz. Synthesis runs locally; the
wrapper does not send text or audio to a cloud API.
The wrapper and runtime are separate software components and are not licensed by the weights' CC BY-SA 4.0 grant. The model runtime is provided separately with the creator's permission; commercial use of the wrapper, runtime, implementation, or architecture requires separate permission. Contact the creator through GitHub.
Intended use and limitations
Use for Nepali speech synthesis, research, and evaluation, subject to the license and applicable third-party rights. Do not present generated speech as a real recording or use it to impersonate a person.
Speech quality, pronunciation, and prosody may vary. The source corpus contains female-speaker Nepali recordings; the 18 speaker embeddings are not a balanced set and should not be treated as verified identities. The dataset license alone may not grant publicity, privacy, or other personality rights.
Data and attribution
The model weights were created using OpenSLR SLR43, which OpenSLR lists under
CC BY-SA 4.0 and credits to Google LLC. No source dataset audio or transcripts
are included. Keep DATASET_ATTRIBUTION.md with
redistributed copies and adaptations.
License
The model weights and accompanying metadata are offered under
CC BY-SA 4.0, to the extent
the release publisher holds the necessary rights. This license permits
commercial use and requires attribution and ShareAlike for adaptations where
applicable. It applies only to the released weights and metadata, not to the
creator's separately maintained source code, implementation, or architecture.
See
LICENSE
and
LICENSING.md.
Repository files
weights/— FP32 and INT8 model weights plus minimal metadata.samples/— two example speech WAVs with their transcripts above.assets/— SwarNano logo used on this card.DATASET_ATTRIBUTION.md,LICENSE,LICENSING.md— license and attribution notices.SHA256SUMS.txt— checksums for both weight files.
Created by: Sandesh Bastola
Project: SwarNano
Version: v1.0