[media]
[tts测试]
This commit is contained in:
yangyakun
2025-07-22 11:17:38 +08:00
parent 0741ba8e99
commit 163bd8f9d0
2 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListener
import com.mogo.eagle.core.utilcode.kotlin.onClick
import com.mogo.eagle.core.utilcode.util.BarUtils
import com.mogo.och.common.module.R
import com.mogo.och.common.module.biz.media.VoiceNotice
import com.mogo.och.common.module.debug.autopilot.AutopilotStateDebug
import mogo_msg.MogoReportMsg
@@ -97,6 +98,10 @@ class DebugFloatWindow constructor(activity: Activity) : View.OnTouchListener{
}
}
}
mFloatLayout.findViewById<AppCompatButton>(R.id.acbtn_tts).onClick {
VoiceNotice.showNotice("混淆导致序列化问题")
VoiceNotice.showNoticeOut("混淆导致序列化问题")
}
}
override fun onTouch(v: View?, motionEvent: MotionEvent?): Boolean {

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/green"
android:layout_height="match_parent">
@@ -39,6 +40,7 @@
<RadioGroup
android:id="@+id/rg_autopilot"
android:visibility="gone"
tools:visibility="visible"
app:layout_constraintTop_toBottomOf="@+id/accb_autopilot_group"
app:layout_constraintStart_toStartOf="@+id/accb_autopilot_group"
android:orientation="horizontal"
@@ -74,4 +76,14 @@
</RadioGroup>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/acbtn_tts"
app:layout_constraintTop_toBottomOf="@+id/rg_autopilot"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginTop="@dimen/dp_10"
android:layout_marginStart="@dimen/dp_40"
android:text="测试tts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</androidx.constraintlayout.widget.ConstraintLayout>