### Installing whisper-kit-expo via npm Source: https://github.com/seb-sep/whisper-kit-expo/blob/main/README.md Standard npm command to install the `whisper-kit-expo` package in a React Native project, which typically handles Expo module setup automatically. ```Shell npm install whisper-kit-expo ``` -------------------------------- ### Installing cocoapods-spm Gem Source: https://github.com/seb-sep/whisper-kit-expo/blob/main/README.md Command to install the `cocoapods-spm` Ruby gem, which is required to allow the WhisperKit Swift Package Manager dependency to interoperate with CocoaPods. ```Shell sudo gem install cocoapods-spm ``` -------------------------------- ### Running pod-install via npx Source: https://github.com/seb-sep/whisper-kit-expo/blob/main/README.md Executes the `pod-install` script using npx, typically run after installing npm packages to ensure CocoaPods dependencies are correctly linked. ```Shell npx pod-install ``` -------------------------------- ### Using TranscriberInitializer Component Source: https://github.com/seb-sep/whisper-kit-expo/blob/main/README.md Demonstrates wrapping the root component with `TranscriberInitializer` to automatically load the transcriber into memory when the component mounts. ```JSX ``` -------------------------------- ### Configuring Podfile for WhisperKit SPM Source: https://github.com/seb-sep/whisper-kit-expo/blob/main/README.md Adds the `cocoapods-spm` plugin and defines the WhisperKit Swift Package Manager dependency within the Podfile for integration with CocoaPods in the iOS project. ```Ruby ### START WHISPERKIT PLUGIN SCRIPT ### plugin "cocoapods-spm" spm_pkg "WhisperKit", :url => "https://github.com/argmaxinc/WhisperKit.git", :version => "0.6.0", :products => ["WhisperKit"] ### END WHISPERKIT PLUGIN SCRIPT ### ``` -------------------------------- ### Transcribing Audio File with whisper-kit-expo Source: https://github.com/seb-sep/whisper-kit-expo/blob/main/README.md Shows how to import the `transcribe` function and use it to process an audio file by providing its path or URI. This function requires the transcriber to be loaded beforehand. ```JavaScript import { transcribe } from 'whisper-kit-expo'; const transcription = await transcribe("path/to/your/audio.{wav,mp3,m4a,flac}") ``` -------------------------------- ### Adding .spm.pods to .gitignore Source: https://github.com/seb-sep/whisper-kit-expo/blob/main/README.md Specifies the `ios/.spm.pods` directory to be excluded from version control by adding it to the project's .gitignore file. ```Gitignore ios/.spm.pods ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.