Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class DailyQuizViewModel @Inject constructor(
is SttState.Speaking -> _uiState.update { it.copy(isSpeaking = true) }
is SttState.Success -> {
Timber.d("STT Success: ${state.result}")
sttManager.stopListening()
checkAnswer(state.result)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private fun MemoryQuizContent(
MemoryQuizSetState.QUESTION_DISPLAY -> {
MemoryQuizPlayContent(
imageUrls = targetQuiz.imageUrls,
onImagesFinished = onImagesFinished
onImagesFinished = onImagesFinished,
)
}

Expand All @@ -127,9 +127,7 @@ private fun MemoryQuizContent(
modifier = Modifier.padding(horizontal = 20.dp),
onContinueClick = onContinueTextClick,
answers = uiState.userTextAnswers,
onTextAnswerChange = { index, answer ->
onTextAnswerChange(index, answer)
}
onTextAnswerChange = onTextAnswerChange,
)
}
}
Expand All @@ -153,11 +151,7 @@ private fun MemoryQuizContentPreview() {
questionFormat = "",
questionContent = "",
answer = listOf("사과", "당근", "의자"),
imageUrls = listOf(
"https://moa-bucket-s3.s3.ap-northeast-2.amazonaws.com/8d120aaa-0_memory_2.png",
"https://moa-bucket-s3.s3.ap-northeast-2.amazonaws.com/03548c44-e_memory_4.png",
"https://moa-bucket-s3.s3.ap-northeast-2.amazonaws.com/37300c63-c_memory_8.png",
),
imageUrls = listOf("", "", ""),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class MemoryQuizViewModel @Inject constructor(
is SttState.Speaking -> _uiState.update { it.copy(isSpeaking = true) }
is SttState.Success -> {
Timber.d("STT Success: ${state.result}")
sttManager.stopListening()
checkAnswer(state.result)
}

Expand Down