pipecat-ai/voice-reader
- License
- bsd-2-clause
- Size
- not mirrored yet
No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from pipecat-ai/voice-reader
All models by pipecat-ai →No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from pipecat-ai/voice-reader
All models by pipecat-ai →⚠️ Experimental. A release candidate. Outputs, names and calibration may change between releases, and its readings are cues for an LLM to weigh, not verdicts to act on alone.
A small CPU model that hears how a user sounds: tone of voice, sarcasm, energy, laughter and speech rate. Pipecat runs it on up to the last 8 s of a user's speech each time they stop talking, and writes the reading at the head of their message to the LLM as RCS perception:
It hears the voice, and Pipecat's Tone Reader reads the words.
Pipecat reports the model's sarcasm as sarcasm_voice, beside the sarcasm the Tone Reader reads from the words.
With Pipecat 1.16 or later:
Set PipelineParams(enable_expressive_conversation=True) so the LLM is taught to read it. Each Pipecat version pins
the release it was tested with: revision= pins another, variant="tiny" loads the smaller model and sad=True
adds the sad signal. See the reference,
and the
example bot
for running it beside the Tone Reader in one reading.
Every value leaves the ONNX graph final, with its calibration applied. Each config.json declares the outputs, the
lengths the graph reads (read_secs: 4, 6 or 8 s, as the turn needs) and the sarcasm threshold (0.066 for base,
0.068 for tiny). Pipecat's reader writes them under these names, except sarcasm, which it writes as
sarcasm_voice. It adds sad when asked and leaves out upset, which PipecatVoiceClassifier answers.
Each folder has model.int8.onnx, model.onnx (fp32), config.json and MANIFEST.json (SHA-256 of every file).
Labels on real speech come from two audio LLM judges (Gemini 3.1 Pro preview and OpenAI gpt-audio-1.5). A turn counts as sarcastic only when both say so. Test speakers never appear in training. Each turn is read whole, as cut for training; see the first limitation for how a live pipeline differs.
base's sarcasm ranking (AUPRC) falls from 0.60 to 0.50 on one conversation set and from 0.35 to 0.24 on the
other, and tone macro-F1 by 0.01 to 0.03. Laughter hardly moves.base loses 0.04 to 0.05 of sarcasm AUPRC and 0.02 of tone macro-F1, and its recall
of sad turns falls from 0.75 to 0.69 on one conversation set and from 0.52 to 0.40 on the other. tiny, trained on
such copies, still loses 0.02 to 0.04 and 0.03, and was tested with noise recordings it trained on.base's sad calls are turns the judges agreed were another tone (recall 0.58–0.81, precision 0.31–0.47).base
reads 19 at 0.5 or more and tiny 16, against 0.3 % and 0.5 % of the 12,620 turns they left unmarked. It fires
on a clearly laughing voice as well as on a laugh, and still on about 1 in 20 turns Gemini heard crying in.Only laughter: it now means laughter a listener hears in the turn, refit on what Gemini heard and calibrated
against it. Every other value is exactly rc5's.
base's recall at 0.5 goes from 0.06 to
0.59 on one conversation set and from 0.05 to 0.81 on the other, with false alarms at 1.0 % and 1.5 % (rc5: 1.6 %
on both).base reads 4 % at 0.5 or more
and tiny 5 %.base is the average of four Whisper encoders initialised from LAION's
whisper-tiny-base-emotion-voice-burst (CC BY
4.0) and cut to an 8 s window, with every head retrained on the averaged encoder. tiny is distilled from an earlier
base model, then fine-tuned on its training data plus degraded copies of the judged part (noise from MUSAN's noise
set, CC BY 4.0; a synthetic room; Opus at 6 to 16 kbit/s, mu-law or an 8 kHz band-limit). In rc6 each size's laughter
head is refit on its frozen encoder and grafted onto the rc5 model.
Training data: judged conversations from Open Yap 1K and otoSpeech, HarperValleyBank (CC BY 4.0), the English YODAS part
of Emilia from laion/Emolia (CC BY 4.0) and CREMA-D (ODbL / DbCL), plus pseudo-labelled windows. MUStARD++ (CC BY-NC)
and EmoNet-Voice Bench were used for evaluation only.
([tone frustrated=0.71, neutral=0.22],[arousal value=0.34],[laughter value=0.02],[speech_rate value=3.1],[sarcasm_voice value=0.63]) Oh, great.uv add "pipecat-ai[expressivity]"from pipecat.expressive.processors.voice_reader import PipecatVoiceReader
pipeline = Pipeline([transport.input(), stt, PipecatVoiceReader(), user_aggregator, llm, tts, transport.output(), assistant_aggregator])