Categorygithub.com/BeepLoop/go-audiobook
repositorypackage
1.0.0
Repository: https://github.com/beeploop/go-audiobook.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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

  1. Clone the project
git clone https://github.com/BeepLoop/go-audiobook.git
  1. Install the dependencies
go mod tidy
  1. Setup the config file
  • Open the voice_config.json inside the config directory
  • Update the playht_user and api_key to your api keys from PlayHT. Visit PlayHT for a guide on how to setup an account.
  1. Run the project
go run main.go
  1. 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