local llm supported

This commit is contained in:
gcw_4spBpAfv
2026-03-05 13:55:57 +08:00
parent 1701ecfb7f
commit bd07a7526a
43 changed files with 4258 additions and 115 deletions

View File

@@ -16,11 +16,36 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<FrameLayout
android:id="@+id/face_preview_container"
android:layout_width="220dp"
android:layout_height="300dp"
android:layout_margin="12dp"
android:background="#55000000"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.camera.view.PreviewView
android:id="@+id/camera_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:implementationMode="compatible"
app:scaleType="fitCenter" />
<com.digitalperson.face.FaceOverlayView
android:id="@+id/face_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
<ScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="200dp"
android:fillViewport="true">
android:fillViewport="true"
app:layout_constraintBottom_toTopOf="@+id/llm_mode_switch_row"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/my_text"
@@ -33,6 +58,31 @@
android:textIsSelectable="true" />
</ScrollView>
<LinearLayout
android:id="@+id/llm_mode_switch_row"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="16dp"
app:layout_constraintBottom_toTopOf="@+id/streaming_switch_row"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="本地LLM"
android:textSize="16sp" />
<Switch
android:id="@+id/llm_mode_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="false" />
</LinearLayout>
<LinearLayout
android:id="@+id/streaming_switch_row"
android:layout_width="0dp"
@@ -40,6 +90,31 @@
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="16dp"
app:layout_constraintBottom_toTopOf="@+id/tts_mode_switch_row"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="流式输出"
android:textSize="16sp" />
<Switch
android:id="@+id/streaming_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="false" />
</LinearLayout>
<LinearLayout
android:id="@+id/tts_mode_switch_row"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="16dp"
app:layout_constraintBottom_toTopOf="@+id/button_row"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
@@ -48,11 +123,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="流式输出"
android:text="腾讯云TTS"
android:textSize="16sp" />
<Switch
android:id="@+id/streaming_switch"
android:id="@+id/tts_mode_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="false" />