Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Swift help needed with customising the parameters for the model #2136

Open
sahmed53 opened this issue May 9, 2024 · 1 comment
Open

Comments

@sahmed53
Copy link

sahmed53 commented May 9, 2024

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!

@sahmed53 sahmed53 changed the title iOS Swift help needed iOS Swift help needed with customising the parameters for the model May 9, 2024
@sahmed53
Copy link
Author

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant