Instructions to use litert-community/VibeVoice-ASR-Streaming-1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/VibeVoice-ASR-Streaming-1.5B with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run # (or pass its name right after the repo id). litert-lm run \ --from-huggingface-repo=litert-community/VibeVoice-ASR-Streaming-1.5B \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/VibeVoice-ASR-Streaming-1.5B with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- VibeVoice
How to use litert-community/VibeVoice-ASR-Streaming-1.5B with VibeVoice:
import torch, soundfile as sf, librosa, numpy as np from vibevoice.processor.vibevoice_processor import VibeVoiceProcessor from vibevoice.modular.modeling_vibevoice_inference import VibeVoiceForConditionalGenerationInference # Load voice sample (should be 24kHz mono) voice, sr = sf.read("path/to/voice_sample.wav") if voice.ndim > 1: voice = voice.mean(axis=1) if sr != 24000: voice = librosa.resample(voice, sr, 24000) processor = VibeVoiceProcessor.from_pretrained("litert-community/VibeVoice-ASR-Streaming-1.5B") model = VibeVoiceForConditionalGenerationInference.from_pretrained( "litert-community/VibeVoice-ASR-Streaming-1.5B", torch_dtype=torch.bfloat16 ).to("cuda").eval() model.set_ddpm_inference_steps(5) inputs = processor(text=["Speaker 0: Hello!\nSpeaker 1: Hi there!"], voice_samples=[[voice]], return_tensors="pt") audio = model.generate(**inputs, cfg_scale=1.3, tokenizer=processor.tokenizer).speech_outputs[0] sf.write("output.wav", audio.cpu().numpy().squeeze(), 24000) - Notebooks
- Google Colab
- Kaggle
VibeVoice-ASR-Streaming-1.5B β LiteRT-LM
microsoft/VibeVoice-ASR-Streaming-1.5B converted to the LiteRT-LM (.litertlm) format for on-device streaming speech recognition with Google's LiteRT-LM runtime. Audio in, text out, one file: the runtime runs the audio encoder in the file on each chunk and the LLM emits that chunk's transcript while the next chunk is still being recorded.
On 2026-11-17 both files in this repo were replaced with files whose prefill/decode graph is rewritten for the GPU, with every weight unchanged. On a Galaxy S26 GPU the new int4 file decodes 51.7 tokens/s and the new int8 file 32.9 tokens/s, each after a 1,024-token prefill (LiteRT-LM v0.19.0; see the end of Performance). The new files were run only with LiteRT-LM 0.19.0 to 0.19.2; earlier runtimes were not tried with them.
VibeVoice-ASR-Streaming is Microsoft's streaming, speaker-attributed variant of VibeVoice-ASR: the Ο-VAE acoustic + semantic tokenizers (24 kHz β 7.5 latent frames/s) feed a Qwen2.5-1.5B-shaped language model that was trained to transcribe 2.93 s chunks with 0.53 s of look-ahead, prefixing each segment with a speaker label (Speaker 0: β¦). 10 languages, MIT-licensed.
This file is driven as a multi-turn conversation, one audio window per turn β that is how the model was trained and the only way it transcribes correctly (fed a whole clip in one turn it returns the last 3.5 s only). A chat app that sends one clip per message (e.g. the AI Edge Gallery) is not the right host; the loop below is ~15 lines with the Python, Kotlin or Swift Conversation API, or the CLI's --multi_turns mode.
| File | Recipe | Size |
|---|---|---|
VibeVoice-ASR-Streaming-1.5B.litertlm |
LM int4 blockwise-128 (min-max), int8 embedding Β· audio encoder int8 dynamic linears, fp32 convs, 3.47 s window | 1.99 GB |
VibeVoice-ASR-Streaming-1.5B_int8.litertlm |
LM int8 dynamic (desktop build; error rates of both files under Correctness) Β· same encoder | 2.77 GB |
Sections (int4 file): prefill/decode 802 MB, embedder 237 MB, audio encoder 951 MB, tokenizer; the int8 file swaps in a 1581 MB prefill/decode section.
How the streaming loop works
The file's template is the vendor's streaming protocol, verbatim: a bare prompt (You are a helpful assistant that transcribes audio input into text output. Please transcribe the following audios streamingly with these keys: speaker, content), then per turn <|object_ref_start|> + 26 audio embeddings + <|object_ref_end|> β the model writes the chunk's text and stops on <|text_chunk_end|>, which the runtime appends to the history before the next turn (what it puts into the cache there: Known runtime issues). Nothing is re-encoded between turns; the KV cache grows by ~40 tokens per 2.93 s of speech (2048-token budget β 2.5 minutes of continuous audio per conversation).
Per turn the app sends one window of 83 200 samples at 24 kHz (26 frames Γ 3200 = 3.467 s) and then advances by 70 400 samples (22 frames = 2.933 s), keeping the last 4 frames as the next window's look-ahead. Zero-pad the final window to 83 200 samples. Hotwords go into a system message: β¦ with these keys: speaker, content and extra info: <comma-separated words>.
Correctness
20 LibriSpeech dev-clean clips (448 words, 2β29 s, 73 windows), greedy decoding, the loop above, WER after uppercasing, stripping punctuation and the Speaker N: label:
| Configuration | int4 file | int8 file |
|---|---|---|
PyTorch fp32 reference (vendor streaming_generate, mean latents) |
7.59 % (34/448) | 7.59 % (34/448) |
| LiteRT-LM 0.16.1, Apple M4 Max, CPU | 7.81 % (35/448) | 7.14 % (32/448) |
| LiteRT-LM 0.16.1, Apple M4 Max, LM on Metal GPU, audio on CPU | 6.92 % (31/448) | 7.37 % (33/448) |
LiteRT-LM v0.16.1 CLI --multi_turns, Galaxy S26 (SM-S942Q), CPU |
7.81 % (35/448) | 7.14 % (32/448) |
| LiteRT-LM v0.16.1 CLI, Galaxy S26, LM on OpenCL GPU, audio on CPU | 7.14 % (32/448) | 6.92 % (31/448) |
LiteRT-LM v0.16.1 CLI --multi_turns, Pixel 8a (Tensor G3), CPU |
7.81 % (35/448) | not measured |
| LiteRT-LM v0.16.1 CLI, Pixel 8a, LM on Mali GPU, audio on CPU | 7.37 % (33/448) | not measured |
The runtime rows sit within Β±0.7 pp of the fp32 reference in both directions (the int8 LM gets one clip right that the fp32 reference misses); the residual ~7 % on this set is the model's own streaming trade-off β the non-streaming VibeVoice-ASR-BitNet file scores 2.68 % on the same 20 clips with a 30 s window. Microsoft's card gives no LibriSpeech number for the streaming model. LiteRT-LM 0.17.1 (Python) produced transcripts identical to 0.16.1 on the clips checked.
The table and the paragraph above were measured on earlier files. The new files were compared with the files they replaced on the same 20 clips on a Mac with litert-lm 0.19.2 (2026-11-15, greedy decoding, audio encoder on the CPU). On the CPU with 1 thread, each new file gave the same transcript as the file it replaced for all 20 clips, byte for byte (32/448 word errors for the int4 pair, 33/448 for the int8 pair). With the LM on the Mac GPU, the int4 pair gave the same transcripts for all 20 clips (32/448, 7.14 %, with both files). The int8 pair gave the same transcript for 19 of the 20 clips: 33/448 (7.37 %) with the previous file and 34/448 (7.59 %) with the new file.
Usage
Python (pip install litert-lm-api; this block was run as written on 0.16.1 and 0.17.1 with earlier files, and on 0.19.2 on a Mac with the new VibeVoice-ASR-Streaming-1.5B.litertlm, 2026-11-17):
import litert_lm
from litert_lm import Message, Contents, Content
from litert_lm.interfaces import CPU, GPU
SR, HOP, WIN, ADV = 24000, 3200, 26 * 3200, 22 * 3200 # 3.467 s window, 2.933 s advance
engine = litert_lm.Engine("VibeVoice-ASR-Streaming-1.5B.litertlm", backend=GPU(), audio_backend=CPU())
conv = engine.create_conversation(sampler_config=litert_lm.SamplerConfig(top_k=1, top_p=1.0, temperature=0.0),
max_output_tokens=256)
def response_text(resp):
# litert-lm-api 0.15-0.17.1 return a dict of content parts; later builds return a Message whose str() is its text
if type(resp) is dict:
return "".join(p.get("text", "") for p in resp.get("content", []) if isinstance(p, dict))
return str(resp)
pcm = load_mono_float_24k("clip.wav") # your decoder; any length
pos, text = 0, []
while pos < len(pcm):
window = pcm[pos:pos + WIN]
window = window + [0.0] * (WIN - len(window)) # zero-pad the last window
write_wav("window.wav", window, SR) # 16-bit PCM mono
resp = conv.send_message(Message.user(Contents.of([Content.AudioFile("window.wav")])))
text.append(response_text(resp))
print(text[-1], flush=True) # appears ~0.3β0.5 s after each window
pos += ADV
conv.close()
# CLI (litert_lm_advanced_main): one [audio:β¦] line per window on stdin, an empty line ends the conversation
printf '[audio:w00.wav]\n[audio:w01.wav]\n[audio:w02.wav]\n\n' | \
./litert_lm_advanced_main --multi_turns=true --backend=gpu --audio_backend=cpu \
--model_path=VibeVoice-ASR-Streaming-1.5B.litertlm --max_num_tokens=2048
If you download these files with the litert-lm command-line tool (PyPI litert-lm, not the litert_lm_advanced_main program above) and it stops right after the download with no error message of its own (a bus error; exit status 138 on a Mac) or with an error log that contains too large for file size, the downloaded file may be incomplete. The litert-lm CLI (0.14.0 to 0.19.2, and litert-lm-nightly 0.20.0.dev20261112) can keep an incomplete download in ~/.litert-lm/cache/huggingface/litert-community/VibeVoice-ASR-Streaming-1.5B/ and uses it again on later runs without checking its size. Delete that file and run the command again (after an import, run the import again). This was measured with other models' files, not with these.
If you downloaded either file with the litert-lm CLI's --from-huggingface-repo before it was replaced on 2026-11-17 (10:39 UTC), delete it from ~/.litert-lm/cache/huggingface/litert-community/VibeVoice-ASR-Streaming-1.5B/, then run your command again (after an import, run the import again). Without deleting it, the litert-lm CLI (0.14.0 to 0.19.2) keeps running the previous file: it uses a file it finds there without checking it against this repo. The previous files stay at revision 24aa1b3.
Notes:
- Greedy decoding (top_k 1) is what the vendor runtime does. Each turn's text begins with the speaker label on its first emission (
Speaker 0:) and continues mid-sentence on later turns β concatenate the turns as-is. - The audio encoder must run on the CPU (
audio_backend); the LM runs on CPU or GPU (recommended). - Windows shorter than 3.467 s are fine for the last chunk only (pad with zeros); send full windows otherwise β the runtime treats the encoder window as fixed.
Performance
Everything in this section above its last part was measured on earlier files (the tables on 2026-09-17). The new files' speeds were measured on a Galaxy S26 GPU and a Pixel 11 Pro GPU; they are in the last part of this section. This card has no Mac or Pixel 8a speed for the new files.
litert-lm benchmark (litert-lm 0.16.0), Apple M4 Max, -p 256 -d 256 --runs 3 --cache no, text prompt (LM only), quiet machine, β₯ 300 s rest before each GPU reading:
| File | Backend | Prefill (256) | Decode | TTFT | Init |
|---|---|---|---|---|---|
| int4 | GPU (Metal) | 1766 tok/s | 113.7 tok/s | 0.15 s | 1.5 s |
| int4 | CPU | 305 tok/s | 56.0 tok/s | 0.86 s | 1.2 s |
| int8 | GPU (Metal) | 1977 tok/s | 139.6 tok/s | 0.14 s | 1.6 s |
| int8 | CPU | 251 tok/s | 46.8 tok/s | 1.04 s | 6.1 s |
Init is the Init time the CLI prints; that value includes both Init Total and the phases inside it, so it counts engine creation twice (LiteRT-LM #4057).
End-to-end streaming on the fixture set (engine loaded, one conversation per clip, 73 turns): time per 2.93 s turn (encoder + prefill of 28 tokens + ~10 decoded tokens) β int4: 0.33 s with the LM on Metal (real-time factor 0.13), 0.51 s on CPU (0.20); int8: 0.29 s / 0.48 s. The audio encoder is ~0.15β0.19 s of that (8 threads).
Galaxy S26 (SM-S942Q, Snapdragon SM8850, Adreno), litert_lm_advanced_main built from the litert-lm v0.16.1 tag, --benchmark --benchmark_prefill_tokens=256 --benchmark_decode_tokens=256, one reading per configuration, CPU uncapped and SKIN < 40 Β°C before each run (LM only):
| File | Backend | Prefill (256) | Decode | TTFT | Peak private footprint (streaming run) |
|---|---|---|---|---|---|
| int4 | GPU (OpenCL) | 628 tok/s | 46.3 tok/s | 0.43 s | 1483 MB |
| int4 | CPU | 317 tok/s | 46.5 tok/s | 0.83 s | 2511 MB |
| int8 | GPU (OpenCL) | 610 tok/s | 30.5 tok/s | 0.45 s | 1613 MB |
| int8 | CPU | 514 tok/s | 32.8 tok/s | 0.53 s | 3159 MB |
On the phone the streaming loop costs about 1.1 s per 2.93 s turn with the LM on the GPU and 0.6 s on the CPU (int4 file; int8: 1.1 s / 0.8 s) β the slope of process wall-clock over window count across the 20 clips (intercept = engine load, 3β6 s per process; Β±0.2 s on the slope β the per-process walls scatter by 2β3 s), i.e. a real-time factor of roughly 0.2β0.4, so the transcript keeps up with live speech.
Pixel 8a (Tensor G3, Mali-G715), same binary and flags, int4 file only, CPU uncapped before each run:
| File | Backend | Prefill (256) | Decode | TTFT | Peak private footprint (streaming run) |
|---|---|---|---|---|---|
| int4 | CPU | 117 tok/s | 22.5 tok/s | 2.22 s | 2210 MB |
| int4 | GPU (Mali) | 156 tok/s | 12.7 tok/s | 1.72 s | 2521 MB |
On the Pixel 8a keep the LM on the CPU: the Mali delegate halves decode speed and uses more memory; the streaming loop still runs about 2Γ faster than real time there (each 2.93 s turn is ~28 prefill tokens plus ~10 decoded tokens).
Galaxy S26 and Pixel 11 Pro GPU: the files of 2026-11-17
Each run prefills 1,024 tokens and generates 256 tokens, three times in one process (three iterations), with a text prompt (LM only) and a context of 2,048 tokens. The program is litert_lm_advanced_main built from the LiteRT-LM v0.19.0 source (commit 771b06e1; the tag's own commit after it changes only Package.swift and README.md), run with --backend=gpu --async=false --benchmark --benchmark_prefill_tokens=1024 --benchmark_decode_tokens=256 --num_iterations=3 --max_num_tokens=2048 on 2026-11-17. On each phone, each pair (a previous file and the new file that replaced it) had four runs, in the order previous, new, new, previous. Each run is a new process and started at Android's thermal status 0. Each value is one run's mean of iterations 2β3, so it leaves out iteration 1, the first pass after the engine starts.
| File | Phone | Prefill, tok/s (previous, new, new, previous) | Decode, tok/s (previous, new, new, previous) | New / previous, runs 2 and 1 | New / previous, runs 3 and 4 |
|---|---|---|---|---|---|
| int4 | Galaxy S26 | 678.60, 707.80, 709.67, 683.22 | 46.62, 51.54, 51.89, 46.91 | prefill Γ1.043, decode Γ1.105 | prefill Γ1.039, decode Γ1.106 |
| int4 | Pixel 11 Pro | 592.96, 612.25, 607.78, 590.64 | 13.89, 16.37, 16.04, 14.27 | prefill Γ1.033, decode Γ1.179 | prefill Γ1.029, decode Γ1.124 |
| int8 | Galaxy S26 | 653.62, 693.96, 694.93, 668.88 | 31.39, 32.74, 33.06, 31.08 | prefill Γ1.062, decode Γ1.043 | prefill Γ1.039, decode Γ1.064 |
| int8 | Pixel 11 Pro | 585.06, 588.48, 598.43, 584.15 | 12.77, 13.34, 13.41, 11.98 | prefill Γ1.006, decode Γ1.045 | prefill Γ1.024, decode Γ1.119 |
The mean of each file's two runs:
| File | Phone | New file: prefill / decode / time to first token | Previous file: prefill / decode / time to first token |
|---|---|---|---|
| int4 | Galaxy S26 | 708.73 tok/s / 51.71 tok/s / 1.46 s | 680.91 tok/s / 46.76 tok/s / 1.53 s |
| int4 | Pixel 11 Pro | 610.01 tok/s / 16.20 tok/s / 1.74 s | 591.80 tok/s / 14.08 tok/s / 1.80 s |
| int8 | Galaxy S26 | 694.44 tok/s / 32.90 tok/s / 1.51 s | 661.25 tok/s / 31.23 tok/s / 1.58 s |
| int8 | Pixel 11 Pro | 593.45 tok/s / 13.38 tok/s / 1.80 s | 584.61 tok/s / 12.37 tok/s / 1.84 s |
On the Galaxy S26 (SM-S942Q) the GPU driver's thermal level (0 = no limit) reached 1 at most during the iterations of the int4 runs and 2 at most during those of the int8 runs, and a system app (com.google.android.gms) was in the foreground when each run started. On the Pixel 11 Pro, Android's thermal status stayed at 0 in every run.
On both phones, each new file and the file it replaced gave the same transcript of one LibriSpeech clip, byte for byte: Speaker 0:Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his gospel. The clip (1272-128104-0000) went in as two windows, one per turn, with the LM on the GPU, the audio encoder on the CPU and greedy decoding.
The Galaxy S26 CPU and the Pixel 11 Pro CPU were not run with the new files, so this card does not compare the GPU with the CPU for them.
Conversion notes
Converted with litert-torch 0.9.3/0.9.4, ai-edge-quantizer 0.9.0, litert-lm-builder 0.16.1, transformers 5.14.1 (native vibevoice_asr classes). Scripts and the full recipe: hf-to-litertlm vibevoice_asr_streaming_work/.
- Protocol, not prompt. The checkpoint shares its weight layout with VibeVoice-ASR-BitNet but was trained on the interleaved chunk protocol of the vendor's
streaming_generate(bare prompt without ChatML, per-window speech markers,<|text_chunk_end|>after each text segment). The file encodes that as prompt templates with empty prefixes/suffixes, the model suffix<|text_chunk_end|>, and stop tokens<|text_chunk_end|>/<|endoftext|>, so that each window is one turn of a conversation, as in the vendor's loop; what LiteRT-LM puts into the cache between two windows is under Known runtime issues. - Audio encoder = acoustic + semantic conv encoders + projector as one single-signature tflite,
audiof32[1, 26, 3200]βfeaturesf32[1, 26, 1536], raw 24 kHz PCM framed by the runtime (the checkpoint'spreprocessor_config.jsonsetsnormalize_audio: false, so no RMS normaliser this time). Acoustic latents are the mean (the vendor Python demo samples noise at inference; the mean transcribes equally on the fixtures). Each window is encoded independently β the 4-frame look-ahead overlap is the app's job because the runtime's built-in windowing has no overlap without a Gemma-3n-style adapter. - LM: dense bf16 Qwen2.5-1.5B-shaped weights (no BitNet ternary here), tied head, exported through the same driver as every dense LLM in the collection: int4 blockwise-128 for the phone file, int8 dynamic for the desktop file.
- Tokenizer: the upstream
tokenizer.jsonalready has strings for every marker (<|object_ref_start|>,<|object_ref_end|>,<|box_start|>,<|text_chunk_end|>= 151646/151647/151648/151665), so it ships unmodified. - GPU: the LM runs on Metal (macOS) and the Android OpenCL delegate (Adreno; on Mali the GPU LM is correct but slower than the CPU); the audio encoder returns an empty transcript on both GPU delegates (also with fp32 activations β a conv-stack issue, not the fp16 range), so keep
audio_backendon CPU.
2026-11-17 β GPU graph (weights unchanged)
In both files the prefill/decode graph now has the GPU form: 28 odml.cache_update composites for the KV cache and 56 attention composites. The previous files had neither; a check of their graphs counted 56 DYNAMIC_UPDATE_SLICE and 56 BATCH_MATMUL ops instead. The prefill lengths (32, 128 and 512 tokens), the KV-cache length (2,048) and the weight quantization read the same before and after.
Only the prefill/decode graph section differs from the previous file: it went from 30,111,424 B to 30,463,368 B in the int4 file and from 37,558,808 B to 37,910,752 B in the int8 file. The six other sections of each file (metadata, tokenizer, embedder graph, audio encoder and the two weight sections) have the same size and sha256 as in the previous file. The int4 file went from sha256 6cf6d895β¦ (1,992,245,248 B) to 105fbfe3β¦ (1,992,605,696 B), the int8 file from 63e36936β¦ (2,771,484,672 B) to 34a18308β¦ (2,771,828,736 B).
With litert-lm 0.19.0, 0.19.1 and 0.19.2 on a Mac, on the CPU and on the GPU, each new file and the file it replaced both transcribed a test clip, to the same text byte for byte. The Mac comparison on 20 clips is under Correctness and the phone runs are in the last part of Performance.
Apart from the parts that name the files of 2026-11-17, this card's measurements of the two files were made with their earlier versions.
Known runtime issues
External weights (since 2026-11-09). In VibeVoice-ASR-Streaming-1.5B.litertlm and VibeVoice-ASR-Streaming-1.5B_int8.litertlm, the weights sit in TFLiteWeights sections at the end of the file (LiteRT's external weights) instead of inside the model graph. On a Pixel 8a, the GPU engine of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) on a Qwen3-0.6B file with external weights (LiteRT-LM#3986). The earlier files with the weights inside the graph stay at revision 71ccc4c.
From a conversation preface (the system message, initial messages, tools and extra context a conversation is created with) that has tools and no messages, LiteRT-LM renders these files' chat template with an empty message list, and the template reads messages[0] without checking that the list is non-empty, so the render fails with Failed to apply template: undefined value. This happens in two places: when the preface is prefilled at creation (prefillPrefaceOnInit = true in Kotlin, prefillPrefaceOnInit: true on the web, SetPrefillPrefaceOnInit(true) in C++; the default is false), where creating the conversation fails with that error, and in the preface render (renderPrefaceIntoString() in Kotlin and Swift, RenderPrefaceIntoString() in C++, litert_lm_conversation_render_preface_to_string in the C API). The same happens with extra context (such as enable_thinking) and no messages, and in the preface render with an empty preface (run in the runtime on one Qwen3 template; the other templates rendered with minijinja 2.14 and jinja2). Read in the source of LiteRT-LM 0.17.0, 0.18.1 and main; measured with LiteRT-LM 0.18.1 (the litert-lm package from PyPI) through its C API on these files' template text. The default path, where the first message is rendered together with the preface, is not affected: the Python API and the CLI of 0.18.1 expose neither the flag nor the preface render, and Google AI Edge Gallery sets neither (its source as read on 2026-10-25). A system message or any initial message in the conversation config avoids it.
From the second window of a conversation on, LiteRT-LM puts the previous answer's stop token into the KV cache with a zero embedding, because these files hold the embedding table in its own section and the decoder takes embeddings (read in the source of LiteRT-LM 0.16.0, 0.18.1 and 0.19.1; measured with 0.18.1 on WeVisOne-VL-2B and Qwen2.5-Coder-1.5B-Instruct, not on these files). The LiteRT-LM transcripts and error rates on this card, and the 20-clip comparison of the new files with the files they replaced, were measured with the runtime as it is, which handles both files of a pair the same way. Its effect on the windows after the first was not measured on these files: no run on this card separates it. The ways around it on other models, one message per conversation or the earlier turns re-sent in a new conversation, were not tried with this model's windows. A whole clip sent in one turn is not a way around it: the model then transcribes only the last 3.5 s (see above).
On LiteRT-LM 0.18.1 and 0.19.1, once a message fails because it does not fit in the context window, every later message in that conversation fails as well (the next one with Task failed with state: 7). Start a new conversation after such an error. This was measured with other models' files, not with these.
License and changes
Distributed under the MIT License (inherited from the base model; see LICENSE). Changes from the original work: weights converted from safetensors bf16 to LiteRT flatbuffers with the quantization described above; the VAE decoder (synthesis half) and the diffusion head are not included; the streaming prompt protocol and audio-preprocessing parameters embedded as LiteRT-LM metadata.
- Downloads last month
- 567
Model tree for litert-community/VibeVoice-ASR-Streaming-1.5B
Base model
microsoft/VibeVoice-ASR-Streaming-1.5B
import torch, soundfile as sf, librosa, numpy as np from vibevoice.processor.vibevoice_processor import VibeVoiceProcessor from vibevoice.modular.modeling_vibevoice_inference import VibeVoiceForConditionalGenerationInference # Load voice sample (should be 24kHz mono) voice, sr = sf.read("path/to/voice_sample.wav") if voice.ndim > 1: voice = voice.mean(axis=1) if sr != 24000: voice = librosa.resample(voice, sr, 24000) processor = VibeVoiceProcessor.from_pretrained("litert-community/VibeVoice-ASR-Streaming-1.5B") model = VibeVoiceForConditionalGenerationInference.from_pretrained( "litert-community/VibeVoice-ASR-Streaming-1.5B", torch_dtype=torch.bfloat16 ).to("cuda").eval() model.set_ddpm_inference_steps(5) inputs = processor(text=["Speaker 0: Hello!\nSpeaker 1: Hi there!"], voice_samples=[[voice]], return_tensors="pt") audio = model.generate(**inputs, cfg_scale=1.3, tokenizer=processor.tokenizer).speech_outputs[0] sf.write("output.wav", audio.cpu().numpy().squeeze(), 24000)