Kobo Button is unofficial and fan made website to play audio clip of Kobo Kanaeru. The types of audio available are words said by Kobo, sounds such as laughing and sneezing, and songs.
- This repo or the build tool doesn't include a server so you need to install a server first if you don't have any.
You can find some in npm and install it globally.
Something like built-in server in
python
orphp
also works. - Install packages
- Copy
.env.example
and rename it to.env
. ModifyAPP_URL
as per your requirement. - Run server and serve the project root.
- Run
npm run watch
and go to[APP_URL]lang/en.html
or you can skip and do translation or add audio as in the steps below.
After running npm run watch
from setting up above you can do local development by modify src/index.ejs
, src/style.css
, or src/script.js
.
If you want to do a contribution you have to fork this repo first and then do the setting up above. Before you commit and make a pull request please don't forget to run npm run build
.
You can add or improve a translation file to make this website more accessible and spread the Kobo audio clip to wider audience.
- If you want to add a translation, copy any translation file in
lang/
and rename the file. The file name have to be a valid language code forlang
HTML attribute. (ref. 1, ref. 2) - Run
npm run watch -- [language code]
, e.g.,npm run watch -- id
if you working on Indonesia translation - Translate the object values in the file you have copied before
- Open browser and go to
[APP_URL]lang/[language code].html
- Run
npm run build
after you finished
Not all videos are suitable for clipping and the same should goes for audio. Please follow the derivative works guideline regarding audio clipping.
In addition there are some notes for audio source that need to be clipped.
- Please don't clip from voice pack audio and cover or original song unless its from karaoke. Also, as in the derivative works guideline please don't clip from membership content, concert performance, or any paid content.
- For singing clip it is recommended to clip only a song that has a reference to something such as meme, pop culture, etc. to prevent the song clips being too abundant. Also recommended to clip a song to show off Kobo singing skill.
- Use standard or low preset to minimize the file size. You may use
first_ehe.mp3
for reference. - Please be mindful about the clip duration to prevent bigger file size.
Steps for add audio clip.
- Clip the audio and you may need to process it with any audio editor
- Export it to mp3 file and put it in
assets/aud/
- Add the audio data to
assets/audio.json
. Object properties description below - Run/rerun
npm run watch
- Open a browser and go to
[APP_URL]lang/en.html
- Open playlist window by press and hold the Kobo button to test it out
- Run
npm run build
after you finished
Object properties for audio data
Property | Required | Description |
---|---|---|
name |
✅ | The file name of the audio. File name in snake_case. |
title |
✅ | Title of the audio that will be displayed in main UI. Recommended to write it in their native language, use english if the audio data doesn't have lang property. |
category |
✅ | Valid values are words , sound , and song . |
lang |
⏹️ | Recommended to write it in their native language. Only required in words and song category. |
isSeiso |
✅ | A flag to prevent the audio randomly played from Kobo button but still can be played from playlist. Not necessarily about seiso content. |
next |
❌ | File name of the next chained audio that can be played by pressing the next button. |