{"id":50550632,"url":"https://github.com/hormold/hibikizeros2s","last_synced_at":"2026-06-04T03:01:10.412Z","repository":{"id":338141234,"uuid":"1156731636","full_name":"Hormold/HibikiZeroS2S","owner":"Hormold","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-13T03:36:16.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-13T10:43:18.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hormold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-13T01:37:16.000Z","updated_at":"2026-02-13T03:36:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Hormold/HibikiZeroS2S","commit_stats":null,"previous_names":["hormold/hibikizeros2s"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Hormold/HibikiZeroS2S","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2FHibikiZeroS2S","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2FHibikiZeroS2S/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2FHibikiZeroS2S/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2FHibikiZeroS2S/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hormold","download_url":"https://codeload.github.com/Hormold/HibikiZeroS2S/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2FHibikiZeroS2S/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33887124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-04T03:01:09.647Z","updated_at":"2026-06-04T03:01:10.402Z","avatar_url":"https://github.com/Hormold.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hibiki Zero S2S\n\nReal-time speech-to-speech translation deployed on [Baseten](https://baseten.co) via WebSocket.\n\nPowered by [Kyutai's Hibiki Zero](https://github.com/kyutai-labs/hibiki-zero) — a 3B parameter model for simultaneous translation.\n\n**Supported:** French, Spanish, Portuguese, German → English\n\n## Architecture\n\n```\nBrowser (mic) → ws://localhost:8080/ws → proxy.py → Baseten (GPU) → Translated audio + text\n```\n\n- **`frontend/`** — Frontend with Opus encoding/decoding, waveform visualization\n- **`proxy.py`** — Serves frontend + WebSocket proxy to Baseten with auth\n- **`truss/`** — Baseten Truss deployment (L4 GPU, WebSocket transport)\n\n## Quick Start\n\n### 1. Deploy to Baseten\n\n```bash\npip install truss\ncp .env.example .env  # add your BASETEN_API_KEY and BASETEN_WS_URL\ncd truss \u0026\u0026 truss push\n```\n\n### 2. Run\n\n```bash\npip install websockets aiohttp\nsource .env \u0026\u0026 export BASETEN_API_KEY BASETEN_WS_URL\n\npython3 proxy.py\n# → http://localhost:8080\n```\n\nOne command — serves the frontend and proxies WebSocket to Baseten.\n\n### 3. Speak\n\nClick **Start Translating**, speak in French/Spanish/Portuguese/German, hear English translation in real-time.\n\n## WebSocket Protocol\n\nBinary messages with 1-byte prefix:\n\n| Prefix | Direction | Content |\n|--------|-----------|---------|\n| `0x00` | Server → Client | Handshake |\n| `0x01` | Both | Opus audio |\n| `0x02` | Server → Client | UTF-8 text |\n\n## Config\n\n| Setting | Value |\n|---------|-------|\n| GPU | Nvidia L4 (24 GB) |\n| Model | `kyutai/hibiki-zero-3b-pytorch-bf16` |\n| Audio | Opus @ 24kHz, 20ms frames |\n| Latency | ~10-20ms per frame |\n\n## License\n\nCode: MIT. Model weights: [CC-BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) (non-commercial).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhormold%2Fhibikizeros2s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhormold%2Fhibikizeros2s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhormold%2Fhibikizeros2s/lists"}