You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ Most features should work with any AirPods. Currently, testing is only performed
25
25
## Key Features
26
26
27
27
-**Noise Control Modes**: Easily switch between noise control modes without having to reach out to your AirPods to long press
28
+
-**Google Assistant Integration**: Control your AirPods with voice commands like "Hey Google, turn on noise cancellation"
28
29
-**Ear Detection**: Controls your music automatically when you put your AirPods in or take them out, and switch to phone speaker when you take them out
29
30
-**Battery Status**: Accurate battery levels
30
31
-**Head Gestures**: Answer calls just by nodding your head
@@ -111,6 +112,29 @@ If you're unfamiliar with these steps, search for tutorials online or ask in And
111
112
112
113
- When renaming your AirPods through the app, you'll need to re-pair them with your phone for the name change to take effect. This is a limitation of how Bluetooth device naming works on Android.
113
114
115
+
## Google Assistant Integration
116
+
117
+
LibrePods supports voice control through Google Assistant shortcuts. You can control your AirPods using natural voice commands:
118
+
119
+
### Available Voice Commands
120
+
121
+
**Noise Control:**
122
+
- "Hey Google, turn on noise cancellation"
123
+
- "Hey Google, turn on transparency mode"
124
+
- "Hey Google, turn on adaptive transparency"
125
+
- "Hey Google, turn off noise control"
126
+
127
+
**Conversational Awareness:**
128
+
- "Hey Google, turn on conversational awareness"
129
+
- "Hey Google, turn off conversational awareness"
130
+
131
+
### Requirements
132
+
- LibrePods service must be running
133
+
- AirPods must be connected
134
+
- Google Assistant enabled on your device
135
+
136
+
For detailed setup and troubleshooting, see the [Google Assistant Shortcuts Guide](docs/google-assistant-shortcuts.md).
137
+
114
138
## Development Resources
115
139
116
140
For developers interested in the protocol details, check out the [AAP Definitions](/AAP%20Definitions.md) documentation.
-**"Hey Google, turn off noise control"** - Turns off noise control (off mode)
12
+
13
+
### Conversational Awareness
14
+
-**"Hey Google, turn on conversational awareness"** - Enables conversational awareness
15
+
-**"Hey Google, turn off conversational awareness"** - Disables conversational awareness
16
+
17
+
## Setup Requirements
18
+
19
+
1.**LibrePods Service Running**: The LibrePods service must be active
20
+
2.**AirPods Connected**: Your AirPods must be connected to the device
21
+
3.**Google Assistant**: Google Assistant must be enabled and configured on your device
22
+
23
+
## How It Works
24
+
25
+
When you use one of the voice commands:
26
+
27
+
1. Google Assistant recognizes the command and matches it to a LibrePods shortcut
28
+
2. The shortcut launches the `ShortcutHandlerActivity`
29
+
3. The activity communicates with the `AirPodsService` to send the appropriate command
30
+
4. Your AirPods change to the requested mode
31
+
5. A confirmation toast message is shown
32
+
33
+
## Technical Implementation
34
+
35
+
The shortcuts are implemented using Android's shortcut framework rather than Google Assistant App Actions, making them compatible with sideloaded apps that aren't on the Google Play Store.
36
+
37
+
### Files Involved:
38
+
-`res/xml/shortcuts.xml` - Defines the available shortcuts
0 commit comments