scrypted-tuya 2.1.4 → 2.1.6

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,11 +1,16 @@
1
1
  # Changelog
2
2
 
3
- ## 2.1.4
3
+ ## 2.1.6
4
+
5
+ - Small fixes
6
+
7
+ ## 2.1.5
4
8
 
5
9
  - **Talkback Zero-Latency Audio Push (`-flush_packets 1`)**:
6
10
  - Added `-flush_packets 1` to the talkback FFmpeg process in `camera.ts`, ensuring FLV audio packets are flushed over TCP to the RTMP endpoint immediately without waiting for output buffer thresholds.
7
- - **Tuya Camera Bridge 2.1.2 Integration**:
8
- - Upgraded embedded Bridge transcoder with optimized x264 parameters (`no-deblock=1`, `aq-mode=0`, bounded CRF/bitrate, and `-threads 2`), reducing constant background CPU utilization by up to ~40%.
11
+ - **Tuya Camera Bridge 2.1.4 Integration**:
12
+ - **Camera Inbound Mic Audio**: Sent explicit `{"type":"start","msg":"audio"}` on the `fmp4Stream` DataChannel and restored bidirectional audio track reception in `tuya-streamer`, enabling live microphone audio from the camera.
13
+ - **Transcoder CPU Optimization**: Upgraded embedded Bridge transcoder with optimized x264 parameters (`no-deblock=1`, `aq-mode=0`, bounded CRF/bitrate, and `-threads 2`), reducing constant background CPU utilization by up to ~40%.
9
14
 
10
15
  ## 2.1.3
11
16
 
@@ -28,7 +33,6 @@
28
33
  - Changed FFmpeg log level from `error` to `warning` so talkback failures are now visible in Scrypted device logs.
29
34
  - Added diagnostic log lines: incoming `mimeType`, resolved RTMP target URL, and full FFmpeg argument list for easier future debugging.
30
35
 
31
-
32
36
  > [!WARNING]
33
37
  > ⚠️ **Experimental Feature / Work in Progress**:
34
38
  > Two-Way Audio (Talkback / Intercom) is currently in active development and considered experimental. While the complete end-to-end streaming architecture (WebRTC / RTMP) and 8 kHz / 40 ms timing synchronization are implemented, the audio delivered to the camera speaker may still sound distorted or robotic on various Tuya hardware DAC implementations and has not yet been fully resolved.
package/dist/plugin.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
1
  {
2
- "name": "scrypted-tuya",
3
- "scripts": {
4
- "scrypted-setup-project": "scrypted-setup-project",
5
- "prescrypted-setup-project": "scrypted-package-json",
6
- "build": "scrypted-webpack",
7
- "typecheck": "tsc --noEmit",
8
- "prepublishOnly": "WEBPACK_DEVTOOL=nosources-source-map NODE_ENV=production scrypted-webpack",
9
- "prescrypted-vscode-launch": "WEBPACK_DEVTOOL=nosources-source-map scrypted-webpack",
10
- "scrypted-vscode-launch": "scrypted-deploy-debug",
11
- "scrypted-deploy-debug": "scrypted-deploy-debug",
12
- "scrypted-debug": "scrypted-debug",
13
- "scrypted-deploy": "scrypted-deploy",
14
- "scrypted-changelog": "scrypted-changelog",
15
- "scrypted-package-json": "scrypted-package-json",
16
- "scrypted-readme": "scrypted-readme",
17
- "audio:talkback": "npx tsx scripts/audio/talkback-sample.ts"
18
- },
19
- "keywords": [
20
- "scrypted",
21
- "plugin",
22
- "tuya",
23
- "camera"
24
- ],
25
- "scrypted": {
26
- "name": "Tuya Plugin",
27
- "type": "DeviceProvider",
28
- "interfaces": [
29
- "DeviceProvider",
30
- "Settings"
31
- ]
32
- },
33
- "dependencies": {
34
- "@scrypted/sdk": "^0.3.88",
35
- "axios": "^1.8.4",
36
- "mqtt": "^5.10.4",
37
- "qrcode-svg": "^1.1.0"
38
- },
39
- "devDependencies": {
40
- "@types/node": "^22.10.2",
41
- "@types/qrcode": "^1.5.5",
42
- "@types/qrcode-svg": "^1.1.5",
43
- "@types/ws": "^8.18.0"
44
- },
45
- "version": "2.1.4",
46
- "packageManager": "npm@10.9.2+sha512.8ab88f10f224a0c614cb717a7f7c30499014f77134120e9c1f0211ea3cf3397592cbe483feb38e0c4b3be1c54e347292c76a1b5edb94a3289d5448484ab8ac81",
47
- "description": "Unofficial standalone Scrypted Tuya plugin with maximum advertised camera quality selection and Smart Life P2P bridge integration.",
48
- "repository": {
49
- "type": "git",
50
- "url": "git+https://github.com/resonaura/scrypted-tuya.git"
51
- },
52
- "homepage": "https://github.com/resonaura/scrypted-tuya#readme",
53
- "bugs": {
54
- "url": "https://github.com/resonaura/scrypted-tuya/issues"
55
- },
56
- "publishConfig": {
57
- "access": "public"
58
- }
2
+ "name": "scrypted-tuya",
3
+ "scripts": {
4
+ "scrypted-setup-project": "scrypted-setup-project",
5
+ "prescrypted-setup-project": "scrypted-package-json",
6
+ "build": "scrypted-webpack",
7
+ "typecheck": "tsc --noEmit",
8
+ "prepublishOnly": "WEBPACK_DEVTOOL=nosources-source-map NODE_ENV=production scrypted-webpack",
9
+ "prescrypted-vscode-launch": "WEBPACK_DEVTOOL=nosources-source-map scrypted-webpack",
10
+ "scrypted-vscode-launch": "scrypted-deploy-debug",
11
+ "scrypted-deploy-debug": "scrypted-deploy-debug",
12
+ "scrypted-debug": "scrypted-debug",
13
+ "scrypted-deploy": "scrypted-deploy",
14
+ "scrypted-changelog": "scrypted-changelog",
15
+ "scrypted-package-json": "scrypted-package-json",
16
+ "scrypted-readme": "scrypted-readme",
17
+ "audio:talkback": "npx tsx scripts/audio/talkback-sample.ts"
18
+ },
19
+ "keywords": [
20
+ "scrypted",
21
+ "plugin",
22
+ "tuya",
23
+ "camera"
24
+ ],
25
+ "scrypted": {
26
+ "name": "Tuya Plugin",
27
+ "type": "DeviceProvider",
28
+ "interfaces": [
29
+ "DeviceProvider",
30
+ "Settings"
31
+ ]
32
+ },
33
+ "dependencies": {
34
+ "@scrypted/sdk": "^0.3.88",
35
+ "axios": "^1.8.4",
36
+ "mqtt": "^5.10.4",
37
+ "qrcode-svg": "^1.1.0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/node": "^22.10.2",
41
+ "@types/qrcode": "^1.5.5",
42
+ "@types/qrcode-svg": "^1.1.5",
43
+ "@types/ws": "^8.18.0"
44
+ },
45
+ "version": "2.1.6",
46
+ "packageManager": "npm@10.9.2+sha512.8ab88f10f224a0c614cb717a7f7c30499014f77134120e9c1f0211ea3cf3397592cbe483feb38e0c4b3be1c54e347292c76a1b5edb94a3289d5448484ab8ac81",
47
+ "description": "Unofficial standalone Scrypted Tuya plugin with maximum advertised camera quality selection and Smart Life P2P bridge integration.",
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/resonaura/scrypted-tuya.git"
51
+ },
52
+ "homepage": "https://github.com/resonaura/scrypted-tuya#readme",
53
+ "bugs": {
54
+ "url": "https://github.com/resonaura/scrypted-tuya/issues"
55
+ },
56
+ "publishConfig": {
57
+ "access": "public"
58
+ }
59
59
  }