Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

- **OmniVoice TTS engine (non-commercial).** Adds k2-fsa/OmniVoice as an opt-in eighth engine: zero-shot cloning and attribute-based voice design (gender, age, pitch, accent) across the 23 languages Voicebox already lists, 24 kHz output. Its `HiggsAudioV2` codec only exists in transformers 5.x, so the modelling code is vendored under `backend/vendor/` and grafted onto the pinned 4.57 at load time; `omnivoice` installs `--no-deps` like Chatterbox and TADA. The weights are CC-BY-NC, so the engine is labelled non-commercial in the engine picker and model manager and is never a default. — @pippo73 ([#1062](https://github.com/jamiepine/voicebox/pull/1062); fixes [#380](https://github.com/jamiepine/voicebox/issues/380), [#517](https://github.com/jamiepine/voicebox/issues/517), [#791](https://github.com/jamiepine/voicebox/issues/791))

### MCP

- **MCP stdio preserves UTF-8 text on Windows.** The proxy configures stdin and stdout as UTF-8 before reading or writing JSON-RPC messages, so non-ASCII text is not decoded through the Windows ANSI code page.

## [0.6.0] - 2026-10-04

**The stability release.** 0.5 made Voicebox a dictation and agent-voice studio; 0.6 makes it hold up. Sixty-plus contributor pull requests landed since 0.5 and most of them fix something that used to go wrong in daily use: MLX crashed with `There is no Stream(gpu, 1) in current thread` when a model was loaded on one thread and used on another, memory grew with every generation and never came back on unload, a fully-cached model retried HuggingFace five times per file before it would load offline, the Docker image could not write its own data volume, dictation refused to arm without an LLM it was never going to call, and the backend test suite would not even collect. All of that is fixed. The headline features ride on top: native AMD ROCm on Windows and in Docker, five new interface languages, and Chatterbox multilingual running on Apple Silicon through MLX.
Expand Down
3 changes: 3 additions & 0 deletions backend/mcp_shim/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ async def _run() -> int:


def main() -> int:
# MCP stdio frames are UTF-8 regardless of the Windows ANSI code page.
sys.stdin.reconfigure(encoding="utf-8")
sys.stdout.reconfigure(encoding="utf-8")
try:
return asyncio.run(_run())
except KeyboardInterrupt:
Expand Down
40 changes: 40 additions & 0 deletions backend/tests/test_mcp_shim.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import asyncio
import io
import json
import unittest
from unittest.mock import patch

from backend.mcp_shim import __main__ as shim


class TestMainConfiguresUtf8Stdio(unittest.TestCase):
def test_main_configures_utf8_stdio_before_reading_json_rpc(self):
text = "ação, coração, você"
request = {
"jsonrpc": "2.0",
"method": "voicebox_speak",
"params": {"text": text, "language": "pt"},
}
stdin = io.TextIOWrapper(
io.BytesIO((json.dumps(request, ensure_ascii=False) + "\n").encode("utf-8")),
encoding="cp1252",
)
stdout = io.TextIOWrapper(io.BytesIO(), encoding="cp1252")

original_run = asyncio.run

def read_stdin_without_running_proxy(coroutine):
coroutine.close()
return original_run(shim._read_stdin_line())

with (
patch.object(shim.sys, "stdin", stdin),
patch.object(shim.sys, "stdout", stdout),
patch.object(shim.asyncio, "run", read_stdin_without_running_proxy),
):
result = shim.main()

expected = json.dumps(request, ensure_ascii=False) + "\n"
assert result == expected
assert json.loads(result)["params"]["text"] == text
assert stdout.encoding == "utf-8"