You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix xcconfig tracking
* Add package.swift docs to readme
* Fix edge case where framePosition does not align with actual frame count of AVAudioFile
* Upgrade github runner macos version
* Update remaining github runner versions
* Use WERUtils to check vad accuracy
* Reduce calls to frameposition
* Fix xcode version for runner
XCTAssertFalse(testResult.text.isEmpty,"The test text should not be empty")
1432
1436
XCTAssertFalse(chunkedResult.text.isEmpty,"The chunked text should not be empty")
1433
1437
1434
-
// Select few sentences to compare at VAD border
1435
-
// TODO: test that WER is in acceptable range
1436
-
// XCTAssertTrue(testResult.text.normalized.contains("I would kind".normalized), "Expected text not found in \(testResult.text.normalized)")
1437
-
// XCTAssertTrue(chunkedResult.text.normalized.contains("I would kind".normalized), "Expected text not found in \(chunkedResult.text.normalized)")
1438
-
//
1439
-
// XCTAssertTrue(testResult.text.normalized.contains("every single paper".normalized), "Expected text not found in \(testResult.text.normalized)")
1440
-
// XCTAssertTrue(chunkedResult.text.normalized.contains("every single paper".normalized), "Expected text not found in \(chunkedResult.text.normalized)")
1438
+
// Check WER for the full audio and the chunked audio
XCTAssertTrue(testResult.text.normalized.contains("But then came my 90 page senior".normalized),"Expected text not found in \(testResult.text.normalized)")
1443
-
XCTAssertTrue(chunkedResult.text.normalized.contains("But then came my 90 page senior".normalized),"Expected text not found in \(chunkedResult.text.normalized)")
1443
+
XCTAssertEqual(wer,0.0,"Transcripts should match with a WER of 0, found \(wer). Full diff: \(diffDescription)")
1444
1444
}
1445
1445
1446
1446
#if !os(watchOS) // FIXME: This test times out on watchOS when run on low compute runners
0 commit comments