WhisperKit icon indicating copy to clipboard operation
WhisperKit copied to clipboard

Does WhisperKit support simulator? It emits only [silence] on Simulator but on-device is good.

Open muukii opened this issue 11 months ago • 4 comments

muukii avatar Mar 03 '24 15:03 muukii

The simulator mic wont work by default, you'll need to change the audio input device to use a physical microphone like an AirPod. More info in this thread: https://stackoverflow.com/a/20090230

ZachNagengast avatar Mar 03 '24 15:03 ZachNagengast

@ZachNagengast sorry. I meant using WhisperKit for audio files to make subtitle.

muukii avatar Mar 05 '24 16:03 muukii

I understand now, yes I'm also seeing this issue on the simulator. The way to resolve it is by changing the compute units to cpuOnly here: https://github.com/argmaxinc/WhisperKit/blob/a32c947d6a454bda400f699cdb65dc6b150fe63b/Sources/WhisperKit/Core/Models.swift#L131-L135

This may be a good default when detecting we're running on a simulator, what do you think?

ZachNagengast avatar Mar 05 '24 18:03 ZachNagengast

@ZachNagengast Cool, that makes sense. I'll try it. Thank you!

muukii avatar Mar 06 '24 03:03 muukii

the latest release works so good on simulator! thank you. I'm working on making this app for me by the way. This library brings a lot of help into this. https://github.com/muukii/Tone.app

muukii avatar Mar 09 '24 06:03 muukii