]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
examples : use xcframework in whisper.objc example (#2882)
authorDaniel Bevenius <redacted>
Mon, 17 Mar 2025 12:01:24 +0000 (13:01 +0100)
committerGitHub <redacted>
Mon, 17 Mar 2025 12:01:24 +0000 (13:01 +0100)
commit83b14c357c71b68cd489fb7b555767eec1a30a01
tree89cefcb5575e04d99ce161648e4a3e173f84844e
parent60b481d881989cc355751b733d36e838dfb69de1
examples : use xcframework in whisper.objc example (#2882)

* examples : use xcframework in whisper.objc example

This commit updates the whisper.objc example to use the xcframework.

The motivation for this to be consistent with the swift example and to
also act as a reference for how to use the xcframework in an objc
project.

Resolves: https://github.com/ggerganov/whisper.cpp/issues/2881

* examples : setup audio session viewDidload

This commit adds the setup of the audio session in the viewDidload
method of the ViewController.m file. This is necessary to allow the app
to record audio.

The motivation for this is that without this it was not possible to
caputue audio from the microphone. It was possible to click on the
Capture button but nothing happened after that, and the button was not
marked red indicating that the button could be clicked again to stop
capturing. With this change it is possible to capture audio from the
microphone and get it transcribed.
examples/whisper.objc/whisper.objc.xcodeproj/project.pbxproj
examples/whisper.objc/whisper.objc/ViewController.m