A podcast refuses on a tight machine rather than voicing at a smaller chunk
メンテナーはふだん 1 日以内に返信
@Yogi-cy がすでに取り組んでいます。
2026年10月5日 から。
評価
調査の方向性
Read the audio.cpp request and session options first to establish how chunk size is configured, then trace check_voicing_memory() in memory.py through _wait_for_memory() and _voice_each() in speech.py. Start with a failing test in test_speech.py; handle models with no chunk_steps and update the catalog documentation. Verify real-model behavior with test_audiocpp_voicing.py and listen to a two-speaker podcast at each enabled step.
索引モデルが issue の本文から書いたものです。
説明
The gap
docs/architecture/local-models/catalog.md lists this under Known gaps:
The
audioblock'schunk_stepsare committed but nothing reads them: short of memory at the default chunk, a podcast refuses rather than stepping down, until a listening test clears the smaller chunks.
Why it matters
Kokoro peaks at 2,347 MB while voicing at the default chunk, and at 1,442 MB at 120 characters and 956 MB at 60. Those numbers were measured on audio.cpp v0.8.2, reviewed and committed. A machine with two and a half gigabytes free is refused a podcast it could produce at half the memory, and the refusal instead suggests a different, lighter model — a worse answer than the same model voicing more slowly.
The manifest rule this page states is that an entry carries only fields some engine reads, precisely so nothing is reviewed and trusted while doing nothing. chunk_steps has been that field since it was added, and the memory check is one argument away from using it.
Where
surfsense_local/backend/modules/llm/providers/audiocpp/memory.py—check_voicing_memory(), which takes a singlepeak_mband raises. This is the decision point, andothersalready shows the shape of "here is a smaller thing that fits".surfsense_local/backend/modules/llm/providers/audiocpp/speech.py—_wait_for_memory()is the only caller, and_voice_each()builds the request. Note that the body today ismodel,input,voiceand sometimeslanguage: nothing tells audio.cpp what chunk size to use, so finding that knob is part of this work — it is either a request field the server accepts or a session option inserver.json, and which one it is has to be established against audio.cpp before the rest is worth writing.surfsense_local/backend/modules/llm/catalog/local/engines/audiocpp/manifest_fields.py—ChunkStepandAudioDefaults.chunk_steps, already validated and already committed.surfsense_local/backend/modules/llm/catalog/local/engines/audiocpp/audio_folder/server_config.py—_entry(), where a per-model session option would go if that is where the knob lives.surfsense_local/backend/scripts/local_manifest/entries.py— the committed steps. Kokoro and Kitten have them; Supertonic has none, so the code has to handle a model with nothing to step down to.
What done looks like
- A machine short of memory at the default chunk voices at the largest committed step that fits, rather than refusing, and a model with no steps still refuses with the sentence it gives today.
- The refusal, when it comes, accounts for the smallest step, not the default peak — otherwise the numbers in the message are wrong.
- The listening test is part of this issue, not a follow-up. Voice a two-speaker podcast at each step you enable and confirm the audio holds up; say in the PR what you listened to and on which audio.cpp build. A step that degrades the audio should not be enabled however well it fits.
- Delete the Known gaps line from
docs/architecture/local-models/catalog.mdin the same PR, and update thechunk_stepsbullet under The manifest so it describes a field that is read.
How to verify
surfsense_local/backend/tests/unit/llm/providers/audiocpp/test_speech.py drives voicing against a mock transport with an injectable available callable, so every memory branch is a unit test with no audio involved. tests/packaging/test_audiocpp_voicing.py is the real-model harness, gated on SURFSENSE_TEST_AUDIO_MODELS. The repo is TDD: write the failing unit test first.
cd surfsense_local/backend
uv run pytest -m unit
uv run pytest -m integration
uv run ruff check .
Before you start
Read CONTRIBUTING.md, the local model catalog doc and the Studio doc, which owns the podcast job this serves. Say up front whether you can run audio.cpp with a real model; without that the listening test cannot be done and the issue cannot be finished. Open your PR against dev, not main. Comment here to claim this.
- 主要言語
- Python
- スター
- 16.3k
- フォーク
- 1.6k
- 平均マージ
- 12時間 13分
- マージ済み PR(30日)
- 274
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MODSetter/SurfSense のほかの issue
-
Security Scan: stop flagging pinned hashes and test fixtures on release PRs対応中かも @karthikeya1220 が今日担当しました。 オープンcode quality security
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MODSetter/SurfSense#2225 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Check Apple notarization credentials on dry runs and weekly対応中かも @Cedric921 が今日担当しました。 オープンdesktop
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
MODSetter/SurfSense#2224 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Release workflow: keep the macOS certificate off the Windows dry-run build対応中かも @Cedric921 が今日担当しました。 オープンdesktop security
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MODSetter/SurfSense#2223 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Write the ADR for chat modes対応中かも @Cedric921 が今日担当しました。 オープンarchitecture desktop documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
MODSetter/SurfSense#2220 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
MODSetter/SurfSense の issue をすべて見る
似ている issue
-
md/asciidoc/csv: an explicit `encoding="utf-8"` keeps a leading BOM, the auto-detect path drops itオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
docling-project/docling#4846 ·
メンテナーはふだん 1 日以内に返信
-
area/sessions comp/dashboard comp/desktop comp/gateway comp/tui duplicate P2 sweeper:risk-session-state type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#138914 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bot-triaged module: activation checkpointing module: inductor oncall: pt2 triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
[oblt-aw][autodoc] Update PR Actions Detective E2E prerequisites and fix dashboard-format table typoオープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
elastic/oblt-aw#2382 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信