@data-netmonk/mona-chat-widget 2.6.7 → 2.6.9

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.
Files changed (2) hide show
  1. package/README.md +24 -23
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -428,38 +428,39 @@ When this payload is available, the widget resolves MinIO object keys first for
428
428
  ```text
429
429
  body: <raw WAV or other audio binary>
430
430
  content-type: audio/wav
431
- x-tts-visemes-b64: W3siaWQiOiJNIiwic3RhcnRNcyI6MCwiZW5kTXMiOjEyMH1d
432
- x-tts-phonemes-b64: TSBBCg==
433
- x-tts-phoneme-timeline-b64: W3sicGhvbmVtZSI6Ik0iLCJzdGFydE1zIjowLCJlbmRNcyI6MTIwfV0=
431
+ x-tts-metadata-id: 7d8f6a0f0f684e97b7b8d8db67f4f3a1
432
+ x-tts-metadata-path: /tts/metadata/7d8f6a0f0f684e97b7b8d8db67f4f3a1
433
+ x-tts-duration-ms: 120
434
434
  ```
435
435
 
436
- `x-tts-phonemes-b64` is the legacy phoneme string, while `x-tts-phoneme-timeline-b64` is the timed phoneme timeline. The base64 headers should decode as:
437
-
438
- Decoded `x-tts-phonemes-b64`:
439
-
440
- ```text
441
- M A
442
- ```
443
-
444
- Decoded `x-tts-phoneme-timeline-b64`:
436
+ Metadata lengkap diambil dari endpoint metadata yang ditunjuk header tadi:
445
437
 
446
438
  ```json
447
- [
448
- { "phoneme": "M", "startMs": 0, "endMs": 120 }
449
- ]
439
+ GET /tts/metadata/7d8f6a0f0f684e97b7b8d8db67f4f3a1
440
+ {
441
+ "id": "7d8f6a0f0f684e97b7b8d8db67f4f3a1",
442
+ "phonemes": "M A",
443
+ "phoneme_timeline": [
444
+ { "phoneme": "M", "startMs": 0, "endMs": 120 }
445
+ ],
446
+ "visemes": [
447
+ { "id": "M", "startMs": 0, "endMs": 120 },
448
+ { "id": "A", "startMs": 121, "endMs": 260 },
449
+ { "id": "SZ", "startMs": 261, "endMs": 420 }
450
+ ],
451
+ "duration_ms": 420
452
+ }
450
453
  ```
451
454
 
452
- Decoded `x-tts-visemes-b64`:
455
+ Widget ini masih mendukung header base64 lama sebagai fallback:
453
456
 
454
- ```json
455
- [
456
- { "id": "M", "startMs": 0, "endMs": 120 },
457
- { "id": "A", "startMs": 121, "endMs": 260 },
458
- { "id": "SZ", "startMs": 261, "endMs": 420 }
459
- ]
457
+ ```text
458
+ x-tts-visemes-b64
459
+ x-tts-phonemes-b64
460
+ x-tts-phoneme-timeline-b64
460
461
  ```
461
462
 
462
- The widget still supports the older JSON body format as a fallback, but header-based metadata is now the preferred format for binary audio responses.
463
+ Widget juga masih mendukung format JSON body lama sebagai fallback, tetapi untuk audio binary format metadata endpoint di atas sekarang jadi jalur utama yang direkomendasikan.
463
464
 
464
465
  ---
465
466
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@data-netmonk/mona-chat-widget",
3
3
  "private": false,
4
- "version": "2.6.7",
4
+ "version": "2.6.9",
5
5
  "description": "Mona Chat Widget Component Library",
6
6
  "author": "Haziq Abiyyu Mahdy",
7
7
  "type": "module",