Commit 0e04f03
authored
feat(audio): let moves carry non-wav sound files (#1220)
GStreamer playbin already sniffs content, so non-wav audio plays fine;
the only wav assumptions were in naming/lookup, not playback.
- recorded_move: dataset sidecar lookup tries all containers the daemon
can play (wav/mp3/ogg/oga/opus/flac/m4a/aac), wav winning ties, instead
of only .wav. This is what actually unblocks bundled non-wav moves.
- protocol: generalize UploadAudioStartCmd.encoding from wav-base64 to any
"<container>-base64"; wav-base64 stays the default so older clients are
unaffected.
- daemon: _handle_audio_finish derives the written extension from the
declared encoding instead of hard-coding .wav.
The TS SDK still sends encoding='wav-base64', so live uploads stay wav
until it's updated; this only widens what the daemon accepts.
Assisted-by: Claude:claude-opus-4-81 parent a0fcf67 commit 0e04f03
3 files changed
Lines changed: 28 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1633 | 1633 | | |
1634 | 1634 | | |
1635 | 1635 | | |
1636 | | - | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
1637 | 1639 | | |
1638 | 1640 | | |
1639 | 1641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
534 | 533 | | |
535 | 534 | | |
536 | 535 | | |
| |||
541 | 540 | | |
542 | 541 | | |
543 | 542 | | |
544 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
545 | 553 | | |
546 | 554 | | |
547 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| |||
0 commit comments