Skip to content

Commit

Permalink
Fix Vad.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
yujinqiu committed Oct 16, 2023
1 parent 9bdbbd7 commit 718f2ce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class Vad(
// [start: Int, samples: FloatArray]
fun front() = front(ptr)

func clear() = clear(ptr)

fun isSpeechDetected(): Boolean = isSpeechDetected(ptr)

fun reset() = reset(ptr)
Expand All @@ -64,6 +66,7 @@ class Vad(
private external fun acceptWaveform(ptr: Long, samples: FloatArray)
private external fun empty(ptr: Long): Boolean
private external fun pop(ptr: Long)
private external fun clear(ptr: Long)
private external fun front(ptr: Long): Array<Any>
private external fun isSpeechDetected(ptr: Long): Boolean
private external fun reset(ptr: Long)
Expand Down

0 comments on commit 718f2ce

Please sign in to comment.