跳到正文
DEV Community· GianlucaBave·· 47 分鐘前AI 評分43

Murmury 開源通話助手的 6 個 Python 問題,多數無需 Mac

Six small Python issues in an open-source call copilot, most need no Mac

AI 導讀

Murmury 是一款開源的 Mac 通話助手,文章列出 6 個可供貢獻的 Python 問題,其中大部分無需 Mac 即可處理。約 620 項測試可在 Linux 和 Windows 執行,毋須網絡連線或 API key。任務包括載入 CSV 和 HTML 檔案,以及識別 Markdown 標題。

正文

Murmury is an open-source call copilot for Mac. During a Zoom, Meet or Teams call it transcribes the other side on your Mac with Whisper, notices when someone asks you something, and shows a short answer from your own documents (a PDF, a spreadsheet, your notes) in a small window that screen sharing doesn't capture.

It's Python and PySide6, GPL-3.0. In its first month, 30 people have contributed and 44 pull requests have been merged, many of them first pull requests ever. This post is for the next ones.

Why most issues don't need a Mac

The app itself runs on macOS, but most of the code is plain Python: loading documents, building the prompt, choosing models, parsing answers, the setup screen's logic. The test suite (about 620 tests) runs on Linux and Windows too, with no network and no API key. Each issue says on top whether it needs a Mac.

Getting started takes a few minutes:

git clone https://github.com/YOUR-NAME/murmury && cd murmury
uv sync
MURMURY_TEST_SETTINGS=1 uv run --with pytest python -m pytest tests -q

MURMURY_TEST_SETTINGS=1 makes the tests use a throwaway settings store, so nothing touches your real preferences.

Six issues that are free right now

Each one names the files to touch, what to check and when it's done.

1. Load .csv files as call material (level 1)
People bring price lists and CRM exports to calls. Today a .csv is left out. Add a small _csv() loader in copilot/material.py that writes rows the way the Excel loader already does, accept the suffix in copilot/setup.py, and test it.

2. Load saved web pages (.html), without the tags (level 1)
Only the readable text should reach the model: no <script>, no <style>, &amp; turned back into &. The standard library's html.parser is enough.

3. Source viewer: headings underlined with === or --- (level 1)
When an answer cites a section, a click opens the document at that heading. headings() in copilot/viewer.py only knows # headings, so the other Markdown style is missed. A nice regex-and-edge-cases task.

4. Tests for recommended() and list_models() (level 1)
Two functions that talk to the network and have almost no tests. Pin the "one fetch a day" and "never break when offline" behaviour with fakes, no real network call. If a test finds a bug, you fix it too.

5. Keep the screen awake during a call on Windows (level 1)
On macOS Murmury starts caffeinate. On Windows it does nothing, so a long call can turn the screen off. One SetThreadExecutionState call through ctypes, plus tests. Good if you're on Windows.

6. Text size setting for the floating window (level 2)
Small / Normal / Large on the setup screen, saved with the other style settings, applied to the window's stylesheet. A first taste of Qt.

The full list is in good first issues.

How taking an issue works

Comment on the issue with a short plan: which file you'll change and what you'll test. It isn't first come, first served: the clearest plan gets it, and when plans are close, someone who hasn't contributed yet. Open a pull request within a week, even a draft. Reviews come within a day or two, with concrete notes.

AI-assisted pull requests are fine as long as you understand the change, ran the tests, and can explain it in the review.

What you get out of it

A merged pull request in a real app that real people use on calls, a review on your code, and a codebase small enough to read in an afternoon. LEARNING.md walks through it in four tracks, from the tests to the Windows port.

Repo: github.com/GianlucaBave/murmury

來源:DEV Community · dev.to