generated from terminalai/research-development-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/terminalai/apc into main
- Loading branch information
Showing
4 changed files
with
86 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 9 additions & 12 deletions
21
development/app/src/main/java/app/nush/hearme/ui/TTSField.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,34 @@ | ||
package app.nush.hearme.ui | ||
|
||
import androidx.compose.foundation.horizontalScroll | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.foundation.layout.wrapContentWidth | ||
import androidx.compose.foundation.rememberScrollState | ||
import androidx.compose.foundation.verticalScroll | ||
import androidx.compose.material.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.runtime.MutableState | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.compose.runtime.remember | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
|
||
@Preview | ||
@Composable | ||
fun TTSField() { | ||
fun TTSField(text: MutableState<String>) { | ||
val scroll = rememberScrollState(0) | ||
|
||
/* | ||
val transcript = remember { mutableStateOf(""" | ||
Good morning, I am Jed Lim and I will be reporting on Problem 13, Candle Powered Turbine. | ||
The problem statement states that a paper spiral suspended above the candle will start to rotate. We are tasked to optimize this setup for maximum torque. The relevant parameters to investigate are the properties of the paper, the shape of the spiral, the candle’s heat output, the radial position of the candle and the height of the spiral above the candle. | ||
Good Morning Sir, would you be willing to participate in a survey on the government's efforts to combat COVID-19? | ||
Here is my content for today. | ||
Yes sure. | ||
First, let’s take a look at some basics. | ||
On a scale of 1 - 5, with 5 being the strongly agree and 1 being strongly disagree, do you agree the government has provided sufficient support for people who have lost their jobs due to COVID-19? | ||
Our experimental setup consists of a paper spiral held at the top by a pin. The pin is suspended by the retort stand. The candle is placed below the spiral. | ||
""".trimIndent()) } | ||
*/ | ||
|
||
Text( | ||
text = transcript.value, | ||
text = text.value, | ||
modifier = Modifier.verticalScroll(scroll).padding(10.dp) | ||
) | ||
} |