|
| 1 | +--- |
| 2 | +id: voice-mode |
| 3 | +title: Voice Mode |
| 4 | +sidebar_position: 7 |
| 5 | +--- |
| 6 | + |
| 7 | +# Voice Mode with CALM Copilot Chat |
| 8 | + |
| 9 | +Voice Mode enables hands-free interaction with CALM Copilot Chat, allowing you to speak architecture queries and receive spoken responses directly in the chat interface. |
| 10 | + |
| 11 | +## Getting Started |
| 12 | + |
| 13 | +### Prerequisites |
| 14 | + |
| 15 | +- **VS Code**: Version 1.94 or later |
| 16 | +- **CALM Copilot Chatmode**: Configured in your repository (see [CALM Copilot Chatmode](copilot-chatmode)) |
| 17 | +- **GitHub Copilot Chat**: Active subscription and extension installed |
| 18 | +- **Microphone**: A working microphone |
| 19 | + |
| 20 | +### Setup |
| 21 | + |
| 22 | +1. **Install the VS Code Speech Extension** |
| 23 | + - Open VS Code Extensions (Ctrl+Shift+X or Cmd+Shift+X) |
| 24 | + - Search for "VS Code Speech" |
| 25 | + - Click **Install** on the Microsoft-published extension |
| 26 | + |
| 27 | +2. **Grant Microphone Permissions** |
| 28 | + - First use will prompt for microphone access - click **Allow** |
| 29 | + - If prompted on macOS, grant permissions to both "Visual Studio Code" and "Code Helper", then restart VS Code |
| 30 | + - On Windows, ensure VS Code is enabled in Settings → Privacy → Microphone |
| 31 | + |
| 32 | +3. **Configure VS Code Settings** |
| 33 | + - Open VS Code Settings (Ctrl+, or Cmd+,) |
| 34 | + - Search for `accessibility.voice` and add these settings: |
| 35 | + |
| 36 | +```json |
| 37 | +{ |
| 38 | + "accessibility.voice.autoSynthesize": "on", |
| 39 | + "accessibility.voice.ignoreCodeBlocks": true, |
| 40 | + "accessibility.voice.speechTimeout": 1200, |
| 41 | + "accessibility.voice.keywordActivation": "chatInView" |
| 42 | +} |
| 43 | +``` |
| 44 | + |
| 45 | +## Using Voice Mode |
| 46 | + |
| 47 | +### Starting a Voice Query |
| 48 | + |
| 49 | +1. Open GitHub Copilot Chat (Ctrl+Shift+I or Cmd+Shift+I) |
| 50 | +2. Select the **CALM** chatmode |
| 51 | +3. Click the microphone icon in the chat input field or press Ctrl+I (Windows/Linux) / Cmd+I (macOS) |
| 52 | +4. Speak your query clearly |
| 53 | +5. The response will appear as you finish speaking (auto-submit after ~1.2 seconds of silence) |
| 54 | +6. Your response will be read aloud automatically |
| 55 | + |
| 56 | +### Quick Voice Activation |
| 57 | + |
| 58 | +Say **"Hey Code"** to activate voice input without clicking anything (requires `keywordActivation` setting enabled above). |
| 59 | + |
| 60 | +### Example Queries |
| 61 | + |
| 62 | +Speak naturally and clearly. Here are examples of how you can use CALM Chatmode via voice: |
| 63 | + |
| 64 | +**Building Your Architecture:** |
| 65 | + |
| 66 | +- "Create a microservices architecture with a web frontend, API gateway, and PostgreSQL database" |
| 67 | +- "Add a node for the authentication service with HTTPS interfaces" |
| 68 | +- "Create a connects-to relationship from the API gateway to the backend services" |
| 69 | +- "Define that the services are deployed in Kubernetes" |
| 70 | + |
| 71 | +**Defining Controls and Compliance:** |
| 72 | + |
| 73 | +- "Add PCI-DSS compliance controls to the payment processor service" |
| 74 | +- "Define encryption-in-transit controls for all API connections" |
| 75 | +- "What security controls should apply to our database?" |
| 76 | + |
| 77 | +**Modeling Business Processes:** |
| 78 | + |
| 79 | +- "Create a flow for the customer onboarding process" |
| 80 | +- "Model the trade execution flow from order placement to settlement" |
| 81 | +- "Show the data journey through our system" |
| 82 | + |
| 83 | +**Validation and Best Practices:** |
| 84 | + |
| 85 | +- "Is my architecture valid?" |
| 86 | +- "What patterns apply to this microservices design?" |
| 87 | +- "What interfaces should the authentication service expose?" |
| 88 | +- "Why is my relationship definition failing validation?" |
| 89 | + |
| 90 | +**Documentation and Visualization:** |
| 91 | + |
| 92 | +- "Generate documentation for my architecture" |
| 93 | +- "Create a visual diagram of the system" |
| 94 | +- "Document all the interfaces and their protocols" |
| 95 | + |
| 96 | +### Listening to Responses |
| 97 | + |
| 98 | +Responses will be read aloud automatically (if `autoSynthesize` is enabled). You can also: |
| 99 | + |
| 100 | +- **Stop playback**: Press **ESC** or click the speaker icon |
| 101 | +- **Manual read-aloud**: Click the speaker icon next to any response to hear it read aloud again |
0 commit comments