This directory contains the extracted C++ source for whisper.cpp and scripts to build it for Android and iOS.
src/: Contains the C++ source code for whisper.output/: The destination for the compiled libraries.android/: Contains.aand.sofiles for different Android ABIs.ios/: Contains thewhisper.xcframeworkfor iOS.
build/: Temporary directory for build artifacts.CMakeLists.txt: The main CMake build configuration.build_android.sh: Script to build the Android libraries.build_ios.sh: Script to build the iOS XCFramework.
- The Android NDK must be installed.
- The
ANDROID_NDK_HOMEenvironment variable must be set to the path of your NDK installation.
- Xcode and its Command Line Tools must be installed.
-
Navigate to this directory:
cd whisper -
Make the scripts executable:
chmod +x build_android.sh chmod +x build_ios.sh
-
Run the desired build script:
-
For Android:
./build_android.sh
-
For iOS:
./build_ios.sh
-
The compiled libraries will be placed in the output directory. You can then take these artifacts and integrate them directly into your mobile applications.