repositorypackage
1.0.0
Repository: https://github.com/beeploop/go-audiobook.git
Documentation: pkg.go.dev
# README
go-audiobook
Description
A web application made with Go as a collaborative project with education students as a reading intervention tool. It allow admins to upload a story, upload a recorded audio for the story, cover image for the story, and a list of words considered difficult to pronounce. The list of words are converted into audio using PlayHT.
Built with
- Go - A fast and simple programming language designed by Google.
- PlayHT - A text to audio generation API.
- Tailwindcss - A utility-first CSS framework.
- Gin - A web framework for Go that features a Martini-like API.
Requirements
go-audiobook requires a version of Go to be installed. If you want to edit the contents, design, and add pages, you must have a Tailwindcss installed. Visit here for a guide on how to install Tailwindcss. The project is built using Tailwindcss standalone executable, thus it is the recommended one to use.
How to run
- Clone the project
git clone https://github.com/BeepLoop/go-audiobook.git
- Install the dependencies
go mod tidy
- Setup the config file
- Open the
voice_config.json
inside theconfig
directory - Update the
playht_user
andapi_key
to your api keys from PlayHT. Visit PlayHT for a guide on how to setup an account.
- Run the project
go run main.go
- Updating styling
- Run Tailwindcss in watch mode
tailwindcss -i ./views/styles/tailwind.css -o ./views/styles/output.css --watch
- Start editing the HTML pages
Building
- Using the makefile
make build
- Using Go
go build