Skip to content

Commit

Permalink
chore: temp
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Oct 19, 2024
1 parent 596a726 commit e93fbce
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/tools/tts.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,9 @@ function:
description: The text to speak
required:
- text
exec:
language: kotlin
preload: true
exec: kotlin
```
```kotlin
var savedText = ""

contextManager.registerContextListener {
val text = it.context["text"] as String
val newText = text.substring(savedText.length)
savedText = text

log.addSpeech(newText, it.final)
if (it.final) {
savedText = ""
}
}
log.info("{{ text }}")
```

0 comments on commit e93fbce

Please sign in to comment.