1
1
This commit is contained in:
2026-01-24 19:22:45 +01:00
parent 0a1f57259e
commit d33eb7c1bd

View File

@@ -15,14 +15,10 @@ class Assistant(
private val model = Model(path)
private val buffer = ByteArray(4096)
private val microphone = line(format)
private val actions = listOf<Action>(
Light(home)
)
val actions = listOf<Action>(Light(home))
private val recognizer = Recognizer(
model, format.sampleRate, Gson().toJson(
listOf(name) + dict.words
)
model, format.sampleRate, Gson()
.toJson(listOf(name) + dict.words)
)
private fun line(format: AudioFormat) = run {