jarvis-ai
This commit is contained in:
@@ -82,6 +82,7 @@ class MainActivity : AppCompatActivity(), TextToSpeech.OnInitListener {
|
|||||||
spinnerVoices = findViewById(R.id.spinnerVoices)
|
spinnerVoices = findViewById(R.id.spinnerVoices)
|
||||||
val btnConnect = findViewById<Button>(R.id.btnConnect)
|
val btnConnect = findViewById<Button>(R.id.btnConnect)
|
||||||
val btnSpeak = findViewById<Button>(R.id.btnSpeak)
|
val btnSpeak = findViewById<Button>(R.id.btnSpeak)
|
||||||
|
val prefs = getSharedPreferences("JarvisPrefs", MODE_PRIVATE)
|
||||||
|
|
||||||
tts = TextToSpeech(this, this)
|
tts = TextToSpeech(this, this)
|
||||||
val savedUrl = prefs.getString("server_url", "")
|
val savedUrl = prefs.getString("server_url", "")
|
||||||
@@ -92,7 +93,6 @@ class MainActivity : AppCompatActivity(), TextToSpeech.OnInitListener {
|
|||||||
connectToServer(savedUrl)
|
connectToServer(savedUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
val prefs = getSharedPreferences("JarvisPrefs", MODE_PRIVATE)
|
|
||||||
etUrl.setText(prefs.getString("server_url", ""))
|
etUrl.setText(prefs.getString("server_url", ""))
|
||||||
|
|
||||||
btnConnect.setOnClickListener {
|
btnConnect.setOnClickListener {
|
||||||
|
|||||||
@@ -23,5 +23,5 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = "jarvis-stts"
|
rootProject.name = "jarvis-ai"
|
||||||
include(":app")
|
include(":app")
|
||||||
|
|||||||
Reference in New Issue
Block a user