react-native-wakeword 1.0.31 → 1.0.34

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 (12) hide show
  1. package/ios/KeyWordDetection.xcframework/Info.plist +5 -5
  2. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
  3. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  4. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +16 -16
  5. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
  6. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  7. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  8. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +16 -16
  9. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +16 -16
  10. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +12 -12
  11. package/package.json +4 -2
  12. package/wakewords/useModel.tsx +10 -1
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>KeyWordDetection.framework/KeyWordDetection</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>KeyWordDetection.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
+ <string>x86_64</string>
17
18
  </array>
18
19
  <key>SupportedPlatform</key>
19
20
  <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
20
23
  </dict>
21
24
  <dict>
22
25
  <key>BinaryPath</key>
23
26
  <string>KeyWordDetection.framework/KeyWordDetection</string>
24
27
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
28
+ <string>ios-arm64</string>
26
29
  <key>LibraryPath</key>
27
30
  <string>KeyWordDetection.framework</string>
28
31
  <key>SupportedArchitectures</key>
29
32
  <array>
30
33
  <string>arm64</string>
31
- <string>x86_64</string>
32
34
  </array>
33
35
  <key>SupportedPlatform</key>
34
36
  <string>ios</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -1270,112 +1270,112 @@
1270
1270
  {
1271
1271
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1272
1272
  "kind": "IntegerLiteral",
1273
- "offset": 7040,
1273
+ "offset": 7074,
1274
1274
  "length": 2,
1275
1275
  "value": "30"
1276
1276
  },
1277
1277
  {
1278
1278
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1279
1279
  "kind": "BooleanLiteral",
1280
- "offset": 7235,
1280
+ "offset": 7269,
1281
1281
  "length": 5,
1282
1282
  "value": "false"
1283
1283
  },
1284
1284
  {
1285
1285
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1286
1286
  "kind": "IntegerLiteral",
1287
- "offset": 7386,
1287
+ "offset": 7420,
1288
1288
  "length": 1,
1289
1289
  "value": "0"
1290
1290
  },
1291
1291
  {
1292
1292
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1293
1293
  "kind": "IntegerLiteral",
1294
- "offset": 7527,
1294
+ "offset": 7561,
1295
1295
  "length": 2,
1296
1296
  "value": "10"
1297
1297
  },
1298
1298
  {
1299
1299
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1300
1300
  "kind": "IntegerLiteral",
1301
- "offset": 7532,
1301
+ "offset": 7566,
1302
1302
  "length": 2,
1303
1303
  "value": "97"
1304
1304
  },
1305
1305
  {
1306
1306
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1307
1307
  "kind": "IntegerLiteral",
1308
- "offset": 7566,
1308
+ "offset": 7600,
1309
1309
  "length": 4,
1310
1310
  "value": "1280"
1311
1311
  },
1312
1312
  {
1313
1313
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1314
1314
  "kind": "IntegerLiteral",
1315
- "offset": 7608,
1315
+ "offset": 7642,
1316
1316
  "length": 5,
1317
1317
  "value": "16000"
1318
1318
  },
1319
1319
  {
1320
1320
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1321
1321
  "kind": "IntegerLiteral",
1322
- "offset": 7665,
1322
+ "offset": 7699,
1323
1323
  "length": 2,
1324
1324
  "value": "10"
1325
1325
  },
1326
1326
  {
1327
1327
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1328
1328
  "kind": "IntegerLiteral",
1329
- "offset": 7747,
1329
+ "offset": 7781,
1330
1330
  "length": 2,
1331
1331
  "value": "80"
1332
1332
  },
1333
1333
  {
1334
1334
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1335
1335
  "kind": "IntegerLiteral",
1336
- "offset": 7783,
1336
+ "offset": 7817,
1337
1337
  "length": 2,
1338
1338
  "value": "16"
1339
1339
  },
1340
1340
  {
1341
1341
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1342
1342
  "kind": "BooleanLiteral",
1343
- "offset": 7815,
1343
+ "offset": 7849,
1344
1344
  "length": 5,
1345
1345
  "value": "false"
1346
1346
  },
1347
1347
  {
1348
1348
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1349
1349
  "kind": "IntegerLiteral",
1350
- "offset": 8265,
1350
+ "offset": 8299,
1351
1351
  "length": 2,
1352
1352
  "value": "10"
1353
1353
  },
1354
1354
  {
1355
1355
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1356
1356
  "kind": "IntegerLiteral",
1357
- "offset": 8322,
1357
+ "offset": 8356,
1358
1358
  "length": 1,
1359
1359
  "value": "0"
1360
1360
  },
1361
1361
  {
1362
1362
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1363
1363
  "kind": "IntegerLiteral",
1364
- "offset": 8368,
1364
+ "offset": 8402,
1365
1365
  "length": 1,
1366
1366
  "value": "0"
1367
1367
  },
1368
1368
  {
1369
1369
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1370
1370
  "kind": "IntegerLiteral",
1371
- "offset": 8453,
1371
+ "offset": 8487,
1372
1372
  "length": 4,
1373
1373
  "value": "5000"
1374
1374
  },
1375
1375
  {
1376
1376
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1377
1377
  "kind": "StringLiteral",
1378
- "offset": 6596,
1378
+ "offset": 6598,
1379
1379
  "length": 17,
1380
1380
  "value": "\"KeyWordDetection.KeyWordsDetection\""
1381
1381
  },
@@ -1270,112 +1270,112 @@
1270
1270
  {
1271
1271
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1272
1272
  "kind": "IntegerLiteral",
1273
- "offset": 7040,
1273
+ "offset": 7074,
1274
1274
  "length": 2,
1275
1275
  "value": "30"
1276
1276
  },
1277
1277
  {
1278
1278
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1279
1279
  "kind": "BooleanLiteral",
1280
- "offset": 7235,
1280
+ "offset": 7269,
1281
1281
  "length": 5,
1282
1282
  "value": "false"
1283
1283
  },
1284
1284
  {
1285
1285
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1286
1286
  "kind": "IntegerLiteral",
1287
- "offset": 7386,
1287
+ "offset": 7420,
1288
1288
  "length": 1,
1289
1289
  "value": "0"
1290
1290
  },
1291
1291
  {
1292
1292
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1293
1293
  "kind": "IntegerLiteral",
1294
- "offset": 7527,
1294
+ "offset": 7561,
1295
1295
  "length": 2,
1296
1296
  "value": "10"
1297
1297
  },
1298
1298
  {
1299
1299
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1300
1300
  "kind": "IntegerLiteral",
1301
- "offset": 7532,
1301
+ "offset": 7566,
1302
1302
  "length": 2,
1303
1303
  "value": "97"
1304
1304
  },
1305
1305
  {
1306
1306
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1307
1307
  "kind": "IntegerLiteral",
1308
- "offset": 7566,
1308
+ "offset": 7600,
1309
1309
  "length": 4,
1310
1310
  "value": "1280"
1311
1311
  },
1312
1312
  {
1313
1313
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1314
1314
  "kind": "IntegerLiteral",
1315
- "offset": 7608,
1315
+ "offset": 7642,
1316
1316
  "length": 5,
1317
1317
  "value": "16000"
1318
1318
  },
1319
1319
  {
1320
1320
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1321
1321
  "kind": "IntegerLiteral",
1322
- "offset": 7665,
1322
+ "offset": 7699,
1323
1323
  "length": 2,
1324
1324
  "value": "10"
1325
1325
  },
1326
1326
  {
1327
1327
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1328
1328
  "kind": "IntegerLiteral",
1329
- "offset": 7747,
1329
+ "offset": 7781,
1330
1330
  "length": 2,
1331
1331
  "value": "80"
1332
1332
  },
1333
1333
  {
1334
1334
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1335
1335
  "kind": "IntegerLiteral",
1336
- "offset": 7783,
1336
+ "offset": 7817,
1337
1337
  "length": 2,
1338
1338
  "value": "16"
1339
1339
  },
1340
1340
  {
1341
1341
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1342
1342
  "kind": "BooleanLiteral",
1343
- "offset": 7815,
1343
+ "offset": 7849,
1344
1344
  "length": 5,
1345
1345
  "value": "false"
1346
1346
  },
1347
1347
  {
1348
1348
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1349
1349
  "kind": "IntegerLiteral",
1350
- "offset": 8265,
1350
+ "offset": 8299,
1351
1351
  "length": 2,
1352
1352
  "value": "10"
1353
1353
  },
1354
1354
  {
1355
1355
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1356
1356
  "kind": "IntegerLiteral",
1357
- "offset": 8322,
1357
+ "offset": 8356,
1358
1358
  "length": 1,
1359
1359
  "value": "0"
1360
1360
  },
1361
1361
  {
1362
1362
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1363
1363
  "kind": "IntegerLiteral",
1364
- "offset": 8368,
1364
+ "offset": 8402,
1365
1365
  "length": 1,
1366
1366
  "value": "0"
1367
1367
  },
1368
1368
  {
1369
1369
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1370
1370
  "kind": "IntegerLiteral",
1371
- "offset": 8453,
1371
+ "offset": 8487,
1372
1372
  "length": 4,
1373
1373
  "value": "5000"
1374
1374
  },
1375
1375
  {
1376
1376
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1377
1377
  "kind": "StringLiteral",
1378
- "offset": 6596,
1378
+ "offset": 6598,
1379
1379
  "length": 17,
1380
1380
  "value": "\"KeyWordDetection.KeyWordsDetection\""
1381
1381
  },
@@ -1270,112 +1270,112 @@
1270
1270
  {
1271
1271
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1272
1272
  "kind": "IntegerLiteral",
1273
- "offset": 7040,
1273
+ "offset": 7074,
1274
1274
  "length": 2,
1275
1275
  "value": "30"
1276
1276
  },
1277
1277
  {
1278
1278
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1279
1279
  "kind": "BooleanLiteral",
1280
- "offset": 7235,
1280
+ "offset": 7269,
1281
1281
  "length": 5,
1282
1282
  "value": "false"
1283
1283
  },
1284
1284
  {
1285
1285
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1286
1286
  "kind": "IntegerLiteral",
1287
- "offset": 7386,
1287
+ "offset": 7420,
1288
1288
  "length": 1,
1289
1289
  "value": "0"
1290
1290
  },
1291
1291
  {
1292
1292
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1293
1293
  "kind": "IntegerLiteral",
1294
- "offset": 7527,
1294
+ "offset": 7561,
1295
1295
  "length": 2,
1296
1296
  "value": "10"
1297
1297
  },
1298
1298
  {
1299
1299
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1300
1300
  "kind": "IntegerLiteral",
1301
- "offset": 7532,
1301
+ "offset": 7566,
1302
1302
  "length": 2,
1303
1303
  "value": "97"
1304
1304
  },
1305
1305
  {
1306
1306
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1307
1307
  "kind": "IntegerLiteral",
1308
- "offset": 7566,
1308
+ "offset": 7600,
1309
1309
  "length": 4,
1310
1310
  "value": "1280"
1311
1311
  },
1312
1312
  {
1313
1313
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1314
1314
  "kind": "IntegerLiteral",
1315
- "offset": 7608,
1315
+ "offset": 7642,
1316
1316
  "length": 5,
1317
1317
  "value": "16000"
1318
1318
  },
1319
1319
  {
1320
1320
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1321
1321
  "kind": "IntegerLiteral",
1322
- "offset": 7665,
1322
+ "offset": 7699,
1323
1323
  "length": 2,
1324
1324
  "value": "10"
1325
1325
  },
1326
1326
  {
1327
1327
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1328
1328
  "kind": "IntegerLiteral",
1329
- "offset": 7747,
1329
+ "offset": 7781,
1330
1330
  "length": 2,
1331
1331
  "value": "80"
1332
1332
  },
1333
1333
  {
1334
1334
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1335
1335
  "kind": "IntegerLiteral",
1336
- "offset": 7783,
1336
+ "offset": 7817,
1337
1337
  "length": 2,
1338
1338
  "value": "16"
1339
1339
  },
1340
1340
  {
1341
1341
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1342
1342
  "kind": "BooleanLiteral",
1343
- "offset": 7815,
1343
+ "offset": 7849,
1344
1344
  "length": 5,
1345
1345
  "value": "false"
1346
1346
  },
1347
1347
  {
1348
1348
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1349
1349
  "kind": "IntegerLiteral",
1350
- "offset": 8265,
1350
+ "offset": 8299,
1351
1351
  "length": 2,
1352
1352
  "value": "10"
1353
1353
  },
1354
1354
  {
1355
1355
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1356
1356
  "kind": "IntegerLiteral",
1357
- "offset": 8322,
1357
+ "offset": 8356,
1358
1358
  "length": 1,
1359
1359
  "value": "0"
1360
1360
  },
1361
1361
  {
1362
1362
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1363
1363
  "kind": "IntegerLiteral",
1364
- "offset": 8368,
1364
+ "offset": 8402,
1365
1365
  "length": 1,
1366
1366
  "value": "0"
1367
1367
  },
1368
1368
  {
1369
1369
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1370
1370
  "kind": "IntegerLiteral",
1371
- "offset": 8453,
1371
+ "offset": 8487,
1372
1372
  "length": 4,
1373
1373
  "value": "5000"
1374
1374
  },
1375
1375
  {
1376
1376
  "filePath": "\/Users\/oferfryman\/projects\/VAD_WAKEWORD_FILES\/wakewords\/KeyWordLibraryIOS3\/Sources\/KeyWordsDetection.swift",
1377
1377
  "kind": "StringLiteral",
1378
- "offset": 6596,
1378
+ "offset": 6598,
1379
1379
  "length": 17,
1380
1380
  "value": "\"KeyWordDetection.KeyWordsDetection\""
1381
1381
  },
@@ -18,15 +18,15 @@
18
18
  </data>
19
19
  <key>Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
20
20
  <data>
21
- afEyORsIFY5dRRvfZZuVi0ddYr4=
21
+ Zv5AmDM3rpsPu2znjl7GjLdMi6Y=
22
22
  </data>
23
23
  <key>Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
24
24
  <data>
25
- VAyI96jCLp7lB+Ed6wI2jibqzQs=
25
+ BkLi7ih0oDY0YYZEXXPQ8pDoxEA=
26
26
  </data>
27
27
  <key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
28
28
  <data>
29
- 91smI5AwCNcHAuSlWCWRVLPMXQk=
29
+ 75VEWGvejJ045KuNhqkuksPiw1E=
30
30
  </data>
31
31
  <key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
32
32
  <data>
@@ -42,11 +42,11 @@
42
42
  </data>
43
43
  <key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
44
44
  <data>
45
- NyahGMryOebHPQqiGJx6J/IACUg=
45
+ onuLSmJrkDDoZREL3bTFDuy65nU=
46
46
  </data>
47
47
  <key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
48
48
  <data>
49
- 91smI5AwCNcHAuSlWCWRVLPMXQk=
49
+ 75VEWGvejJ045KuNhqkuksPiw1E=
50
50
  </data>
51
51
  <key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
52
52
  <data>
@@ -62,7 +62,7 @@
62
62
  </data>
63
63
  <key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
64
64
  <data>
65
- 3Eq/CO4OYicW+ER025O/RVHNgDE=
65
+ Fb0xk8WZNe5XdAwSzXjbBIZX3ow=
66
66
  </data>
67
67
  <key>Modules/module.modulemap</key>
68
68
  <data>
@@ -89,21 +89,21 @@
89
89
  <dict>
90
90
  <key>hash2</key>
91
91
  <data>
92
- YjES00DOg75S9PuoQa+Hfwr8taq0hib+335+ZI6ZHaU=
92
+ /a5iioyIG3yks0MtgHjaTRWqnlVe2xZS4qi0pTTmvkQ=
93
93
  </data>
94
94
  </dict>
95
95
  <key>Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
96
96
  <dict>
97
97
  <key>hash2</key>
98
98
  <data>
99
- NaG+Xe0dtGM/cIQ3JZiua8eHMag9GSZAK0/kpzkLe24=
99
+ 59/ugv4y4qjM7X/X5nLAt5I3pm38E4+6wyOjDjaOZgQ=
100
100
  </data>
101
101
  </dict>
102
102
  <key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
103
103
  <dict>
104
104
  <key>hash2</key>
105
105
  <data>
106
- 0Hpf7usPc6wG36yGigo/SFWbEa+O/M0H+lWncIb5+CM=
106
+ VmiuNORklZfo8ymz2qK00ehtZZG7t6SFd3Fm3TlwB6Q=
107
107
  </data>
108
108
  </dict>
109
109
  <key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
@@ -131,14 +131,14 @@
131
131
  <dict>
132
132
  <key>hash2</key>
133
133
  <data>
134
- juxhBLFcl7T5dCoa5L01Dd+45RZ0rzLSwl3AsQ+02UI=
134
+ 5jh6sD0HnjWgC2HVW4TDkRVIeXPeznc+YBuQiM2pd/g=
135
135
  </data>
136
136
  </dict>
137
137
  <key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
138
138
  <dict>
139
139
  <key>hash2</key>
140
140
  <data>
141
- 0Hpf7usPc6wG36yGigo/SFWbEa+O/M0H+lWncIb5+CM=
141
+ VmiuNORklZfo8ymz2qK00ehtZZG7t6SFd3Fm3TlwB6Q=
142
142
  </data>
143
143
  </dict>
144
144
  <key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
@@ -166,7 +166,7 @@
166
166
  <dict>
167
167
  <key>hash2</key>
168
168
  <data>
169
- V4ukU49zk9cNHt9U0ONpXDEEPazn9MFxC3CGv9PR0mE=
169
+ 6kNbCfoOvFUMrNrT4qSIBMXxNfb4+DUmcDsAeN35Y4I=
170
170
  </data>
171
171
  </dict>
172
172
  <key>Modules/module.modulemap</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword",
3
- "version": "1.0.31",
3
+ "version": "1.0.34",
4
4
  "description": "Voice/Wake-word detection library for React Native",
5
5
  "main": "wakewords/index.js",
6
6
  "types": "wakewords/index.d.ts",
@@ -37,7 +37,9 @@
37
37
  "keyword spotting",
38
38
  "speech to intent",
39
39
  "voice to intent",
40
- "phrase spotting"
40
+ "phrase spotting",
41
+ "react native wake word",
42
+ "rn wake word"
41
43
  ],
42
44
  "author": "Davoice.io",
43
45
  "license": "MIT"
@@ -31,6 +31,14 @@ var instanceConfigs:instanceConfig[] = [
31
31
  { id: 'need_help_now', modelName: 'need_help_now.onnx', threshold: 0.9999, bufferCnt: 3 , sticky: false },
32
32
  ];
33
33
 
34
+ // Helper function to format the ONNX file name
35
+ const formatWakeWord = (fileName) => {
36
+ return fileName
37
+ .replace(/_/g, ' ') // Use global flag to replace all underscores
38
+ .replace('.onnx', '')
39
+ .replace(/\b\w/g, (char) => char.toUpperCase()); // Capitalize each word
40
+ };
41
+
34
42
  // Function to add a new instance dynamically
35
43
  //async function addInstance(
36
44
  // conf: instanceConfig)
@@ -63,9 +71,10 @@ async function addInstance(
63
71
  keyWordRNBridgeInstances.push({ id, instance });
64
72
  // Set up event listener
65
73
  instance.onKeywordDetectionEvent((phrase: string) => {
74
+ phrase = formatWakeWord(id);
66
75
  console.log(`Instance ${id} detected: ${id} with phrase`, phrase);
67
76
  // callback(phrase); Does not work on IOS
68
- callback(id);
77
+ callback(phrase);
69
78
  });
70
79
  console.log(`Instance ${id} calling startKeywordDetection()`);
71
80
  await instance.startKeywordDetection(conf.threshold);