Contents
Synapse: Control QA Automation by Voice with Gemini Live API

Synapse: Control QA Automation by Voice with Gemini Live API

Imagine sitting at your monitor, watching a running application and saying: “Generate test scenarios for the login component.”

Thirty seconds later you have JSON scenarios. No typing commands, no switching windows: just your voice.

Synapse is a voice orchestrator that controls a QA automation stack in real time using Google Gemini Live API.

The problem: CLI is fine, but...

We have excellent tools:

  • Marker adds data-testid
  • Scout generates scenarios from code
  • Golem turns scenarios into tests

But each requires CLI commands:

bash
# Marker
python marker/main.py add --project ./frontend

# Scout  
python scout/main.py generate ./frontend -o scenarios.json

# Golem
python golem/main.py generate scenarios.json -f playwright

# Run tests
pytest result/tests/ --base-url http://localhost:4200

Four commands, four terminal switches, four paths to type. What if you could say:

“Add test IDs to the frontend project, then generate scenarios,
 create Playwright tests and run them on localhost:4200.”

And AI would do all of it for you?

The solution: Synapse, a voice-controlled QA orchestrator

Synapse is a voice command center for QA automation:

┌─────────────────────────────────────────────────────┐
│                      YOU                              │
│              (voice or text)                       │
└──────────────────────┬──────────────────────────────┘
                       ↓
┌─────────────────────────────────────────────────────┐
│                   SYNAPSE                            │
│           Google Gemini Live API                     │
│      Real-time bidirectional voice                  │
└──────────────────────┬──────────────────────────────┘
                       ↓
        ┌──────────────┼──────────────┐
        ↓              ↓              ↓
   ┌─────────┐   ┌─────────┐   ┌─────────┐
   │  SCOUT  │   │  GOLEM  │   │ MARKER  │
   │ :50051  │   │ :50052  │   │ :50053  │
   │ gRPC    │   │ gRPC    │   │ gRPC    │
   └─────────┘   └─────────┘   └─────────┘

Synapse listens, understands what you want and calls the right microservice.

How does it work?

1. Real-time voice with Gemini Live API

Synapse uses Gemini 2.0 Flash Live with bidirectional streaming:

You speak → microphone → Synapse → Gemini Live API
                                         ↓
                               AI understands and responds
                                         ↓
You hear ← speaker ← Synapse ← audio stream

This is not speech-to-text + LLM + text-to-speech. It is a native real-time conversation with AI.

2. Tool calling

Gemini Live supports function calling in real time:

python
# Synapse defines four tools
tools = [
    {
        "name": "generate_scenarios",
        "description": "Generate test scenarios from frontend code",
        "parameters": {"project_path": "string"}
    },
    {
        "name": "generate_tests",
        "description": "Generate executable tests from scenarios",
        "parameters": {"scenarios_path": "string", "framework": "string"}
    },
    {
        "name": "run_tests",
        "description": "Run generated tests",
        "parameters": {"test_dir": "string", "base_url": "string"}
    },
    {
        "name": "add_test_ids",
        "description": "Add data-testid attributes to components",
        "parameters": {"project_path": "string"}
    }
]

When you say “generate scenarios for my Angular project”, Gemini:

  1. Understands the intent
  2. Selects the right tool (generate_scenarios)
  3. Asks for missing parameters, such as the project path
  4. Calls the tool
  5. Announces the result by voice

3. gRPC microservices

Synapse communicates with services over gRPC:

python
# grpc_clients.py
class ScoutClient:
    def __init__(self, host="localhost", port=50051):
        self.channel = grpc.insecure_channel(f"{host}:{port}")
        self.stub = scout_pb2_grpc.ScoutServiceStub(self.channel)
    
    def generate_scenarios(self, project_path: str) -> ServiceResult:
        request = scout_pb2.GenerateRequest(project_path=project_path)
        response = self.stub.Generate(request)
        return ServiceResult(success=response.success, data=response.scenarios)

Each tool runs as a separate server; Synapse orchestrates them.

Practical example

Starting up

bash
# 1. Start the microservices (each in a separate terminal)
cd scout && python main.py grpc-server --port 50051
cd golem && python main.py grpc-server --port 50052
cd marker && python grpc_server.py --port 50053

# 2. Start Synapse
cd synapse && python main.py live

Voice session

SYNAPSE — Voice-Controlled QA Automation · Listening...
You: “Hi, I need tests for my frontend.”
AI: “Happy to help. What is the path to your frontend project?”
You: “/projects/my-angular-app”
AI: “Would you like to add test IDs first, or do you already have them?”
You: “Please add them.”
AI: “Running Marker...” [Marker runs]
AI: “Done: 47 test IDs added to 12 components. Generate scenarios now?”
You: “Yes, please.”
AI: “Running Scout...” [Scout runs]
AI: “Generated 23 scenarios for 8 pages in result/scenarios.json. Create Playwright tests?”
You: “Yes, and then run them on localhost:4200.”
AI: “Generating tests...” [Golem runs]
AI: “Created 23 tests. Running them...” [Tests run]
AI: “Done! 21 passed, 2 failed: test_login_validation and test_checkout_empty_cart. See details?”

The entire workflow is one conversation. No commands, paths or window switching.

Three modes

1. Live voice (main mode)

bash
python main.py live
  • Real-time voice conversation
  • Gemini Live API
  • Headphones recommended so AI does not hear itself

2. Text mode (fallback)

bash
python main.py text
  • For environments without a microphone
  • Interactive chat
  • The same functionality in writing
> Generate scenarios for ./frontend
AI: Running Scout...
AI: Done! 15 scenarios generated.

> Create Playwright tests
AI: Which file should I read the scenarios from?

> result/scenarios.json
AI: Generating tests...

3. Single command (scripting)

bash
python main.py command "add test IDs to ./frontend"
  • One command, one result
  • Ideal for CI/CD
  • No interactivity

Architecture

synapse/
├── main.py              # CLI entry point
├── live_voice.py        # Gemini Live API integration
├── agents.py            # Tool handlers + text mode
├── grpc_clients.py      # Scout, Golem, Marker clients
├── config.py            # Configuration
└── proto/
    └── *.proto          # gRPC definitions

live_voice.py: the heart of Synapse

python
class SynapseLive:
    def __init__(self):
        self.client = genai.Client(api_key=config.google_api_key)
        self.model = "gemini-2.0-flash-live-001"
        
    async def run(self):
        async with self.client.aio.live.connect(
            model=self.model,
            config={
                "tools": self.tools,
                "system_instruction": self.system_prompt
            }
        ) as session:
            # Concurrent tasks
            await asyncio.gather(
                self.send_audio(session),    # Mic → Gemini
                self.receive_audio(session), # Gemini → Speaker
                self.handle_tools(session)   # Tool calls
            )

System instruction

python
system_prompt = """
You are a QA automation assistant with four tools:

1. generate_scenarios(project_path) - Generate test scenarios from code
2. generate_tests(scenarios_path, framework, base_url) - Create tests
3. run_tests(test_dir, base_url, headed) - Run tests
4. add_test_ids(project_path) - Add data-testid attributes

When the user needs to provide a path, ask them to type it.
Always confirm what you will do before doing it.
Speak Slovak or English according to the user.
"""

Supported voice commands

What you sayWhat Synapse does
“Add test IDs to the project”Calls Marker
“Generate scenarios”Calls Scout
“Create Playwright tests”Calls Golem generate
“Run tests”Calls Golem run
“Run tests with a browser”Golem run --headed
“Use Firefox”Golem run --browser firefox
“Analyze the project”Scout analyze
“Preview changes”Marker dry-run
“Rollback”Marker rollback

Synapse understands context: you need not repeat paths already given.

Why voice control?

1. Hands-free testing

Monitor 1: Running application
Monitor 2: DevTools
You watch the UI and speak commands:

“Run the checkout-flow test.”
[Watch the test run in the browser]
“That button does not work; add a test ID.”
[Marker adds the ID]
“Regenerate the test.”
[New test with a better selector]

2. Faster iteration

bash
# CLI: 4 steps
python scout/main.py generate ./frontend -o scenarios.json
python golem/main.py generate scenarios.json -f playwright
pytest result/tests/
# Find a bug, fix it, and repeat...

# Voice: one sentence
"Regenerate and run tests"

3. Lower cognitive load

You do not need to remember command syntax, file paths, parameters, flags or operation order. Say what you want; AI works out how.

Configuration

env
# .env
GOOGLE_API_KEY=your-gemini-api-key

# Microservice ports
SCOUT_HOST=localhost
SCOUT_PORT=50051

GOLEM_HOST=localhost
GOLEM_PORT=50052

MARKER_HOST=localhost
MARKER_PORT=50053

# Output
OUTPUT_DIR=result

Audio setup

Synapse uses prebuilt wheels, with no compilation:

bash
# Installation (Windows/macOS/Linux)
pip install sounddevice numpy

# List audio devices
python main.py devices

# Output:
# Input devices:
#   0: Microphone (Realtek Audio)
#   1: Headset Microphone
# Output devices:
#   0: Speakers (Realtek Audio)
#   1: Headphones

Tip: Use headphones so the microphone does not capture speaker output.

Complete QA stack with voice control

SYNAPSE: “Generate and run tests”
  ↓
MARKER: “Add test IDs” → data-testid attributes
  ↓
SCOUT: “Analyze code” (static) / SENTINEL: “Explore UI” (dynamic)
  ↓
JSON SCENARIOS
  ↓
GOLEM: “Create tests” → Playwright/Cypress/Robot
       “Run tests” → pytest execution

Voice-first workflow:

You: “Complete test workflow for the frontend.”

Synapse:
1. Calls Marker → adds test IDs
2. Calls Scout → generates scenarios
3. Calls Golem → creates tests
4. Calls Golem → runs tests
5. Reports results aloud

You listen to the results and watch the browser.

Quick start

bash
# 1. Get a Gemini API key
# https://aistudio.google.com/apikey

# 2. Configure
cp .env.example .env
# Edit GOOGLE_API_KEY

# 3. Install
pip install google-genai sounddevice numpy grpcio protobuf python-dotenv pydantic

# 4. Start the microservices
# (In separate terminals)
cd scout && python main.py grpc-server
cd golem && python main.py grpc-server
cd marker && python grpc_server.py

# 5. Start Synapse
cd synapse && python main.py live

# 6. Speak!
"Hi, help me test my Angular project"

Use cases

1. QA engineer: daily workflow

Morning: “Run regression tests for staging.”
After a bug fix: “Regenerate tests for the login module.”
Before a PR: “Add test IDs to the new components.”

2. Developer: quick validation

“Generate smoke tests for the component I just wrote.”
[Continue coding while tests run in the background]
“How did the tests go?”

3. CI/CD integration

yaml
# Voice command using single mode
- name: Generate and run tests
  run: |
    python synapse/main.py command "generate tests for ./frontend"
    python synapse/main.py command "run tests on $STAGING_URL"

4. Demo or presentation

“Show me how the test automation works.”
[Synapse demonstrates the workflow by voice]

Conclusion

Synapse changes the QA automation paradigm:

Traditional approachWith Synapse
CLI commandsVoice commands
Remember syntaxAI understands intent
Switch terminalsOne conversation
Manual orchestrationAI coordinates services
Keyboard-firstVoice-first

When to use Synapse:

  • ✅ You want hands-free testing
  • ✅ You need quick iteration
  • ✅ You have running QA microservices (Scout, Golem, Marker)
  • ✅ You prefer conversation to commands

Synapse is more than a voice interface. It is an intelligent assistant that understands QA workflows, remembers context and coordinates the automation stack.

Tell it what you need; it handles the rest.


Synapse orchestrates the Marker, Scout, Sentinel and Golem QA automation ecosystem. The tools communicate through gRPC and can be controlled by one voice.

All articles