Skip to content

Commit

Permalink
rev
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Nov 23, 2023
1 parent 17c9d12 commit 3b0e9d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding/ios/Leopard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct LeopardWord {
/// - startSec: Start of word in seconds.
/// - endSec: End of word in seconds.
/// - confidence: Transcription confidence. It is a number within [0, 1].
/// - speakerTag: he speaker tag is `-1` if diarization is not enabled during initialization;
/// - speakerTag: The speaker tag is `-1` if diarization is not enabled during initialization;
/// otherwise, it's a non-negative integer identifying unique speakers, with `0` reserved for
/// unknown speakers.
public init(
Expand Down Expand Up @@ -229,7 +229,7 @@ public class Leopard {
&cWords)
if status != PV_STATUS_SUCCESS {
let messageStack = try getMessageStack()
throw pvStatusToLeopardError(status, "Leopard process failed", messageStack)
throw pvStatusToLeopardError(status, "Leopard process file failed", messageStack)
}

let transcript = String(cString: cTranscript!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class LeopardAppTestUITests: XCTestCase {
}

func validateMetadata(words: [LeopardWord], expectedWords: [LanguageTestWord], enableDiarization: Bool) {
XCTAssert(words.count == expectedWords.count)
for i in 0..<words.count {
XCTAssert(words[i].word == expectedWords[i].word)
XCTAssert(abs(words[i].startSec - expectedWords[i].start_sec) < 0.01)
Expand Down

0 comments on commit 3b0e9d5

Please sign in to comment.