Commit 8503184
committed
feat: Send audioStreamEnd event for Google Live API when audio stops
- Add sendGoogleAudioStreamEnd() method to RealtimeSessionManager
- Call it when audio capture stops in RealtimeAudioInputManager
- This signals Google to flush buffered audio instead of waiting for more
- Improves responsiveness when microphone is muted or robot starts speaking1 parent adf7560 commit 8503184
2 files changed
Lines changed: 29 additions & 0 deletions
File tree
- app/src/main/java/ch/fhnw/pepper_realtime
- manager
- network
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
293 | 316 | | |
294 | 317 | | |
295 | 318 | | |
| |||
0 commit comments