Comment by netsharc

12 days ago

Cool, almost a "build your own ecosystem" Siri/voice assistant...

The 2 line explanation is sort of vague, but from the code I surmise the Python "app" watches a webpage (configured as https://www.doubao.com/chat/624642496948226) and every time the DOM there is modified, it sees that new prompt, looks for the word "note", and if so, creates an Obsidian note with the transcription of the prompt.

    CHAT_URL: str = "https://www.doubao.com/chat/624642496948226"
    [...]
    await page.goto(CHAT_URL, timeout=120000, wait_until="domcontentloaded")

Alexa has "build your own app", this seems less convoluted.

Google Gemini also records my prompts (under My Activity), I guess with an always-listening Gemini Assistant and a similar Python script that monitors https://myactivity.google.com/product/gemini (I'm guessing this page needs a hard reload to update), it's possible to build something similar.

I don't have my phone to respond to "Hey Google", but I have an alarm clock that has that (not Gemini, but Google Assistant), and I often tell it to "Remind me about [...] in x hours". I just tested the phrase "Add a note about...", and it added a note in Google Keep. But with an analog Python script one could trigger many more things.

Spot on with the breakdown! You described it exactly right—DOM watching, keyword detection, Obsidian integration.

The Gemini + My Activity idea is brilliant. Definitely worth exploring.

Totally agree that the Google Assistant approach works well—the "Add a note to Keep" feature is already pretty solid. Your point about the analog Python script opening up more possibilities is exactly why I built this.

I went with Doubao earbuds because *I drive a lot*, so having voice input always available is more convenient than a stationary device. But your Google Assistant + Python script idea could easily do the same—monitor the page, detect keywords, route wherever you want.

On Obsidian vs Keep: for me it's about having everything in one place—backlinks, plugins, local files. But Keep works great too, especially for quick captures.

Let me know if you try the Gemini approach!