ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
34.65k stars 3.53k forks source link

Integrating Whisper.cpp with Swift for Speech Recognition on Apple M2 Chip. #1503

Open litongjava opened 10 months ago

litongjava commented 10 months ago

I want to develop a speech recognition software based on whisper.cpp to run on the Apple M2 chip. Can I still make use of whisper.cpp's support for the M2 chip if I use Swift to call C++?

colinator commented 10 months ago

Don't see why it wouldn't work. Swift can call objective-c. And here's an objective-c demo: https://github.com/ggerganov/whisper.cpp/tree/master/examples/whisper.objc