tiny-voca-arabic-code-switching: two-voice model, code, samples, card
Browse filesFiles changed (5)
- README.md+26-3
- code/tiny_voca/export.pyAdded+348
- model.safetensors+1-1
- onnx/model.jsonAdded+113
- onnx/model.onnxAdded+3
12 unmodified lines13141516171843 unmodified lines62636465666768697071727374759 unmodified lines858687888990919293949512 unmodified lines- tts- tiny-voca- multi-speaker---# tiny-voca-arabic-code-switching43 unmodified lines- `model.safetensors`: the same weights in safetensors format (metadata holds the config).- `tiny-voca-arabic-code-switching.pt`: the checkpoint (weights, config, front-end fingerprint, duration calibration phone +0.008 / pause +0.000).- `code/tiny_voca/`: inference code and the front end (`text.py`, `arabic_frontend.py`, `numbers.py`).- `code/dizione/` and `phonemizer/`: the English phonemizer and its data (CMUdict license in `phonemizer/LICENSE.cmudict`).- `samples/`: the same texts in both voices (`texts.txt`).## Use```bashpip install torch soundfile onnxruntime catt-tashkeel==1.0.2``````python9 unmodified lines`speak_text` reads text of any length sentence by sentence and also takes `speed` (1.0 = normal), `pitch_shift` and `seed`.## Limitations- English is spoken with an Arabic accent, as in the training voices; long all-English sentences are outside what it was trained on.- Arabic short vowels come from the CATT diacritizer, which sometimes picks the wrong reading of an unvowelled word;adding the vowel marks yourself fixes it.- Pauses run longer than in the recordings: about 15% on average, up to 28% for the male voice on validation.- ONNX export is not available for this model yet.- All voices are synthetic.12 unmodified lines1314151617181943 unmodified lines636465666768697071727374757677789 unmodified lines88899091929394959697989910010110210310410510610710810911011111211311411511611711812 unmodified lines- tts- tiny-voca- multi-speaker- onnx---# tiny-voca-arabic-code-switching43 unmodified lines- `model.safetensors`: the same weights in safetensors format (metadata holds the config).- `tiny-voca-arabic-code-switching.pt`: the checkpoint (weights, config, front-end fingerprint, duration calibration phone +0.008 / pause +0.000).- `onnx/model.onnx` + `onnx/model.json`: the same model as one ONNX graph (phoneme ids in, 24 kHz audio out) and its metadata(voices, symbols, front-end fingerprint).- `code/tiny_voca/`: inference code, the front end (`text.py`, `arabic_frontend.py`, `numbers.py`) and the ONNX exporter (`export.py`).- `code/dizione/` and `phonemizer/`: the English phonemizer and its data (CMUdict license in `phonemizer/LICENSE.cmudict`).- `samples/`: the same texts in both voices (`texts.txt`).## Use```bashpip install torch soundfile onnxruntime catt-tashkeel==1.0.2 # torch only for the .pt checkpoint``````python9 unmodified lines`speak_text` reads text of any length sentence by sentence and also takes `speed` (1.0 = normal), `pitch_shift` and `seed`.### ONNXThe speech model runs in ONNX Runtime; the text front end stays in Python (the `tiny_voca` package still imports PyTorch).It gives the same audio as the PyTorch checkpoint (same durations, sample differences at float-rounding level).```pythonimport os, sys, json, numpy as np, onnxruntime as ort, soundfile as sfos.environ["DIZIONE_DATA"] = "phonemizer"sys.path.insert(0, "code")from tiny_voca.text import phonemizemeta = json.load(open("onnx/model.json"))session = ort.InferenceSession("onnx/model.onnx", providers=["CPUExecutionProvider"])p = phonemize("أرسلت لك الـ link على الـ email.") # one sentence per callaudio, durations = session.run(None, {"tokens": np.array([p.ids], dtype=np.int64), "stress": np.array([p.stress], dtype=np.int64),"voice": np.array([meta["voices"].index("arcs_female")], dtype=np.int64),"speed": np.array([1.0], np.float32), "pitch_shift": np.array([0.0], np.float32), "pitch_range": np.array([1.0], np.float32)})sf.write("out.wav", audio[0], meta["sample_rate"])```## Limitations- English is spoken with an Arabic accent, as in the training voices; long all-English sentences are outside what it was trained on.- Arabic short vowels come from the CATT diacritizer, which sometimes picks the wrong reading of an unvowelled word;adding the vowel marks yourself fixes it.- Pauses run longer than in the recordings: about 15% on average, up to 28% for the male voice on validation.- All voices are synthetic.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348"""ONNX export of free-running synthesis.
python -m tiny_voca.export --checkpoint inference.pt --output tiny-voca.onnx
The exported graph speaks one utterance: phoneme ids and stress in, waveformout. Text is turned into ids outside the graph (``tiny_voca.text.phonemize``).
``Exportable`` computes the same audio as ``TinyVoca.synthesize`` for a singleutterance, written with operations ONNX has: the short-time Fourier transformsof the source-filter head become real convolutions with fixed kernels, thecomplex filter responses are kept as separate real and imaginary parts, andthe frame expansion uses a comparison instead of a sorted search.``--optimized`` writes a smaller, faster graph with the same audio up to floatrounding (see ``Exportable``).
Inputs tokens int64 [1, N] phoneme ids, with the edge tokens stress int64 [1, N] voice int64 [1] index into ``voices`` in the metadata speed float32 [1] 1.0 = as predicted, larger is faster pitch_shift float32 [1] added to log F0 (0.058 is about a semitone) pitch_range float32 [1] scales pitch movement around the meanOutputs audio float32 [1, samples] durations int64 [1, N] frames per token (``hop`` samples each)"""
import argparseimport jsonimport mathfrom pathlib import Path
import torchfrom torch import nnimport torch.nn.functional as F
from .infer import load_model, match_frontendfrom .model import PULSE_DEPTH, TRACK_SMOOTHING, VOICING_FLOOR, pulse_bumpfrom .text import SYMBOLS, frontend_fingerprint, frontend_identity
INPUTS = ("tokens", "stress", "voice", "speed", "pitch_shift", "pitch_range")OUTPUTS = ("audio", "durations")
def _cepstrum_matrices(positions, fft): """Real and imaginary parts of rfft for unit coefficients at ``positions``.""" buffer = torch.zeros(len(positions), fft, dtype=torch.float64) buffer[torch.arange(len(positions)), torch.tensor(positions)] = 1 spectrum = torch.fft.rfft(buffer, dim=-1) return spectrum.real.float(), spectrum.imag.float()
def _analysis_kernels(window): """Convolution kernels [bins, 1, fft] giving the real and imaginary STFT.""" fft = len(window) spectrum = torch.fft.rfft(torch.eye(fft, dtype=torch.float64) * window.double(), dim=-1) return spectrum.real.T[:, None].float().contiguous(), spectrum.imag.T[:, None].float().contiguous()
def _synthesis_kernel(window): """Transposed-convolution kernel [2 * bins, 1, fft]: windowed inverse rfft of the real parts (first half of the channels) and imaginary parts.""" fft = len(window) bins = fft // 2 + 1 unit = torch.eye(bins, dtype=torch.complex128) real = torch.fft.irfft(unit, n=fft, dim=-1) imaginary = torch.fft.irfft(unit * 1j, n=fft, dim=-1) return (torch.cat((real, imaginary)) * window.double())[:, None].float().contiguous()
class _FrameOwners(torch.autograd.Function): """The token that owns each frame: count the token ends at every frame, then sum them along time. O(tokens + frames) instead of a comparison of every frame with every end. Equal ends (zero durations) add up."""
@staticmethod def forward(ctx, ends, frame): zeros = torch.cat((torch.zeros_like(frame), ends.new_zeros((1, 1))), dim=1) counts = zeros.scatter_add(1, ends, torch.ones_like(ends)) return counts.cumsum(1)[:, :-1]
@staticmethod def symbolic(g, ends, frame): constant = lambda value: g.op("Constant", value_t=torch.tensor(value, dtype=torch.int64)) zeros = g.op("ConstantOfShape", g.op("Shape", frame), value_t=torch.zeros(1, dtype=torch.int64)) zeros = g.op("Concat", zeros, constant([[0]]), axis_i=1) ones = g.op("ConstantOfShape", g.op("Shape", ends), value_t=torch.ones(1, dtype=torch.int64)) counts = g.op("ScatterElements", zeros, ends, ones, axis_i=1, reduction_s="add") owners = g.op("CumSum", counts, constant(1)) return g.op("Slice", owners, constant([0]), constant([-1]), constant([1]))
def _envelope_rows(window): # In the kept crop the left edge lacks the fourth window for exactly one hop. # The right crop ends before the last analysis frame contributes any samples. quarters = window.double().square().float().reshape(4, -1) w0, w1, w2, w3 = quarters.unbind() prefix = (w2 + w1) + w0 return prefix, ((w3 + w2) + w1) + w0
class Exportable(nn.Module): """Single-utterance synthesis in ONNX-friendly operations.
``optimized`` gives the same audio, up to float rounding, with a smaller graph that runs faster: no all-true masks (one utterance has no padding), real and imaginary parts in one convolution and one matrix product, no analysis frame past the end, a precomputed overlap-add envelope, and frame owners by a running count (opset 16 or later)."""
def __init__(self, model, external_noise=False, optimized=False): super().__init__() self.model = model self.external_noise = external_noise self.optimized = optimized c = model.config v = model.vocoder if optimized and (c.synth_fft != 4 * c.synth_hop or c.noise_fft != 4 * c.noise_hop): raise ValueError("the optimized graph needs synthesis windows of four hops") causal = list(range(c.cep_causal)) anti = [c.synth_fft - 1 - i for i in range(c.cep_anti)] for name, (real, imaginary) in (("harmonic", _cepstrum_matrices(causal + anti, c.synth_fft)), ("noise", _cepstrum_matrices(list(range(c.noise_cep)), c.noise_fft))): self.register_buffer(f"{name}_real", real, persistent=False) self.register_buffer(f"{name}_imaginary", imaginary, persistent=False) if optimized: self.register_buffer(f"{name}_response", torch.cat((real, imaginary), dim=1), persistent=False) for name, window in (("synth", v.synth_window), ("noise", v.noise_window)): real, imaginary = _analysis_kernels(window) self.register_buffer(f"{name}_analysis_real", real, persistent=False) self.register_buffer(f"{name}_analysis_imaginary", imaginary, persistent=False) self.register_buffer(f"{name}_synthesis", _synthesis_kernel(window), persistent=False) self.register_buffer(f"{name}_envelope", (window.double() ** 2).float()[None, None].contiguous(), persistent=False) if optimized: self.register_buffer(f"{name}_analysis", torch.cat((real, imaginary)), persistent=False) prefix, steady = _envelope_rows(window) self.register_buffer(f"{name}_prefix", prefix[None], persistent=False) self.register_buffer(f"{name}_steady", steady[None], persistent=False) self.register_buffer("ramp", torch.arange(c.hop, dtype=torch.float32) / c.hop, persistent=False) self.phase_steps = 1 << 24
def _filter(self, source, real, imaginary, name, fft, hop): """Multiply the STFT of ``source`` [1, samples] by a response given as real and imaginary parts [1, frames, bins], and resynthesize.""" samples = source.shape[1] padded = F.pad(source[:, None], (fft // 2, fft)) s_real = F.conv1d(padded, getattr(self, f"{name}_analysis_real"), stride=hop) s_imaginary = F.conv1d(padded, getattr(self, f"{name}_analysis_imaginary"), stride=hop) real, imaginary = real.transpose(1, 2), imaginary.transpose(1, 2) product = torch.cat((s_real * real - s_imaginary * imaginary, s_real * imaginary + s_imaginary * real), dim=1) wave = F.conv_transpose1d(product, getattr(self, f"{name}_synthesis"), stride=hop) envelope = F.conv_transpose1d(torch.ones_like(s_real[:, :1]), getattr(self, f"{name}_envelope"), stride=hop) return (wave / envelope)[:, 0, fft // 2:fft // 2 + samples]
def _packed_filter(self, source, real, imaginary, name, fft, hop): samples = source.shape[1] # The final analysis frame in the reference starts just after the crop. padded = F.pad(source[:, None], (fft // 2, fft - hop)) analysis = F.conv1d(padded, getattr(self, f"{name}_analysis"), stride=hop) s_real, s_imaginary = analysis.split(fft // 2 + 1, dim=1) real, imaginary = real.transpose(1, 2), imaginary.transpose(1, 2) product = torch.cat((s_real * real - s_imaginary * imaginary, s_real * imaginary + s_imaginary * real), dim=1) wave = F.conv_transpose1d(product, getattr(self, f"{name}_synthesis"), stride=hop, padding=fft // 2)[:, 0, :samples] steady = getattr(self, f"{name}_steady").expand(samples // hop - 1, -1) envelope = torch.cat((getattr(self, f"{name}_prefix"), steady)).reshape(1, -1) return wave / envelope
@staticmethod def _response(cepstrum, real, imaginary): magnitude = torch.exp((cepstrum @ real).clamp(-14, 6)) angle = cepstrum @ imaginary return magnitude * torch.cos(angle), magnitude * torch.sin(angle)
def _packed_response(self, cepstrum, name, fft): amplitude, angle = (cepstrum @ getattr(self, f"{name}_response")).split(fft // 2 + 1, dim=-1) magnitude = torch.exp(amplitude.clamp(-14, 6)) return magnitude * torch.cos(angle), magnitude * torch.sin(angle)
def _pulses(self, f0, return_phase=False): """``pulse_train`` for one utterance, without 64-bit floats (the web runtime has none). The phase is summed inside each frame in float32, where it stays below a few cycles, and across frames as 24-bit integer fractions of a cycle, which wrap exactly however long the utterance is.""" c = self.model.config knots = torch.log(f0.clamp_min(1.0)) knots = torch.cat((knots, knots[:, -1:]), dim=1) low, high = knots[:, :-1, None], knots[:, 1:, None] frequency = torch.exp(low * (1 - self.ramp) + high * self.ramp) within = torch.cumsum(frequency / c.sample_rate, dim=2) whole_frame = within[:, :, -1] steps = torch.round((whole_frame - torch.floor(whole_frame)) * self.phase_steps).long() start = torch.remainder(torch.cumsum(steps, dim=1) - steps, self.phase_steps).to(within.dtype) / self.phase_steps cycles = within + start[:, :, None] theta = (2 * math.pi * (cycles - torch.floor(cycles))).reshape(1, -1) frequency = frequency.reshape(1, -1) harmonics = (c.harmonic_limit * c.sample_rate / frequency).clamp_min(1.0) whole = torch.floor(harmonics) denominator = 2 * torch.sin(theta / 2) tiny = denominator.abs() < 1e-6 core = torch.where(tiny, whole, torch.sin((whole + 0.5) * theta) / torch.where(tiny, torch.ones_like(denominator), denominator) - 0.5) wave = core + (harmonics - whole) * torch.cos((whole + 1) * theta) wave = wave * torch.sqrt(2.0 / harmonics) return (wave, theta) if return_phase else wave
def _track(self, values, total): """``model.sample_track`` for one utterance of ``total`` frames.""" c = self.model.config index = torch.minimum(torch.div(torch.arange(c.hop * total, device=values.device) + c.hop // 2, c.hop, rounding_mode="floor"), total - 1) track = values.index_select(1, index)[:, None] width = TRACK_SMOOTHING return F.avg_pool1d(F.pad(track, (width // 2, width // 2), mode="replicate"), width, stride=1)[:, 0]
def _vocoder(self, hidden, f0, total, noise, voicing=None): c = self.model.config v = self.model.vocoder last = total - 1 tail = 2 if self.optimized else 3 # Harmonic branch. h = v.harmonic(hidden) split = c.cep_causal + c.cep_anti steps = v.harmonic_steps sub = torch.minimum(torch.arange(steps * total + tail, device=hidden.device), steps * total - 1) here = torch.div(sub, steps, rounding_mode="floor") following = torch.minimum(torch.div(sub + 1, steps, rounding_mode="floor"), last) envelope = 0.5 * (h[..., :split].index_select(1, here) + h[..., :split].index_select(1, following)) envelope = envelope * torch.cat((v.causal_lifter, v.anti_lifter)) gain = h[..., split:].flatten(1).index_select(1, sub)[..., None] envelope = torch.cat((envelope[..., :1] + gain, envelope[..., 1:]), dim=-1) if self.optimized: harmonic_real, harmonic_imaginary = self._packed_response(envelope, "harmonic", c.synth_fft) else: harmonic_real, harmonic_imaginary = self._response(envelope, self.harmonic_real, self.harmonic_imaginary) # Noise branch. n = v.noise(hidden) steps = v.noise_steps sub = torch.minimum(torch.arange(steps * total + tail, device=hidden.device), steps * total - 1) shape = n[..., :c.noise_cep].index_select(1, torch.div(sub, steps, rounding_mode="floor")) * v.noise_lifter gain = n[..., c.noise_cep:c.noise_cep + steps].flatten(1).index_select(1, sub)[..., None] shape = torch.cat((shape[..., :1] + gain, shape[..., 1:]), dim=-1) if self.optimized: noise_real, noise_imaginary = self._packed_response(shape, "noise", c.noise_fft) else: noise_real, noise_imaginary = self._response(shape, self.noise_real, self.noise_imaginary) pulses, theta = self._pulses(f0, return_phase=True) if c.voicing_gate or c.pulsed_noise: voiced = self._track(voicing, total) if c.voicing_gate: pulses = pulses * (VOICING_FLOOR + (1 - VOICING_FLOOR) * voiced) if noise is None: noise = torch.randn_like(pulses) else: noise = noise.index_select(1, torch.arange(c.hop * total, device=hidden.device)) if c.pulsed_noise: depth = self._track(PULSE_DEPTH * torch.sigmoid(n[..., -1]), total) noise = noise * (1 + voiced * depth * pulse_bump(theta)) filter_source = self._packed_filter if self.optimized else self._filter return (filter_source(pulses, harmonic_real, harmonic_imaginary, "synth", c.synth_fft, c.synth_hop) + filter_source(noise, noise_real, noise_imaginary, "noise", c.noise_fft, c.noise_hop))
def forward(self, tokens, stress, voice, speed, pitch_shift, pitch_range, noise=None): m = self.model c = m.config token_mask = None if self.optimized else torch.ones_like(tokens, dtype=torch.bool) hidden = m.encoder(m.tokens(tokens) + m.stress(stress) + m.voices(voice)[:, None], token_mask) # Durations. output = m.duration(hidden, token_mask) log_frames = output[..., 0] + m.duration_offset(tokens, output.dtype) # checkpoint duration calibration frames = torch.round((torch.exp(log_frames.clamp(0, math.log1p(400))) - 1) / speed).long().clamp_min(1) present = m.phone_tokens[tokens] | (output[..., 1] > 0) durations = torch.where(present, frames, torch.zeros_like(frames)) # Repeat token states by duration. ends = durations.cumsum(1) total = ends[0, -1] frame = torch.arange(total, device=tokens.device)[None] index = _FrameOwners.apply(ends, frame) if self.optimized else (ends[:, None, :] <= frame[:, :, None]).sum(-1) owned = durations.gather(1, index).clamp_min(1) offset = frame - (ends.gather(1, index) - durations.gather(1, index)) relative = (offset.to(hidden.dtype) + 0.5) / owned features = torch.stack((relative, 1 - relative, torch.log1p(owned.to(hidden.dtype)) / 4), dim=-1) expanded = hidden.gather(1, index[..., None].expand(-1, -1, hidden.shape[-1])) expanded = expanded + m.frame_position(features) + m.frame_voices(voice)[:, None] frame_mask = None if self.optimized else torch.ones_like(frame, dtype=torch.bool) # Pitch, voicing, energy. prosody_hidden = m.prosody_stack(expanded, frame_mask) prosody = m.prosody_head(prosody_hidden) vowel = m.vowel_tokens[tokens].gather(1, index) voicing = torch.where(vowel, prosody[..., 1].clamp_min(2.0), prosody[..., 1]) voiced = (voicing > 0).to(prosody.dtype) mean = (prosody[..., 0] * voiced).sum(1, keepdim=True) / voiced.sum(1, keepdim=True).clamp_min(1) pitch = mean + (prosody[..., 0] - mean) * pitch_range condition = torch.stack((pitch.clamp(-2.0, 1.5), voiced, prosody[..., 2].clamp(-4.5, 3.0)), dim=-1) acoustic = m.acoustic_stack(prosody_hidden + m.prosody_projection(condition), frame_mask) f0 = (c.pitch_reference_hz * torch.exp(pitch + pitch_shift)).clamp(c.f0_min, c.f0_max) gate = torch.where(vowel, torch.ones_like(voicing), torch.sigmoid(voicing)) if c.voicing_gate or c.pulsed_noise else None return self._vocoder(acoustic, f0, total, noise, gate), durations
def example_inputs(length=24): tokens = torch.randint(5, len(SYMBOLS), (1, length)) one = lambda value: torch.tensor([value], dtype=torch.float32) return tokens, torch.zeros_like(tokens), torch.tensor([0]), one(1.0), one(0.0), one(1.0)
def export(model, path, external_noise=False, opset=17, optimized=False): if optimized and opset < 16: raise ValueError("the optimized graph needs opset 16 or later (ScatterElements with a reduction)") wrapper = Exportable(model, external_noise, optimized).eval() inputs = example_inputs() names = list(INPUTS) axes = {"tokens": {1: "tokens"}, "stress": {1: "tokens"}, "audio": {1: "samples"}, "durations": {1: "tokens"}} if external_noise: inputs = (*inputs, torch.randn(1, model.config.hop * model.config.max_frames)) names.append("noise") axes["noise"] = {1: "noise_samples"} with torch.no_grad(): torch.onnx.export(wrapper, inputs, str(path), input_names=names, output_names=list(OUTPUTS), dynamic_axes=axes, opset_version=opset, do_constant_folding=True, dynamo=False) return path
def metadata(model, checkpoint): c = model.config state = torch.load(checkpoint, map_location="cpu", weights_only=True) return {"sample_rate": c.sample_rate, "hop": c.hop, "voices": list(c.speakers), "symbols": list(SYMBOLS), "max_tokens": c.max_tokens, "max_frames": c.max_frames, "step": state.get("step"), "frontend": frontend_identity().get("phonemizer", "espeak"), "frontend_fingerprint": frontend_fingerprint(), "inputs": list(INPUTS), "outputs": list(OUTPUTS)}
def main(): parser = argparse.ArgumentParser(description="Export a tiny-voca inference checkpoint to ONNX") parser.add_argument("--checkpoint", type=Path, required=True) parser.add_argument("--output", type=Path, required=True) parser.add_argument("--external-noise", action="store_true", help="Take the noise signal as an input (for exact comparisons)") parser.add_argument("--optimized", action="store_true", help="Same audio, smaller and faster graph (see Exportable)") parser.add_argument("--opset", type=int, default=17) args = parser.parse_args() match_frontend(args.checkpoint) model = load_model(args.checkpoint, "cpu") args.output.parent.mkdir(parents=True, exist_ok=True) export(model, args.output, args.external_noise, args.opset, args.optimized) args.output.with_suffix(".json").write_text(json.dumps(metadata(model, args.checkpoint), ensure_ascii=False, indent=1) + "\n", encoding="utf-8") print(f"wrote {args.output} ({args.output.stat().st_size / 1e6:.1f} MB) and {args.output.with_suffix('.json').name}")
if __name__ == "__main__": main()123version https://git-lfs.github.com/spec/v1oid sha256:4b821572590b11aceafd5acc2113499e1527cffbdb22eb0ec7cbe9abf1461834size 18177516123version https://git-lfs.github.com/spec/v1oid sha256:a208caa43741a93ad243f1f5024816184cb4e70cb0b671d545f71738ec99de17size 18177516
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ "sample_rate": 24000, "hop": 256, "voices": [ "arcs_male", "arcs_female" ], "symbols": [ "<pad>", "<bos>", "<eos>", "<sp>", "<unk>", ",", ".", "?", "!", ";", ":", "…", "b", "d", "dʒ", "dˤ", "f", "h", "j", "k", "l", "lˤ", "m", "n", "q", "r", "s", "sˤ", "t", "tˤ", "w", "x", "z", "ð", "ðˤ", "ħ", "ɣ", "ʃ", "ʔ", "ʕ", "θ", "p", "ɡ", "v", "ʒ", "ŋ", "ɹ", "tʃ", "ɾ", "a", "i", "u", "aː", "iː", "uː", "ɑ", "ɑː", "ə", "ɐ", "ɚ", "ᵻ", "ɪ", "ɛ", "æ", "ʌ", "ɔ", "ɔː", "ʊ", "ɜː", "eɪ", "aɪ", "ɔɪ", "oʊ", "aʊ", "iə", "oː", "ɑːɹ", "ɔːɹ", "oːɹ", "ɪɹ", "ɛɹ", "ʊɹ", "aɪɚ", "aɪə", "əl", "n̩" ], "max_tokens": 512, "max_frames": 3000, "step": 200000, "frontend": "tiny_voca.arabic_frontend + dizione", "frontend_fingerprint": "5d58edece737d75177efa132e7ed6b5d2c9dc6394cc1a0feceb2853d2214a444", "inputs": [ "tokens", "stress", "voice", "speed", "pitch_shift", "pitch_range" ], "outputs": [ "audio", "durations" ]}123version https://git-lfs.github.com/spec/v1oid sha256:2960677732a056f6d67dd583ec5d3debe450aee05f88f351cecb80c1e037fbaesize 21398986README.md+26-3
code/tiny_voca/export.pyAdded+348
model.safetensors+1-1
onnx/model.jsonAdded+113
onnx/model.onnxAdded+3