vivox-sdk-node 1.1.1 → 1.2.0

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 (3) hide show
  1. package/README.md +36 -0
  2. package/binding.gyp +4 -4
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -86,6 +86,42 @@ vivox.injectAudio(accountHandle, "path/to/audio.wav");
86
86
  - `npm run compile`: Recompile the TypeScript wrapper.
87
87
  - `npm test`: Run the standard connection example.
88
88
 
89
+ ## Troubleshooting
90
+
91
+ ### `gyp ERR! find VS Failure details: undefined`
92
+ This is the most common error. Even if you have Visual Studio installed, you **MUST** ensure the following workload is selected in the Visual Studio Installer:
93
+
94
+ 1. Open **Visual Studio Installer**.
95
+ 2. Click **Modify** on your installed version.
96
+ 3. Under the "Workloads" tab, check **Desktop development with C++**.
97
+ 4. Ensure **MSVC v143 - VS 2022 C++ x64/x86 build tools** (or newer) is checked on the right side.
98
+ 5. Click **Modify** to install.
99
+
100
+ Without this workload, `node-gyp` will not recognize your Visual Studio installation.
101
+
102
+ ### Manually Set VS Version
103
+ If you have multiple versions or the error persists, pass the version directly:
104
+ ```bash
105
+ # Replace 2022 with your installed VS version (e.g., 2019, 2022, 2026)
106
+ npm install vivox-sdk-node --msvs_version=2022
107
+ ```
108
+ Alternatively, set the environment variable:
109
+ ```powershell
110
+ # PowerShell
111
+ $env:GYP_MSVS_VERSION="2022"
112
+ npm install vivox-sdk-node
113
+ ```
114
+ ```cmd
115
+ # Windows CMD
116
+ set GYP_MSVS_VERSION=2022
117
+ npm install vivox-sdk-node
118
+ ```
119
+
120
+ 3. **Check Python:** Ensure Python 3.x is installed and added to your PATH.
121
+
122
+ ### `module not found` after installation
123
+ If you see an error about the native module not being found, ensure you have run `npm install` inside the project to trigger the native build process.
124
+
89
125
  ## License
90
126
 
91
127
  This project is licensed under the MIT License.
package/binding.gyp CHANGED
@@ -32,20 +32,20 @@
32
32
  ]
33
33
  }],
34
34
  ['target_arch=="ia32"', {
35
- "libraries": [ "<(module_root_dir)/../SDK/Libraries/Release/Win32/vivoxsdk.lib" ],
35
+ "libraries": [ "<(module_root_dir)/vivox_sdk/lib/vivoxsdk.lib" ],
36
36
  "copies": [
37
37
  {
38
38
  "destination": "<(PRODUCT_DIR)",
39
- "files": [ "<(module_root_dir)/../SDK/Libraries/Release/Win32/vivoxsdk.dll" ]
39
+ "files": [ "<(module_root_dir)/vivox_sdk/lib/vivoxsdk.dll" ]
40
40
  }
41
41
  ]
42
42
  }],
43
43
  ['target_arch=="arm64"', {
44
- "libraries": [ "<(module_root_dir)/../SDK/Libraries/Release/arm64/vivoxsdk.lib" ],
44
+ "libraries": [ "<(module_root_dir)/vivox_sdk/lib/vivoxsdk.lib" ],
45
45
  "copies": [
46
46
  {
47
47
  "destination": "<(PRODUCT_DIR)",
48
- "files": [ "<(module_root_dir)/../SDK/Libraries/Release/arm64/vivoxsdk.dll" ]
48
+ "files": [ "<(module_root_dir)/vivox_sdk/lib/vivoxsdk.dll" ]
49
49
  }
50
50
  ]
51
51
  }]
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "vivox-sdk-node",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "High-performance, type-safe Node.js wrapper for the Vivox SDK.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
8
- "install": "node-gyp rebuild",
9
- "build": "node-gyp rebuild",
8
+ "install": "npx node-gyp rebuild",
9
+ "build": "npx node-gyp rebuild",
10
10
  "test": "node example.js",
11
11
  "compile": "npx tsc"
12
12
  },