Model card rewritten around how it was made; browser file and measurements added
Browse files- README.md +119 -39
- THIRD_PARTY_NOTICES.md +1 -0
- onnx/alpa-v0.1-preview.json +72 -0
- onnx/alpa-v0.1-preview.onnx +3 -0
README.md
CHANGED
|
@@ -12,15 +12,22 @@ tags:
|
|
| 12 |
- text-to-speech
|
| 13 |
- tts
|
| 14 |
- tiny
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
-
# Alpa (अल्प) —
|
| 18 |
|
| 19 |
-
**
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
> **
|
| 24 |
|
| 25 |
## Listen
|
| 26 |
|
|
@@ -34,17 +41,103 @@ Alpa turns Sanskrit text into speech with a model of **4.5 million parameters**
|
|
| 34 |
|
| 35 |
Each sample was generated once; nothing was re-rolled or selected. Verse is read aloud as text; Alpa does not chant.
|
| 36 |
|
| 37 |
-
##
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
## Use it
|
| 50 |
|
|
@@ -69,6 +162,15 @@ sf.write("out.wav", audio.numpy(), 24000)
|
|
| 69 |
|
| 70 |
`speak` also takes `speed`, `pitch_shift` and `pitch_range`. Text in Kannada, Telugu, Bengali or Malayalam script is read as well if you `pip install indic-transliteration`. The model file holds plain tensors and settings only and is loaded with `weights_only=True`.
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
## What the text reader does
|
| 73 |
|
| 74 |
- Every written vowel is spoken, including the final `a`: राम is *rāma*.
|
|
@@ -78,43 +180,21 @@ sf.write("out.wav", audio.numpy(), 24000)
|
|
| 78 |
- Each syllable is marked laghu or guru, and the model is told which.
|
| 79 |
- The text is read as written. Sandhi is neither applied nor undone.
|
| 80 |
|
| 81 |
-
## How it was made
|
| 82 |
-
|
| 83 |
-
1. **Design and starting weights** come from [tiny-voca](https://huggingface.co/n4ze3m/tiny-voca), an English model of the same size by Muhammed Nazeem.
|
| 84 |
-
2. **Two small tables were rewritten by hand.** Each Sanskrit sound starts from its nearest English sound. ट ड ण ष start as 70% of their dental partner and 30% of English "r". Laghu and guru take the place of English stress.
|
| 85 |
-
3. **It was then trained for 3,000 steps** on 3.5 hours (1,396 clips) of the male voice of AI4Bharat's Rasa Sanskrit recordings, neutral styles only. This took about 100 minutes on a four-core CPU; no GPU was used.
|
| 86 |
-
|
| 87 |
-
Only the spectral losses of tiny-voca's recipe were used. Its adversarial stage, which adds much of the naturalness, has not been run on this model.
|
| 88 |
-
|
| 89 |
-
## How well does it pronounce?
|
| 90 |
-
|
| 91 |
-
A Sanskrit speech recogniser, [Su-śrotā](https://huggingface.co/prathoshap/sushrota-sanskrit-asr), listened to 148 sentences that were held out of training, spoken once by the model from text alone and once by the original voice artist.
|
| 92 |
-
|
| 93 |
-
| | Alpa, `male` | The real recordings |
|
| 94 |
-
|---|---:|---:|
|
| 95 |
-
| Phonemes it transcribed wrongly | 3.1% | 3.3% |
|
| 96 |
-
| ट heard as ट | 93% | 97% |
|
| 97 |
-
| ड heard as ड | 89% | 94% |
|
| 98 |
-
| ण heard as ण | 98% | 99% |
|
| 99 |
-
| त, द, न heard correctly | 98–100% | 98–100% |
|
| 100 |
-
|
| 101 |
-
Two cautions about these figures. The recogniser knows Sanskrit words and partly guesses from context, so they flatter both columns; counting only consonants between two vowels, it heard 18 of 21 ट and 17 of 21 ड from the model, against 21 and 19 from the recordings. And a recogniser is not an ear: one human listener has checked a handful of lines.
|
| 102 |
-
|
| 103 |
## Limits
|
| 104 |
|
| 105 |
- **One trained voice.** With `female`, ट and ड are noticeably weaker.
|
| 106 |
-
- **Little data and a short
|
| 107 |
- **ण and न** are not yet fully distinct to a human listener.
|
| 108 |
- **Word-final visarga is sometimes weak.** The recogniser missed it in three of the five samples above.
|
| 109 |
- **It speaks; it does not chant.** Vedic accent marks are ignored.
|
| 110 |
-
- **Untested:** single words on their own, very long compounds, long passages. One call takes up to 512 symbols; split longer text at sentence marks.
|
| 111 |
- **Digits and Latin letters are not spoken.**
|
| 112 |
|
| 113 |
## Credits and licence
|
| 114 |
|
| 115 |
Alpa is released under the Apache License 2.0. It stands on other people's work:
|
| 116 |
|
| 117 |
-
- **tiny-voca** by Muhammed Nazeem (Apache-2.0): the model design, the training recipe and the starting weights. Alpa's weights are derived from tiny-voca's. See `THIRD_PARTY_NOTICES.md`.
|
| 118 |
- **Rasa** by AI4Bharat (CC-BY-4.0): the recordings it learned from.
|
| 119 |
- **Vāgdhenu** and **Su-śrotā** by Prathosh A P, Indian Institute of Science: the pronunciation and scansion rules follow Vāgdhenu's, and Su-śrotā was used to measure the result. Neither is included here.
|
| 120 |
- **wav2vec2 phoneme recogniser** (`facebook/wav2vec2-lv-60-espeak-cv-ft`): used to time the sounds in the training recordings.
|
|
|
|
| 12 |
- text-to-speech
|
| 13 |
- tts
|
| 14 |
- tiny
|
| 15 |
+
- onnx
|
| 16 |
+
- browser
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# Alpa (अल्प) — Sanskrit speech in 18 MB
|
| 20 |
|
| 21 |
+
**An English voice model, converted to Sanskrit: two tables edited by hand, then 100 minutes on a CPU. No GPU.**
|
| 22 |
|
| 23 |
+
| | |
|
| 24 |
+
|---|---|
|
| 25 |
+
| **4.5 million** parameters, **18 MB** | About 200 times smaller than the large open model that speaks Sanskrit |
|
| 26 |
+
| **0** GPU-hours | Trained on a four-core CPU in about 100 minutes |
|
| 27 |
+
| **3.1%** phoneme errors | A Sanskrit recogniser misreads 3.1% of Alpa's phonemes, and 3.3% of the human recordings it learned from |
|
| 28 |
+
| **12×** real time in a browser tab | On one thread, with nothing sent to a server |
|
| 29 |
|
| 30 |
+
> **Early preview, v0.1.** One trained voice, 3.5 hours of speech, checked by one listener and one recogniser. See [Limits](#limits).
|
| 31 |
|
| 32 |
## Listen
|
| 33 |
|
|
|
|
| 41 |
|
| 42 |
Each sample was generated once; nothing was re-rolled or selected. Verse is read aloud as text; Alpa does not chant.
|
| 43 |
|
| 44 |
+
## From English to Sanskrit, without a GPU
|
| 45 |
|
| 46 |
+
[tiny-voca](https://huggingface.co/n4ze3m/tiny-voca) is a 4.5-million-parameter model that speaks English. Its author trained it from scratch in 7.7 hours on an RTX 4090. Alpa is that same network, converted to Sanskrit in two moves.
|
| 47 |
+
|
| 48 |
+
**1. Rewrite two small tables by hand.** Of the model's 4.5 million numbers, 9,600 (0.2%) say which sound is which and how heavy a syllable is. We replaced those, by lookup, with no training:
|
| 49 |
+
|
| 50 |
+
- each Sanskrit sound starts from the nearest English sound (आ from the vowel of "father", क from "k");
|
| 51 |
+
- ट ड ण ष, which English lacks, start as 70% of their nearest English sound plus 30% of English "r", because a retroflex and an English "r" are both made with the tongue curled back;
|
| 52 |
+
- laghu and guru take the place of unstressed and stressed.
|
| 53 |
+
|
| 54 |
+
The other 99.8% of the network was copied untouched. At that point, with no training at all, it already read Sanskrit with an English accent.
|
| 55 |
+
|
| 56 |
+
**2. Give it 100 minutes on a four-core CPU,** with 3.5 hours of Sanskrit speech to listen to. Preparing those recordings took about another hour on the same CPU.
|
| 57 |
+
|
| 58 |
+
| Stage | Training | Phonemes misread by a Sanskrit recogniser |
|
| 59 |
+
|---|---|---:|
|
| 60 |
+
| English model with the two tables rewritten | none | 26.6% |
|
| 61 |
+
| The same, after 100 minutes on a CPU | 3,000 steps | **3.1%** |
|
| 62 |
+
| The human recordings it learned from | | 3.3% |
|
| 63 |
+
|
| 64 |
+
Starting from the English weights is what makes this cheap. In an early side-by-side on the same 20 minutes of audio and the same 400 steps, a model starting from random weights misread 46.8% and the edited English model 18.3% (measured then with a different, English-leaning recogniser).
|
| 65 |
+
|
| 66 |
+
### The edit that training could not replace
|
| 67 |
+
|
| 68 |
+
English has no ट, ड or ण, and training alone did not find them. We ran the same 3,000 steps twice, once with those four sounds starting as plain copies of their English neighbours and once with the "30% r" start. That is a difference of 768 numbers.
|
| 69 |
+
|
| 70 |
+
| ट ड ण between two vowels, heard correctly | ट | ड | ण |
|
| 71 |
+
|---|---:|---:|---:|
|
| 72 |
+
| Plain start, 3,000 steps | 24% | 52% | 83% |
|
| 73 |
+
| **Hand-edited start, 3,000 steps (this model)** | **86%** | **81%** | **97%** |
|
| 74 |
+
| Human recordings | 100% | 90% | 100% |
|
| 75 |
+
|
| 76 |
+
What the recogniser wrote for नटः पटं धरति … कोटिः जनाः नाटकं पश्यन्ति:
|
| 77 |
+
|
| 78 |
+
- plain start: नतः पतं धरति … कोतिः जनाः नातकं पश्यन्ति
|
| 79 |
+
- hand-edited start: नटः पटं धरति … कोटिः जनाः नाटकं पश्यन्ति
|
| 80 |
+
|
| 81 |
+
## Small
|
| 82 |
+
|
| 83 |
+
| Model | What it does | Parameters | Download | Size against Alpa |
|
| 84 |
+
|---|---|---:|---:|---:|
|
| 85 |
+
| **Alpa v0.1** | Sanskrit speech | 4.5 M | **18 MB** | 1× |
|
| 86 |
+
| Vāgdhenu, browser port | Sanskrit chant | quantised | 296 MB | 16× |
|
| 87 |
+
| Vāgdhenu | Sanskrit chant | 337 M + 112 M vocoder | 1.8 GB | 99× |
|
| 88 |
+
| Indic Parler-TTS | Speech in many Indian languages, Sanskrit among them | 938 M | 3.75 GB | 206× |
|
| 89 |
+
|
| 90 |
+
Sizes are the files on each model's Hugging Face page on 16 November 2026. The larger models are larger for good reasons: Vāgdhenu chants in metre, and Indic Parler-TTS covers many languages and voices. Alpa does one thing, in a size that fits in a web page.
|
| 91 |
+
|
| 92 |
+
## Runs in a browser tab
|
| 93 |
+
|
| 94 |
+
The whole path, from typed Devanagari to audio, runs inside the page: the text reader under Pyodide, the model under ONNX Runtime Web on **one thread**. Nothing is sent to a server.
|
| 95 |
+
|
| 96 |
+
| Measured in Chromium, one thread | Speed | A 7.8-second verse takes |
|
| 97 |
+
|---|---:|---:|
|
| 98 |
+
| As is | 12.4× real time | 0.7 s |
|
| 99 |
+
| CPU slowed 4× | 2.9× real time | 2.7 s |
|
| 100 |
+
| CPU slowed 6× | 1.9× real time | 4.3 s |
|
| 101 |
+
|
| 102 |
+
The model file for the browser is 21 MB; with both runtimes a page needs 46 MB in total.
|
| 103 |
+
|
| 104 |
+
The only other in-browser Sanskrit voice we know of is the port of Vāgdhenu, a chant system. By its own published benchmark it downloads 296 MB and, on a Pixel 10 Pro XL with six threads, needs about 15.5 seconds to chant a 7.5-second verse, with the first quarter-verse arriving after about 3.8 seconds.
|
| 105 |
+
|
| 106 |
+
These two are not the same test. Theirs is a real flagship phone; ours is a desktop browser on a 2.1 GHz cloud CPU, slowed with Chrome's own CPU throttle to imitate slower hardware. **Alpa has not yet been timed on a real phone.**
|
| 107 |
+
|
| 108 |
+
The file is `onnx/alpa-v0.1-preview.onnx`; `onnx/alpa-v0.1-preview.json` lists its inputs and the phoneme table.
|
| 109 |
+
|
| 110 |
+
```html
|
| 111 |
+
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web@1.20.1/dist/ort.wasm.min.js"></script>
|
| 112 |
+
<script type="module">
|
| 113 |
+
// ids and weight come from alpa/text.py, which runs unchanged under Pyodide
|
| 114 |
+
ort.env.wasm.wasmPaths = "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.20.1/dist/";
|
| 115 |
+
const int64 = (v) => new ort.Tensor("int64", BigInt64Array.from(v.map(BigInt)), [1, v.length]);
|
| 116 |
+
const one = (x) => new ort.Tensor("float32", Float32Array.from([x]), [1]);
|
| 117 |
+
ort.env.wasm.numThreads = 1;
|
| 118 |
+
const session = await ort.InferenceSession.create("alpa-v0.1-preview.onnx", { executionProviders: ["wasm"] });
|
| 119 |
+
const out = await session.run({ tokens: int64(ids), weight: int64(weight),
|
| 120 |
+
voice: new ort.Tensor("int64", BigInt64Array.from([1n]), [1]), // 1 = male
|
| 121 |
+
speed: one(1), pitch_shift: one(0), pitch_range: one(1) });
|
| 122 |
+
// out.audio.data is a Float32Array at 24 kHz
|
| 123 |
+
</script>
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
## Scores
|
| 127 |
+
|
| 128 |
+
The judge is [Su-śrotā](https://huggingface.co/prathoshap/sushrota-sanskrit-asr), a Sanskrit speech recogniser. It listened to 148 sentences held out of training, spoken once by Alpa from text alone and once by the original voice artist.
|
| 129 |
+
|
| 130 |
+
| | Alpa, `male` | Human recordings |
|
| 131 |
+
|---|---:|---:|
|
| 132 |
+
| Phonemes misread | **3.1%** | 3.3% |
|
| 133 |
+
| ट heard as ट | 93% | 97% |
|
| 134 |
+
| ड heard as ड | 89% | 94% |
|
| 135 |
+
| ण heard as ण | 98% | 99% |
|
| 136 |
+
| त, द, न heard correctly | 98–100% | 98–100% |
|
| 137 |
+
|
| 138 |
+
Read these with two cautions. The recogniser knows Sanskrit words and partly guesses from context, which flatters both columns; the stricter between-vowels figures are in the table further up. And a recogniser is not an ear: one human listener has checked a handful of lines.
|
| 139 |
+
|
| 140 |
+
**Against other systems.** There is no shared benchmark for Sanskrit speech synthesis yet, and the other systems have not been run through this judge, so we make no quality claim against them. Vāgdhenu's authors report a mean opinion score of about 4.6 from an expert listener, for chant. Alpa has no listener-panel score. On desktop speed the published figures are: Alpa about 100 times faster than real time on four CPU threads; Vāgdhenu about 3.5 times faster than real time on an M5 Max.
|
| 141 |
|
| 142 |
## Use it
|
| 143 |
|
|
|
|
| 162 |
|
| 163 |
`speak` also takes `speed`, `pitch_shift` and `pitch_range`. Text in Kannada, Telugu, Bengali or Malayalam script is read as well if you `pip install indic-transliteration`. The model file holds plain tensors and settings only and is loaded with `weights_only=True`.
|
| 164 |
|
| 165 |
+
| | |
|
| 166 |
+
|---|---|
|
| 167 |
+
| Parameters | 4,531,723 |
|
| 168 |
+
| Files | `alpa-v0.1-preview.pt` (18 MB), `onnx/alpa-v0.1-preview.onnx` (21 MB) |
|
| 169 |
+
| Audio | 24 kHz, mono |
|
| 170 |
+
| Input | Sanskrit in Devanagari |
|
| 171 |
+
| Voices | `male` is trained. `female` is present but was never trained on Sanskrit |
|
| 172 |
+
| Licence | Apache-2.0 |
|
| 173 |
+
|
| 174 |
## What the text reader does
|
| 175 |
|
| 176 |
- Every written vowel is spoken, including the final `a`: राम is *rāma*.
|
|
|
|
| 180 |
- Each syllable is marked laghu or guru, and the model is told which.
|
| 181 |
- The text is read as written. Sandhi is neither applied nor undone.
|
| 182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
## Limits
|
| 184 |
|
| 185 |
- **One trained voice.** With `female`, ट and ड are noticeably weaker.
|
| 186 |
+
- **Little data and a short run.** It learned from 3.5 hours, and the adversarial stage of tiny-voca's recipe, which adds much of the naturalness, has not been run. The voice can sound flatter or buzzier than larger systems.
|
| 187 |
- **ण and न** are not yet fully distinct to a human listener.
|
| 188 |
- **Word-final visarga is sometimes weak.** The recogniser missed it in three of the five samples above.
|
| 189 |
- **It speaks; it does not chant.** Vedic accent marks are ignored.
|
| 190 |
+
- **Untested:** single words on their own, very long compounds, long passages, real phones. One call takes up to 512 symbols; split longer text at sentence marks.
|
| 191 |
- **Digits and Latin letters are not spoken.**
|
| 192 |
|
| 193 |
## Credits and licence
|
| 194 |
|
| 195 |
Alpa is released under the Apache License 2.0. It stands on other people's work:
|
| 196 |
|
| 197 |
+
- **tiny-voca** by Muhammed Nazeem (Apache-2.0): the model design, the training recipe, the browser export and the starting weights. Alpa's weights are derived from tiny-voca's. See `THIRD_PARTY_NOTICES.md`.
|
| 198 |
- **Rasa** by AI4Bharat (CC-BY-4.0): the recordings it learned from.
|
| 199 |
- **Vāgdhenu** and **Su-śrotā** by Prathosh A P, Indian Institute of Science: the pronunciation and scansion rules follow Vāgdhenu's, and Su-śrotā was used to measure the result. Neither is included here.
|
| 200 |
- **wav2vec2 phoneme recogniser** (`facebook/wav2vec2-lv-60-espeak-cv-ft`): used to time the sounds in the training recordings.
|
THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -8,6 +8,7 @@ licensed under the Apache License, Version 2.0. A copy of that licence is in `LI
|
|
| 8 |
|
| 9 |
- **Weights.** `alpa-v0.1-preview.pt` was trained starting from tiny-voca's published weights. Its phoneme
|
| 10 |
table and its stress table were rewritten for Sanskrit before training; every other layer started as a copy.
|
|
|
|
| 11 |
- **Code.** `alpa/model.py`, `alpa/config.py` and `alpa/infer.py` are adapted from tiny-voca's files of the
|
| 12 |
same names. Each states its changes at its top. `alpa/text.py` is original to Alpa.
|
| 13 |
|
|
|
|
| 8 |
|
| 9 |
- **Weights.** `alpa-v0.1-preview.pt` was trained starting from tiny-voca's published weights. Its phoneme
|
| 10 |
table and its stress table were rewritten for Sanskrit before training; every other layer started as a copy.
|
| 11 |
+
- **Browser file.** `onnx/alpa-v0.1-preview.onnx` was exported with tiny-voca's exporter (`src/tiny_voca/export.py`), unchanged.
|
| 12 |
- **Code.** `alpa/model.py`, `alpa/config.py` and `alpa/infer.py` are adapted from tiny-voca's files of the
|
| 13 |
same names. Each states its changes at its top. `alpa/text.py` is original to Alpa.
|
| 14 |
|
onnx/alpa-v0.1-preview.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "alpa-v0.1-preview",
|
| 3 |
+
"sample_rate": 24000,
|
| 4 |
+
"hop": 256,
|
| 5 |
+
"voices": [
|
| 6 |
+
"female",
|
| 7 |
+
"male"
|
| 8 |
+
],
|
| 9 |
+
"symbols": [
|
| 10 |
+
"<pad>",
|
| 11 |
+
"<bos>",
|
| 12 |
+
"<eos>",
|
| 13 |
+
"<sp>",
|
| 14 |
+
"<unk>",
|
| 15 |
+
",",
|
| 16 |
+
"?",
|
| 17 |
+
"!",
|
| 18 |
+
"|",
|
| 19 |
+
"||",
|
| 20 |
+
"<yati>",
|
| 21 |
+
"a",
|
| 22 |
+
"A",
|
| 23 |
+
"i",
|
| 24 |
+
"I",
|
| 25 |
+
"u",
|
| 26 |
+
"U",
|
| 27 |
+
"f",
|
| 28 |
+
"e",
|
| 29 |
+
"E",
|
| 30 |
+
"o",
|
| 31 |
+
"O",
|
| 32 |
+
"k",
|
| 33 |
+
"g",
|
| 34 |
+
"N",
|
| 35 |
+
"c",
|
| 36 |
+
"j",
|
| 37 |
+
"Y",
|
| 38 |
+
"w",
|
| 39 |
+
"q",
|
| 40 |
+
"R",
|
| 41 |
+
"t",
|
| 42 |
+
"d",
|
| 43 |
+
"n",
|
| 44 |
+
"p",
|
| 45 |
+
"b",
|
| 46 |
+
"m",
|
| 47 |
+
"y",
|
| 48 |
+
"r",
|
| 49 |
+
"l",
|
| 50 |
+
"v",
|
| 51 |
+
"S",
|
| 52 |
+
"z",
|
| 53 |
+
"s",
|
| 54 |
+
"h",
|
| 55 |
+
"M",
|
| 56 |
+
"H"
|
| 57 |
+
],
|
| 58 |
+
"frontend_fingerprint": "605680d636eba1c6b48119392b97d43de2b71f8abfc52ead230d0f2074ef69f2",
|
| 59 |
+
"max_tokens": 512,
|
| 60 |
+
"inputs": {
|
| 61 |
+
"tokens": "int64 [1, N] phoneme ids from alpa/text.py, with the edge tokens",
|
| 62 |
+
"weight": "int64 [1, N] syllable weight: 0 none, 1 laghu, 2 guru",
|
| 63 |
+
"voice": "int64 [1] index into voices",
|
| 64 |
+
"speed": "float32 [1], 1.0 = as predicted",
|
| 65 |
+
"pitch_shift": "float32 [1], added to log F0",
|
| 66 |
+
"pitch_range": "float32 [1], 1.0 = as predicted"
|
| 67 |
+
},
|
| 68 |
+
"outputs": {
|
| 69 |
+
"audio": "float32 [1, samples]",
|
| 70 |
+
"durations": "int64 [1, N] frames per token"
|
| 71 |
+
}
|
| 72 |
+
}
|
onnx/alpa-v0.1-preview.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c1e47f0bf7b2f1eafde75def3d2ad747c7171aa9e42585f21ef9333018ce508
|
| 3 |
+
size 21364121
|