@ai-matrx/media 0.6.67 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @ai-matrx/media
2
2
 
3
+ ## 0.7.1
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/media/v0.7.0..npm/media/v0.7.1 -- apps/shared/media`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.7.0
10
+
11
+ - **Live TTS playback is a package capability** — new entries `./live-audio` (framework-agnostic) and `./live-audio-react`. Moved verbatim from matrx-frontend (`features/audio/streamingPcmPlayer.ts`, `streamingMp3Player.ts`, the podcast `LiveAudioPlayer`, and `useStudioRun`'s chunk handling) so every client plays `audio_stream_chunk` / `audio_stream_end` identically:
12
+ - `createStreamingPcmPlayer` (Web Audio, s16le) and `createStreamingMp3Player` (MediaSource) behind one `StreamingAudioPlayer` interface;
13
+ - `createLiveAudioController` — picks the codec from the chunk metadata, enforces one `stream_id` and a gap-free `seq`, DROPS loudly on any violation (the saved file takes over), hands the end event (`url` / `cdn_url` / `file_id`) to `onEnd`; `reset()` for a resume / rejoin replay; `takeLiveAudioHandoff` pauses the live player and returns the position for the saved-file player;
14
+ - `createLiveAudioRegistry` — one controller per key for concurrent streams (workflow steps);
15
+ - `createMediaFrameAssembler` — reassembles a workflow run's `node_stream` `kind: "media"` frames (group by `frame_id`, join by `frame_index`, order by first-frame `stream_seq` per step, drop incomplete sets) into the exact `/chat` `data` payloads;
16
+ - React: `useLiveAudio`, `useLiveAudioPlayer(registry, key)`, `LiveAudioPlayer` (own inlined Play/Pause glyphs — C19).
17
+ - Guards: `src/live-audio/controller.test.ts`, `media-frames.test.ts`, `mp3-player.test.ts`, `react/live-audio-player.test.tsx`.
18
+ - Consumer action: delete app copies of the PCM/MP3 players and live-audio handling and import from `@ai-matrx/media/live-audio` / `live-audio-react`; Tailwind hosts already registering this package as a source need nothing else.
19
+
20
+ ## 0.6.68
21
+
22
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
23
+ `git diff npm/media/v0.6.67..npm/media/v0.6.68 -- apps/shared/media`).
24
+ No source changes intended and no consumer action required.
25
+
3
26
  ## 0.6.67
4
27
 
5
28
  Automatic changed-only republish (docs/metadata drift since the last tag — see