https://github.com/evroon/kotlin-soundboard
Simple soundboard app for Android written in Kotlin
https://github.com/evroon/kotlin-soundboard
android kotlin-android soundboard
Last synced: about 1 month ago
JSON representation
Simple soundboard app for Android written in Kotlin
- Host: GitHub
- URL: https://github.com/evroon/kotlin-soundboard
- Owner: evroon
- Created: 2019-07-03T18:12:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-15T18:15:21.000Z (over 5 years ago)
- Last Synced: 2025-04-02T04:47:52.191Z (about 1 year ago)
- Topics: android, kotlin-android, soundboard
- Language: Kotlin
- Size: 1.39 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kotlin Soundboard
[](https://github.com/evroon/kotlin-soundboard/actions/workflows/main.yml)
A very basic soundboard for Android, written in Kotlin.

Adding sounds
----
Add a sound to the view by doing the following:
1) Place a sound file (such as `example.wav`) in the [raw directory](https://github.com/evroon/kotlin-soundboard/tree/master/app/src/main/res/raw).
2) Add a string to [strings.xml](https://github.com/evroon/kotlin-soundboard/blob/master/app/src/main/res/values/strings.xml), which represents the displayed text in the button. Like this:
```xml
kotlin-soundboard
Splash sounds
splash
example sound
```
3) Register the button in [MainActivity.kt](https://github.com/evroon/kotlin-soundboard/blob/master/app/src/main/java/com/evroon/kotlin_soundboard/MainActivity.kt), by adding it to `layout`:
```kotlin
val layout = arrayOf(
"textview_splash_sounds",
"button_splash",
"button_example"
)
```
It is also possible to add textviews to the layout to split the sounds in categories.