Views
No views yet
| File | Description | ANE Support |
|---|---|---|
AudioEncoder.mlmodelc | Audio feature encoder | 100% |
TextDecoder.mlmodelc | Text decoder | 98% |
MelSpectrogram.mlmodelc | Mel spectrogram converter | 72% |
1import WhisperKit
2
3let whisperKit = try await WhisperKit(
4 modelFolder: "path/to/kotoba-tech_kotoba-whisper-v2.2"
5)
6
7let result = try await whisperKit.transcribe(
8 audioPath: "path/to/audio.wav",
9 language: "ja"
10)