whisper.rn 0.4.0-rc.4 → 0.4.0-rc.5

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 (40) hide show
  1. package/README.md +6 -6
  2. package/android/build.gradle +4 -0
  3. package/android/src/main/CMakeLists.txt +5 -0
  4. package/android/src/main/java/com/rnwhisper/AudioUtils.java +0 -80
  5. package/android/src/main/java/com/rnwhisper/WhisperContext.java +51 -133
  6. package/android/src/main/jni-utils.h +76 -0
  7. package/android/src/main/jni.cpp +187 -112
  8. package/cpp/README.md +1 -1
  9. package/cpp/coreml/whisper-encoder-impl.h +1 -1
  10. package/cpp/coreml/whisper-encoder.h +4 -0
  11. package/cpp/coreml/whisper-encoder.mm +4 -2
  12. package/cpp/ggml-alloc.c +55 -19
  13. package/cpp/ggml-alloc.h +7 -0
  14. package/cpp/ggml-backend-impl.h +46 -21
  15. package/cpp/ggml-backend.c +563 -156
  16. package/cpp/ggml-backend.h +62 -17
  17. package/cpp/ggml-impl.h +1 -1
  18. package/cpp/ggml-metal-whisper.metal +1010 -253
  19. package/cpp/ggml-metal.h +7 -1
  20. package/cpp/ggml-metal.m +618 -187
  21. package/cpp/ggml-quants.c +64 -59
  22. package/cpp/ggml-quants.h +40 -40
  23. package/cpp/ggml.c +751 -1466
  24. package/cpp/ggml.h +90 -25
  25. package/cpp/rn-audioutils.cpp +68 -0
  26. package/cpp/rn-audioutils.h +14 -0
  27. package/cpp/rn-whisper-log.h +11 -0
  28. package/cpp/rn-whisper.cpp +141 -59
  29. package/cpp/rn-whisper.h +47 -15
  30. package/cpp/whisper.cpp +1635 -928
  31. package/cpp/whisper.h +55 -10
  32. package/ios/RNWhisper.mm +7 -7
  33. package/ios/RNWhisperAudioUtils.h +0 -2
  34. package/ios/RNWhisperAudioUtils.m +0 -56
  35. package/ios/RNWhisperContext.h +3 -11
  36. package/ios/RNWhisperContext.mm +62 -134
  37. package/lib/commonjs/version.json +1 -1
  38. package/lib/module/version.json +1 -1
  39. package/package.json +6 -5
  40. package/src/version.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whisper.rn",
3
- "version": "0.4.0-rc.4",
3
+ "version": "0.4.0-rc.5",
4
4
  "description": "React Native binding of whisper.cpp",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -61,18 +61,19 @@
61
61
  "@fugood/eslint-config-react": "^0.5.0",
62
62
  "@release-it/conventional-changelog": "^5.0.0",
63
63
  "@types/jest": "^29.4.4",
64
- "@types/react": "~17.0.21",
64
+ "@types/react": "^18.2.6",
65
65
  "@types/react-native": "0.70.0",
66
66
  "@typescript-eslint/eslint-plugin": "^5.55.0",
67
67
  "@typescript-eslint/parser": "^5.55.0",
68
+ "@react-native/babel-preset": "^0.73.18",
69
+ "@react-native/metro-config": "^0.73.2",
68
70
  "commitlint": "^17.0.2",
69
71
  "del-cli": "^5.0.0",
70
72
  "eslint": "^8.36.0",
71
73
  "jest": "^29.5.0",
72
- "metro-react-native-babel-preset": "0.73.8",
73
74
  "pod-install": "^0.1.38",
74
75
  "react": "18.2.0",
75
- "react-native": "0.71.4",
76
+ "react-native": "0.73.0",
76
77
  "react-native-builder-bob": "^0.20.4",
77
78
  "release-it": "^15.8.0",
78
79
  "typedoc": "^0.24.7",
@@ -87,7 +88,7 @@
87
88
  "react-native": "*"
88
89
  },
89
90
  "engines": {
90
- "node": ">= 16.0.0"
91
+ "node": ">=18"
91
92
  },
92
93
  "jest": {
93
94
  "preset": "react-native",
package/src/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"1.4.3"}
1
+ {"version":"1.5.1"}