Expose VAD isDetected api to Swift (#356)
This commit is contained in:
@@ -548,7 +548,11 @@ class SherpaOnnxVoiceActivityDetectorWrapper {
|
||||
}
|
||||
|
||||
func isEmpty() -> Bool {
|
||||
return SherpaOnnxVoiceActivityDetectorEmpty(vad) == 1 ? true : false
|
||||
return SherpaOnnxVoiceActivityDetectorEmpty(vad) == 1
|
||||
}
|
||||
|
||||
func isDetected() -> Bool {
|
||||
return SherpaOnnxVoiceActivityDetectorDetected(vad) == 1
|
||||
}
|
||||
|
||||
func pop() {
|
||||
|
||||
Reference in New Issue
Block a user