Skip to content

Commit 9535c24

Browse files
committed
update
1 parent 1be02b1 commit 9535c24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Android CI
22

33
on:
44
push:
5-
branches: [ "new_mian" ]
5+
branches: [ "feature_wakeup_1.0.x" ]
66
pull_request:
7-
branches: [ "new_mian" ]
7+
branches: [ "feature_wakeup_1.0.x"" ]
88

99
jobs:
1010
build:

app/src/main/java/com/example/ivdemo/WakeupActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ class WakeupActivity : AppCompatActivity(), OnnxKwsBridge.OnWakeupListener, IvDe
194194

195195
Log.i(TAG, "Start to initialize model")
196196

197-
OnnxKwsBridge.getInstance().setOnWakeupListener(this@WakeupActivity)
198-
OnnxKwsBridge.getInstance().setOnRecordingSpeakListener { isSpeaking, buffer ->
197+
onnxKwsBridge.setOnWakeupListener(this@WakeupActivity)
198+
onnxKwsBridge.setOnRecordingSpeakListener { isSpeaking, buffer ->
199199
savePcmFile(isSpeaking, buffer)
200200
runOnUiThread {
201201
localSpeechSpectrum.updateSpectrumEffect(buffer.map { it.toFloat() }

0 commit comments

Comments
 (0)