Skip to content

Commit

Permalink
whisper : sync latest whisper.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jan 5, 2023
1 parent 0e52adc commit 6707f1e
Show file tree
Hide file tree
Showing 5 changed files with 809 additions and 901 deletions.
2 changes: 1 addition & 1 deletion Sources/test-swift/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ params.n_threads = 4
params.offset_ms = 0

let n_samples = Int32(WHISPER_SAMPLE_RATE)
var pcmf32 = [Float](repeating: 0, count: Int(n_samples))
let pcmf32 = [Float](repeating: 0, count: Int(n_samples))

let ret = whisper_full(ctx, params, pcmf32, n_samples)
assert(ret == 0, "Failed to run the model")
Expand Down

0 comments on commit 6707f1e

Please sign in to comment.