ggerganov/whisper.cpp

iOS Swift help needed with customising the parameters for the model

sahmed53 opened this issue · 1 comments

Hi,

I have a question regarding running it on a iOS iphone App, the swiftUI code works well but i have a few questions (i have never run a mix of swift and c++ code before so im a bit lost!), and hopefully these are not silly questions

  1. I was wondering if it is possible to run the code with extra options like you can when you run it via the command line on the mac e.g. -osrt for a srt file output? if you can where would these files be saved/stored?

  2. when running the swiftui app, the console logs the outputs in realtime, how could i expose these realtime outputs so i can print them out on the UI?

Thank you so much for the excellent work on this project!

i found a solution to the callbacks if it helps anyone else -> there is a swift package called WhisperKit which uses callbacks, you just need to set up the callbacks before starting transcription and then set up the delegates to pass the transcribed text back to the viewcontroller: this is the original code which shows how to do it (or just use their package!)
https://github.com/exPHAT/SwiftWhisper. thanks to @exPHAT !